diff options
author | dt <qtc-committer@nokia.com> | 2010-03-29 16:19:09 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-03-29 16:19:32 +0200 |
commit | 255206db6b906436507bcc019f1d10ea2862f7d3 (patch) | |
tree | caca3b7b5e33a1b535e413da27ad9ed0f2e5296e /src/plugins/projectexplorer | |
parent | c0e2370fb11a06533f72b575d48d6eda5eeb6394 (diff) |
Make the custom executable dialog only resizable in the width
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/customexecutablerunconfiguration.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index 1d7dfbee5f..491ff4f085 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -340,14 +340,18 @@ QString CustomExecutableRunConfiguration::executable() const if (m_executable.isEmpty() || !QFileInfo(exec).exists()) { // Oh the executable doesn't exists, ask the user. QWidget *confWidget = const_cast<CustomExecutableRunConfiguration *>(this)->configurationWidget(); + confWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); QDialog dialog(Core::ICore::instance()->mainWindow()); dialog.setLayout(new QVBoxLayout()); - dialog.layout()->addWidget(new QLabel(tr("Could not find the executable, please specify one."))); + QLabel *label = new QLabel(tr("Could not find the executable, please specify one.")); + label->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); + dialog.layout()->addWidget(label); dialog.layout()->addWidget(confWidget); QDialogButtonBox *dbb = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(dbb, SIGNAL(accepted()), &dialog, SLOT(accept())); connect(dbb, SIGNAL(rejected()), &dialog, SLOT(reject())); dialog.layout()->addWidget(dbb); + dialog.layout()->setSizeConstraint(QLayout::SetMinAndMaxSize); QString oldExecutable = m_executable; QString oldWorkingDirectory = m_workingDirectory; @@ -367,6 +371,7 @@ QString CustomExecutableRunConfiguration::executable() const return exec; } + LocalApplicationRunConfiguration::RunMode CustomExecutableRunConfiguration::runMode() const { return m_runMode; |