Skip to content

Commit 5f3803f

Browse files
Refactor addSearchPanel method to accept SearchPanelWidget for improved clarity and consistency
1 parent c07bbc5 commit 5f3803f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/zGui/include/zSearchPanel.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ using zclipboard::zGui::ZTable;
1212
using zclipboard::zGui::zTableModel;
1313

1414
namespace zclipboard::zGui {
15+
16+
struct SearchPanelWidget {
17+
QWidget *zWindow;
18+
QGridLayout *zLayout;
19+
ZTable *table;
20+
};
1521
class SearchArea : public QObject {
1622
Q_OBJECT
1723

1824
public:
19-
void addSearchPanel(QWidget *zWindow, QGridLayout *zLayout, ZTable *table);
25+
void addSearchPanel(const SearchPanelWidget &search);
2026

2127
private:
2228
QLineEdit *zLineEdit;

0 commit comments

Comments
 (0)