ui: fixed squashed Combobox and pick both files and directories in QtDirectoryListBox

This commit is contained in:
Eberhard Graether
2016-02-24 00:02:17 +01:00
parent 7845987f8f
commit 33ab897c91
4 changed files with 18 additions and 12 deletions
@@ -32,6 +32,11 @@
#formArea {
background: white;
border: none;
}
#scrollArea {
background: white;
border: none;
border-top: 1px solid lightgrey;
border-bottom: 1px solid lightgrey;
}
+1 -1
View File
@@ -71,5 +71,5 @@ QtListItemWidget #field {
}
#dropInfo {
color: lightgray;
color: #999;
}
@@ -56,7 +56,6 @@ void QtListItemWidget::setFocus()
void QtListItemWidget::handleButtonPress()
{
QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::Directory);
if (m_data->text().size())
{
@@ -45,20 +45,22 @@ void QtProjectWizzardWindow::setup()
populateWindow(contentWidget);
if (m_scrollAble)
{
QScrollArea* scrollArea = new QScrollArea();
scrollArea->setObjectName("formArea");
scrollArea->setFrameShadow(QFrame::Plain);
scrollArea->setWidgetResizable(true);
QScrollArea* scrollArea = new QScrollArea();
scrollArea->setFrameShadow(QFrame::Plain);
scrollArea->setObjectName("formArea");
scrollArea->setWidgetResizable(true);
scrollArea->setWidget(contentWidget);
windowLayout->addWidget(scrollArea);
scrollArea->setWidget(contentWidget);
windowLayout->addWidget(scrollArea);
if (!m_scrollAble)
{
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
}
else
{
windowLayout->addWidget(contentWidget);
windowLayout->setStretchFactor(contentWidget, 1);
scrollArea->setObjectName("scrollArea");
}
showButtons(windowLayout);