mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Drop incredibly dirty and huge file FastDelegate.h
It's way too over-engineered for what we need to do, and we can do much simpler using C++11.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "menusettingbool.h"
|
||||
|
||||
#include "delegate.h"
|
||||
#include "gmenu2x.h"
|
||||
#include "iconbutton.h"
|
||||
#include "utilities.h"
|
||||
@@ -27,7 +28,6 @@
|
||||
#include <sstream>
|
||||
|
||||
using std::string;
|
||||
using fastdelegate::MakeDelegate;
|
||||
|
||||
MenuSettingBool::MenuSettingBool(
|
||||
GMenu2X *gmenu2x, Touchscreen &ts,
|
||||
@@ -60,7 +60,7 @@ void MenuSettingBool::initButton()
|
||||
IconButton *btn = new IconButton(gmenu2x, ts,
|
||||
"skin:imgs/buttons/accept.png",
|
||||
gmenu2x->tr["Switch"]);
|
||||
btn->setAction(MakeDelegate(this, &MenuSettingBool::toggle));
|
||||
btn->setAction(BIND(&MenuSettingBool::toggle));
|
||||
buttonBox.add(btn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user