From 820e1697cc2c915f0bdb7255c7a5b877b96bf233 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 4 Apr 2011 11:00:09 +0300 Subject: [PATCH] GUI: Improve the Application dialog layoyt. In GNOME the whole big text area was not shown without making the dialog bigger. So improve the layout for better scaling and adjust dialog size when it gets initialized. --- gui/application.ui | 152 ++++++++++++++++++++++---------------- gui/applicationdialog.cpp | 1 + 2 files changed, 91 insertions(+), 62 deletions(-) diff --git a/gui/application.ui b/gui/application.ui index 758e86567..212525f45 100644 --- a/gui/application.ui +++ b/gui/application.ui @@ -10,15 +10,33 @@ 0 0 569 - 328 + 471 + + + 0 + 0 + + Add an application - + + + + 0 + 0 + + + + + 0 + 0 + + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. @@ -29,92 +47,102 @@ The following texts in parameters are replaced with appropriate values when appl (severity) - Error severity Example opening a file with Kate and make Kate scroll to the correct line: -executable: kate -parameters: -l(line) (file) +Executable: kate +Parameters: -l(line) (file) Qt::AutoText + + false + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + true - + - + - - - &Application's name: - - - mName - - + + + + + &Name: + + + mName + + + + + + + &Executable: + + + mPath + + + + + + + &Parameters: + + + mParameters + + + + - - - &Executable: - - - mPath - - - - - - - &Parameters: - - - mParameters - - + + + + + + + + + + + - + - + + + Qt::Horizontal + + + + 40 + 20 + + + - - - - + + + Browse + + - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Browse - - - - - diff --git a/gui/applicationdialog.cpp b/gui/applicationdialog.cpp index 43ea741ef..9f7fb685c 100644 --- a/gui/applicationdialog.cpp +++ b/gui/applicationdialog.cpp @@ -40,6 +40,7 @@ ApplicationDialog::ApplicationDialog(const QString &title, mUI.mName->setText(app.getName()); mUI.mParameters->setText(app.getParameters()); setWindowTitle(title); + adjustSize(); }