[education/rkward] rkward/windows: Layout tweaks
Thomas Friedrichsmeier
null at kde.org
Mon Jan 12 19:55:45 GMT 2026
Git commit b4208667d4956036adb4c3725097fd89102d0786 by Thomas Friedrichsmeier.
Committed on 12/01/2026 at 19:55.
Pushed by tfry into branch 'master'.
Layout tweaks
M +5 -4 rkward/windows/rkcommandeditorwindow.cpp
https://invent.kde.org/education/rkward/-/commit/b4208667d4956036adb4c3725097fd89102d0786
diff --git a/rkward/windows/rkcommandeditorwindow.cpp b/rkward/windows/rkcommandeditorwindow.cpp
index cecfc2344..4d925ee81 100644
--- a/rkward/windows/rkcommandeditorwindow.cpp
+++ b/rkward/windows/rkcommandeditorwindow.cpp
@@ -150,7 +150,8 @@ class RKPreviewModeSelector : public QWidgetAction {
RK_ASSERT(parent);
container = new QWidget(parent);
- new QHBoxLayout(container);
+ auto l = new QHBoxLayout(container);
+ l->setContentsMargins(0, 0, 0, 0);
container->installEventFilter(this);
createMainWin(container);
return container;
@@ -175,13 +176,13 @@ class RKPreviewModeSelector : public QWidgetAction {
auto h = new QHBoxLayout(form);
auto l = new QVBoxLayout();
h->addLayout(l);
- l->addWidget(new QLabel(i18nc("noun: type of preview", "Preview Mode")));
+ l->addWidget(new QLabel(i18nc("noun: type of preview", "<b>Preview Mode</b>")));
auto sep = new QFrame();
sep->setFrameShape(QFrame::VLine);
sep->setFrameShadow(QFrame::Sunken);
h->addWidget(sep);
auto r = new QVBoxLayout();
- r->addWidget(new QLabel(i18n("Options")));
+ r->addWidget(new QLabel(i18n("<b>Options</b>")));
h->addLayout(r);
auto preview_mode_button_group = new QButtonGroup(form);
@@ -233,7 +234,7 @@ class RKPreviewModeSelector : public QWidgetAction {
;
auto olds = container->size();
QActionEvent e(QEvent::ActionChanged, this);
- qApp->sendEvent(p, &e);
+ qApp->sendEvent(win, &e);
if (olds.expandedTo(p->size()) != olds && p->isVisible()) {
p->blockSignals(true);
p->hide();
More information about the rkward-tracker
mailing list