2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add EditPrivacyBox. Edit last seen privacy.

Selecting exception users is not supported yet.
This commit is contained in:
John Preston
2017-03-16 18:15:07 +03:00
parent a563cf553c
commit 85fd117675
11 changed files with 521 additions and 9 deletions

View File

@@ -583,20 +583,20 @@ class lambda_slot_wrap : public QObject {
Q_OBJECT
public:
lambda_slot_wrap(QObject *parent, lambda_once<void()> lambda) : QObject(parent), _lambda(std::move(lambda)) {
lambda_slot_wrap(QObject *parent, lambda<void()> lambda) : QObject(parent), _lambda(std::move(lambda)) {
}
public slots :
void action() {
public slots :
void action() {
_lambda();
}
private:
lambda_once<void()> _lambda;
lambda<void()> _lambda;
};
inline lambda_slot_wrap *lambda_slot(QObject *parent, lambda_once<void()> lambda) {
inline lambda_slot_wrap *lambda_slot(QObject *parent, lambda<void()> lambda) {
return new lambda_slot_wrap(parent, std::move(lambda));
}