From 9d9b25dc11ada21ad1d1caae42631c36cd9c46bf Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 11 Oct 2020 23:27:56 +1100 Subject: [PATCH] menu: removed unused function Hold-over from 0.1, we have better ways of achieving this now. --- app/widget/menu/menu.cpp | 8 -------- app/widget/menu/menu.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/app/widget/menu/menu.cpp b/app/widget/menu/menu.cpp index f0558614b..9de1136f5 100644 --- a/app/widget/menu/menu.cpp +++ b/app/widget/menu/menu.cpp @@ -100,14 +100,6 @@ void Menu::ConformItem(QAction *a, const QString &id, const QString &key) } } -void Menu::SetBooleanAction(QAction *a, bool* boolean) -{ - // FIXME: Connect to some boolean function - a->setCheckable(true); - a->setChecked(*boolean); - a->setProperty("boolptr", reinterpret_cast(boolean)); -} - void Menu::Init() { // HACK: Disables embossing on disabled text for a slightly nicer UI diff --git a/app/widget/menu/menu.h b/app/widget/menu/menu.h index 777143efc..142753402 100644 --- a/app/widget/menu/menu.h +++ b/app/widget/menu/menu.h @@ -226,8 +226,6 @@ public: const QString& id, const QString& key = QString()); - static void SetBooleanAction(QAction* a, bool *boolean); - private: void Init();