Mercurial > octave
changeset 29472:ad67c68bb22a
fix broken build with Qt 5.4 after cset 0e9319d40977 (bug #60298)
* tab-bar.cc (mousePressEvent): use QAction ctor with icon, text, and parent
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Wed, 31 Mar 2021 13:39:31 +0200 |
parents | 6806f7aa30c1 |
children | 6aafc1637e39 |
files | libgui/src/tab-bar.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/tab-bar.cc Wed Mar 31 13:38:34 2021 +0200 +++ b/libgui/src/tab-bar.cc Wed Mar 31 13:39:31 2021 +0200 @@ -226,7 +226,7 @@ for (int i = count () - 1; i >= 0; i--) { // Prepend an action for each tab - QAction* a = new QAction (tabIcon (i), tabText (i)); + QAction* a = new QAction (tabIcon (i), tabText (i), &ctx_menu); m_ctx_actions.prepend (a); } // Add all actions to our menu