summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-20 16:55:23 +0100
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-11-20 16:55:23 +0100
commite4a7792d6ed02ef6c74ff30a9d8bc7c2ead41292 (patch)
tree1fbbea87af572871562a61bf280d71f7a067f8a2 /src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
parentbc92b63ee1375a8f81bf88623df0c51951d52588 (diff)
downloadqt-creator-e4a7792d6ed02ef6c74ff30a9d8bc7c2ead41292.tar.gz
Options dialog: Further polishing.
Task-number: QTCREATOR-26
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
index d0b683c8b3..e9788ca9b6 100644
--- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp
@@ -40,9 +40,12 @@
#include <QtCore/QtConcurrentRun>
#include <QtCore/QSettings>
#include <QtGui/QFormLayout>
+#include <QtGui/QBoxLayout>
#include <QtGui/QDesktopServices>
#include <QtGui/QApplication>
#include <QtGui/QLabel>
+#include <QtGui/QGroupBox>
+#include <QtGui/QSpacerItem>
using namespace CMakeProjectManager::Internal;
@@ -258,13 +261,17 @@ QString CMakeSettingsPage::trCategory() const
QWidget *CMakeSettingsPage::createPage(QWidget *parent)
{
- QWidget *w = new QWidget(parent);
- QFormLayout *fl = new QFormLayout(w);
- m_pathchooser = new Utils::PathChooser(w);
+ QWidget *outerWidget = new QWidget(parent);
+ QVBoxLayout *outerLayout = new QVBoxLayout(outerWidget);
+ QGroupBox *groupBox = new QGroupBox(trCategory());
+ outerLayout->addWidget(groupBox);
+ outerLayout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding));
+ QFormLayout *formLayout = new QFormLayout(groupBox);
+ m_pathchooser = new Utils::PathChooser;
m_pathchooser->setExpectedKind(Utils::PathChooser::Command);
- fl->addRow(tr("CMake executable"), m_pathchooser);
+ formLayout->addRow(tr("Executable:"), m_pathchooser);
m_pathchooser->setPath(cmakeExecutable());
- return w;
+ return outerWidget;
}
void CMakeSettingsPage::updateInfo()