ui: fixed squashed Combobox and pick both files and directories in QtDirectoryListBox
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
#formArea {
|
||||
background: white;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#scrollArea {
|
||||
background: white;
|
||||
border: none;
|
||||
border-top: 1px solid lightgrey;
|
||||
border-bottom: 1px solid lightgrey;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user