Skip to content

Commit

Permalink
A workaround for a small Qt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsujan committed Jul 30, 2022
1 parent f1e3bd7 commit 9e6c224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Kvantum/NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Latest version:

25 Jul 2022, V1.0.4
30 Jul 2022, V1.0.4

See "ChangeLog" for changes.
3 changes: 3 additions & 0 deletions Kvantum/kvantumpreview/KvantumPreview.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class KvantumPreview : public QMainWindow, private Ui::KvantumPreviewBase {
actionMenuButton->setMenu (menuFile);
toolButton_8->setMenu (menuFile);

/* a workaround for a bug in QPushButton with a shared menu */
pushButton_8->setFocusPolicy(Qt::NoFocus);

toolBar_2->addSeparator();
QLabel *label = new QLabel ("<center><b><i>Kvantum</i></b></center>");
toolBar_2->addWidget (label);
Expand Down

0 comments on commit 9e6c224

Please sign in to comment.