diff options
Diffstat (limited to 'src/frontend/displaywindow/btmodulechooserbutton.h')
-rw-r--r-- | src/frontend/displaywindow/btmodulechooserbutton.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/frontend/displaywindow/btmodulechooserbutton.h b/src/frontend/displaywindow/btmodulechooserbutton.h index 270603b..ba7d89e 100644 --- a/src/frontend/displaywindow/btmodulechooserbutton.h +++ b/src/frontend/displaywindow/btmodulechooserbutton.h @@ -44,8 +44,6 @@ class BtModuleChooserButton : public QToolButton { * A new empty button. updateMenu() is needed to update the icon, menu items etc. */ BtModuleChooserButton(BtModuleChooserBar *parent, CSwordModuleInfo::ModuleType mtype); - /** Does nothing. All resources are freed and children deleted automatically.*/ - ~BtModuleChooserButton(); // /** Returns the module name this button represents. Not needed?*/ //QString module(); @@ -61,10 +59,10 @@ class BtModuleChooserButton : public QToolButton { * If the menu doesn't exist, creates it first and then updates it. * Updates also the icon. */ - void updateMenu(QStringList newModulesToUse, QString thisModule, int newIndex); + void updateMenu(QStringList newModulesToUse, QString thisModule, int newIndex, int leftLikeModules); /** Creates the menu from scratch and updates the items using updateMenu().*/ - void recreateMenu(QStringList newModulesToUse, QString thisModule, int newIndex); + void recreateMenu(QStringList newModulesToUse, QString thisModule, int newIndex, int leftLikeModules); signals: /** User selected a module from menu to replace another module*/ |