X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fkeymenu.cpp;fp=src%2Fkeymenu.cpp;h=d973fba72c25f630f0644b5ef996af2dc5c31b50;hb=59cc42a15c9e70a4f0916c8e7c1d97d013bc32b5;hp=fa78331fd2067b4ee258ac1326b6eb6e49677cbc;hpb=d1aa5ec4da3a30c2cdfd178ad996b2e448f09854;p=presencevnc diff --git a/src/keymenu.cpp b/src/keymenu.cpp index fa78331..d973fba 100644 --- a/src/keymenu.cpp +++ b/src/keymenu.cpp @@ -28,11 +28,11 @@ KeyMenu::KeyMenu(QWidget *parent): //modifiers ActionTab *mod_tab = new ActionTab(this); - QAction *win = new QAction(tr("Win"), this); + win = new QAction(tr("Win"), this); win->setShortcut(Qt::META); win->setCheckable(true); mod_tab->addAction(win); - QAction *alt = new QAction(tr("Alt"), this); + alt = new QAction(tr("Alt"), this); alt->setShortcut(Qt::ALT); alt->setCheckable(true); mod_tab->addAction(alt); @@ -84,8 +84,9 @@ ActionTab::ActionTab(KeyMenu *parent): keymenu(parent) { setWidgetResizable(true); - setWidget(&widget); - widget.setLayout(&layout); + QWidget *widget = new QWidget(this); + setWidget(widget); + widget->setLayout(&layout); } void ActionTab::addAction(QString text, QKeySequence keysequence)