Minor refactoring of ItemDetailMapper.
This commit is contained in:
@ -5,6 +5,7 @@
|
||||
#include <QDataWidgetMapper>
|
||||
#include <QStringListModel>
|
||||
#include <QWidget>
|
||||
#include "model/metadata.h"
|
||||
|
||||
class QGridLayout;
|
||||
class QLabel;
|
||||
@ -57,8 +58,8 @@ class ItemDetailMapper : public QWidget {
|
||||
void setupWidgets();
|
||||
|
||||
void setupWidgetPairForColumn(const int column);
|
||||
QWidget* createControlWidget(const int column);
|
||||
QWidget* createComboBox(const int role);
|
||||
QWidget* createControlWidget(const UserRoles role);
|
||||
QWidget* createComboBox(const UserRoles role);
|
||||
|
||||
void clearControlWidgets();
|
||||
void clearLineEdit(const int column);
|
||||
|
||||
Reference in New Issue
Block a user