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,12 +20,12 @@
|
||||
|
||||
#include "menusettingfile.h"
|
||||
|
||||
#include "delegate.h"
|
||||
#include "filedialog.h"
|
||||
#include "gmenu2x.h"
|
||||
#include "iconbutton.h"
|
||||
|
||||
using std::string;
|
||||
using fastdelegate::MakeDelegate;
|
||||
|
||||
MenuSettingFile::MenuSettingFile(
|
||||
GMenu2X *gmenu2x, Touchscreen &ts_,
|
||||
@@ -38,11 +38,11 @@ MenuSettingFile::MenuSettingFile(
|
||||
IconButton *btn;
|
||||
|
||||
btn = new IconButton(gmenu2x, ts, "skin:imgs/buttons/cancel.png", gmenu2x->tr["Clear"]);
|
||||
btn->setAction(MakeDelegate(this, &MenuSettingFile::clear));
|
||||
btn->setAction(BIND(&MenuSettingFile::clear));
|
||||
buttonBox.add(btn);
|
||||
|
||||
btn = new IconButton(gmenu2x, ts, "skin:imgs/buttons/accept.png", gmenu2x->tr["Select a file"]);
|
||||
btn->setAction(MakeDelegate(this, &MenuSettingFile::edit));
|
||||
btn->setAction(BIND(&MenuSettingFile::edit));
|
||||
buttonBox.add(btn);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user