mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Removed "delegate.h"
The abstraction it provided was so thin that I think it is simpler to just have the code use std::bind directly.
This commit is contained in:
@@ -20,11 +20,11 @@
|
||||
|
||||
#include "menusettingfile.h"
|
||||
|
||||
#include "delegate.h"
|
||||
#include "filedialog.h"
|
||||
#include "gmenu2x.h"
|
||||
#include "iconbutton.h"
|
||||
|
||||
using std::bind;
|
||||
using std::string;
|
||||
using std::unique_ptr;
|
||||
|
||||
@@ -39,12 +39,12 @@ MenuSettingFile::MenuSettingFile(
|
||||
buttonBox.add(unique_ptr<IconButton>(new IconButton(
|
||||
gmenu2x, ts, "skin:imgs/buttons/cancel.png",
|
||||
gmenu2x->tr["Clear"],
|
||||
BIND(&MenuSettingFile::clear))));
|
||||
bind(&MenuSettingFile::clear, this))));
|
||||
|
||||
buttonBox.add(unique_ptr<IconButton>(new IconButton(
|
||||
gmenu2x, ts, "skin:imgs/buttons/accept.png",
|
||||
gmenu2x->tr["Select"],
|
||||
BIND(&MenuSettingFile::edit))));
|
||||
bind(&MenuSettingFile::edit, this))));
|
||||
}
|
||||
|
||||
void MenuSettingFile::edit()
|
||||
|
||||
Reference in New Issue
Block a user