Refactored the creation of control widgets.

This commit is contained in:
2026-04-02 09:51:04 +02:00
parent 24192df5d6
commit 6408eaa10a
2 changed files with 37 additions and 13 deletions

View File

@ -8,10 +8,13 @@ class QWidget;
class WidgetHelper {
public:
static QWidget* createControlWidget(const UserRoles role, QWidget* parent);
static QWidget* createComboBox(const UserRoles role, QWidget* parent);
private:
explicit WidgetHelper();
static QWidget* createLineEdit(const UserRoles role, QWidget* parent);
static QWidget* createSpinBox(const UserRoles role, QWidget* parent);
static QWidget* createComboBox(const UserRoles role, QWidget* parent);
};
#endif // WIDGETHELPER_H