From df34164b9ff0974c1041c9e337ebe539e30543a3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 7 Mar 2018 12:38:50 +0100 Subject: [PATCH] GUI: Scratchpad: Add help texts; run astyle (#1104) This adds labels with short explanations on how the scratchpad can be used. --- gui/mainwindow.cpp | 4 ++-- gui/scratchpad.ui | 25 ++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index f9fe33d98..7d7b48b2b 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -549,8 +549,8 @@ void MainWindow::analyzeCode(const QString& code, const QString& filename) analysisDone(); // Expand results - if(mUI.mResults->hasVisibleResults()) - mUI.mResults->expandAllResults(); + if (mUI.mResults->hasVisibleResults()) + mUI.mResults->expandAllResults(); } QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode) diff --git a/gui/scratchpad.ui b/gui/scratchpad.ui index 7543866d2..2341c99c0 100644 --- a/gui/scratchpad.ui +++ b/gui/scratchpad.ui @@ -14,6 +14,13 @@ Scratchpad + + + + Copy or write some C/C++ code here: + + + @@ -24,9 +31,25 @@ + + + + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + + + - + + 0 + + + 0 + + + 0 + + 0