-const int ATTRIBUTE_SELECTION_INDEX_ROLE = Qt::UserRole + 1;
-
-/**
-* Customization of a List Widget to make it to be placed on full width of container
-*/
-class CustomListWidget : public QListWidget
-{
-public:
- /// Constructor
- /// \param theParent a parent widget
- CustomListWidget(QWidget* theParent)
- : QListWidget(theParent)
- {
- }
-
- /// Redefinition of virtual method
- virtual QSize sizeHint() const
- {
- int aHeight = 2*QFontMetrics(font()).height();
- QSize aSize = QListWidget::sizeHint();
- return QSize(aSize.width(), aHeight);
- }
-
- /// Redefinition of virtual method
- virtual QSize minimumSizeHint() const
- {
- int aHeight = 4/*2*/*QFontMetrics(font()).height();
- QSize aSize = QListWidget::minimumSizeHint();
- return QSize(aSize.width(), aHeight);
- }
-