GUI: Scratchpad: Add help texts; run astyle (#1104)

This adds labels with short explanations on how the scratchpad can be
used.
This commit is contained in:
Sebastian 2018-03-07 12:38:50 +01:00 committed by GitHub
parent 5fc8f13fd6
commit df34164b9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 3 deletions

View File

@ -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)

View File

@ -14,6 +14,13 @@
<string>Scratchpad</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label_sourcecode">
<property name="text">
<string>Copy or write some C/C++ code here:</string>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit">
<property name="font">
@ -24,9 +31,25 @@
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_filename">
<property name="text">
<string>Optionally enter a filename (mainly for automatic language detection) and click on &quot;Check&quot;:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="margin">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>