Commit 33ff71f2 authored by Sylvain Thery's avatar Sylvain Thery
Browse files

smaller dialogList

parent 2528c335
...@@ -42,6 +42,8 @@ public: ...@@ -42,6 +42,8 @@ public:
bool isChecked(const QString& str); bool isChecked(const QString& str);
virtual QSize sizeHint() const;
}; };
......
...@@ -15,7 +15,13 @@ ListPopUp::ListPopUp(const QString& name, QWidget* parent): ...@@ -15,7 +15,13 @@ ListPopUp::ListPopUp(const QString& name, QWidget* parent):
setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint); setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
m_layout = new QVBoxLayout(this); m_layout = new QVBoxLayout(this);
setLayout(m_layout); setLayout(m_layout);
m_layout->setContentsMargins(1, 1, 1, 1);
m_list_items = new QListWidget(); m_list_items = new QListWidget();
QSizePolicy test;
test.setHorizontalPolicy(QSizePolicy::Preferred);
m_list_items->setSizePolicy(test);
m_list_items->setSelectionMode(QAbstractItemView::NoSelection); m_list_items->setSelectionMode(QAbstractItemView::NoSelection);
m_layout->addWidget(m_list_items); m_layout->addWidget(m_list_items);
} }
...@@ -24,6 +30,11 @@ ListPopUp::~ListPopUp() ...@@ -24,6 +30,11 @@ ListPopUp::~ListPopUp()
{ {
} }
QSize ListPopUp::sizeHint() const
{
return QSize(150,150);
}
QListWidget* ListPopUp::list() QListWidget* ListPopUp::list()
{ {
return m_list_items; return m_list_items;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment