summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprojectmanager
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-05-17 14:43:01 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-05-17 14:45:44 +0200
commit7c2afcf179b9d37d77a78d7cfbd6f7159b951555 (patch)
treeebcb45e6f1e60de4d9e76497511ec1a6c4000dc4 /src/plugins/qmlprojectmanager
parent80e77e9514097a1410b8e75bbdfd79f302bb2d8a (diff)
downloadqt-creator-7c2afcf179b9d37d77a78d7cfbd6f7159b951555.tar.gz
fix "Debugger:" label alignment
on the way also greatly simplify the code in most copies. it was probably trying to do what i did, but failed miserably.
Diffstat (limited to 'src/plugins/qmlprojectmanager')
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp b/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
index 4a7097c906..10c897ca22 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
@@ -117,17 +117,11 @@ QmlProjectRunConfigurationWidget::QmlProjectRunConfigurationWidget(QmlProjectRun
// Debugging
//
- QWidget *debuggerLabelWidget = new QWidget;
- QVBoxLayout *debuggerLabelLayout = new QVBoxLayout(debuggerLabelWidget);
- debuggerLabelLayout->setMargin(0);
- debuggerLabelLayout->setSpacing(0);
- debuggerLabelWidget->setLayout(debuggerLabelLayout);
QLabel *debuggerLabel = new QLabel(tr("Debugger:"));
- debuggerLabelLayout->addWidget(debuggerLabel);
- debuggerLabelLayout->addStretch(10);
+ debuggerLabel->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding);
DebuggerLanguageChooser *debuggerLanguageChooser = new DebuggerLanguageChooser(formWidget);
- form->addRow(debuggerLabelWidget, debuggerLanguageChooser);
+ form->addRow(debuggerLabel, debuggerLanguageChooser);
debuggerLanguageChooser->setCppChecked(rc->useCppDebugger());
debuggerLanguageChooser->setQmlChecked(rc->useQmlDebugger());