diff --git a/kcms/baloo/configwidget.ui b/kcms/baloo/configwidget.ui --- a/kcms/baloo/configwidget.ui +++ b/kcms/baloo/configwidget.ui @@ -47,33 +47,48 @@ - - - Do not search in these locations - - - false - - - - - - - - - - + Qt::Vertical + + QSizePolicy::Fixed + 1 - 66 + 20 + + + + + + + 0 + 0 + + + + Do not search in these locations: + + + true + + + + + + + + + + + + diff --git a/kcms/baloo/folderselectionwidget.cpp b/kcms/baloo/folderselectionwidget.cpp --- a/kcms/baloo/folderselectionwidget.cpp +++ b/kcms/baloo/folderselectionwidget.cpp @@ -50,8 +50,6 @@ layout->addWidget(m_listWidget); QHBoxLayout* hLayout = new QHBoxLayout; - QSpacerItem* spacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); - hLayout->addItem(spacer); m_addButton = new QPushButton(this); m_addButton->setIcon(QIcon::fromTheme(QStringLiteral("list-add"))); @@ -66,6 +64,10 @@ hLayout->addWidget(m_addButton); hLayout->addWidget(m_removeButton); + + QSpacerItem* spacer = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum); + hLayout->addItem(spacer); + layout->addItem(hLayout); }