|
|
@ -31,7 +31,7 @@ class UBWidgetList : public QScrollArea |
|
|
|
public: |
|
|
|
public: |
|
|
|
UBWidgetList(QWidget* parent=0, eWidgetListOrientation orientation = eWidgetListOrientation_Vertical, const char* name = "UBWidgetList"); |
|
|
|
UBWidgetList(QWidget* parent=0, eWidgetListOrientation orientation = eWidgetListOrientation_Vertical, const char* name = "UBWidgetList"); |
|
|
|
~UBWidgetList(); |
|
|
|
~UBWidgetList(); |
|
|
|
void addWidget(QWidget* widget, bool isResizable = true); |
|
|
|
void addWidget(QWidget* widget); |
|
|
|
void removeWidget(QWidget* widget); |
|
|
|
void removeWidget(QWidget* widget); |
|
|
|
void setMargin(int margin); |
|
|
|
void setMargin(int margin); |
|
|
|
void setEmptyText(const QString& text); |
|
|
|
void setEmptyText(const QString& text); |
|
|
@ -53,7 +53,7 @@ private: |
|
|
|
eWidgetListOrientation mOrientation; |
|
|
|
eWidgetListOrientation mOrientation; |
|
|
|
int mMargin; |
|
|
|
int mMargin; |
|
|
|
int mListElementsSpacing; |
|
|
|
int mListElementsSpacing; |
|
|
|
QMap<QWidget*, sWidgetProperties> mWidgetInfo; |
|
|
|
QMap<QWidget*, QSize> mWidgetInfo; |
|
|
|
QLabel* mpEmptyLabel; |
|
|
|
QLabel* mpEmptyLabel; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|