Improve sizing of Python Path input box.

pull/3/head
Dave Page 2016-01-14 15:53:29 +00:00
parent 81405dbe0a
commit 07fac62bce
1 changed files with 8 additions and 1 deletions

View File

@ -75,7 +75,14 @@ int main(int argc, char * argv[])
QSettings settings; QSettings settings;
bool ok; bool ok;
QString path = QInputDialog::getText(NULL, QWidget::tr("Python Path"), QWidget::tr("Set the Python search path:"), QLineEdit::Normal, settings.value("PythonPath").toString(), &ok); QInputDialog *dlg = new QInputDialog();
dlg->setInputMode(QInputDialog::TextInput);
dlg->setWindowTitle(QWidget::tr("Python Path"));
dlg->setLabelText(QWidget::tr("Set the Python search path (separate entries with a semicolon):"));
dlg->setTextValue(settings.value("PythonPath").toString());
dlg->resize(600,100);
ok = dlg->exec();
QString path = dlg->textValue();
if (ok) if (ok)
settings.setValue("PythonPath", path); settings.setValue("PythonPath", path);