sam panel: drop the in-panel docs hint label
Users know sam or read docs/SAM.md; the hint was clutter. Panel is now just the program editor, Run button, and output log.
This commit is contained in:
parent
e53dacbf90
commit
bace9bbbbf
|
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
#include <QFontDatabase>
|
#include <QFontDatabase>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QLabel>
|
|
||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QSizePolicy>
|
#include <QSizePolicy>
|
||||||
|
|
@ -54,17 +53,6 @@ SamPanel::SamPanel(QWidget *parent)
|
||||||
layout->setContentsMargins(4, 4, 4, 4);
|
layout->setContentsMargins(4, 4, 4, 4);
|
||||||
layout->setSpacing(4);
|
layout->setSpacing(4);
|
||||||
|
|
||||||
auto *hint = new QLabel(
|
|
||||||
i18n("sam commands — e.g. <tt>,s/foo/bar/g</tt> or "
|
|
||||||
"<tt>X/\\.cpp$/ ,s/old/new/g</tt> (project-wide). Ctrl+Return runs.<br/>"
|
|
||||||
"Regex is sam's own (leftmost-longest, linear-time): classes like "
|
|
||||||
"<tt>[0-9]</tt>, not <tt>\\d</tt>; <tt>^</tt>/<tt>$</tt> are per-line. "
|
|
||||||
"See docs/SAM.md."),
|
|
||||||
this);
|
|
||||||
hint->setWordWrap(true);
|
|
||||||
hint->setTextFormat(Qt::RichText);
|
|
||||||
layout->addWidget(hint);
|
|
||||||
|
|
||||||
m_editor = new SamProgramEdit(this, [this]() {
|
m_editor = new SamProgramEdit(this, [this]() {
|
||||||
Q_EMIT runRequested(program());
|
Q_EMIT runRequested(program());
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue