mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Removed blue window title, new small title used only in Windows.
This commit is contained in:
@@ -394,4 +394,25 @@ public:
|
||||
|
||||
};
|
||||
|
||||
class lambda_slot_wrap : public QObject {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
lambda_slot_wrap(QObject *parent, lambda_unique<void()> lambda) : QObject(parent), _lambda(std_::move(lambda)) {
|
||||
}
|
||||
|
||||
public slots:
|
||||
void action() {
|
||||
_lambda();
|
||||
}
|
||||
|
||||
private:
|
||||
lambda_unique<void()> _lambda;
|
||||
|
||||
};
|
||||
|
||||
inline lambda_slot_wrap *lambda_slot(QObject *parent, lambda_unique<void()> lambda) {
|
||||
return new lambda_slot_wrap(parent, std_::move(lambda));
|
||||
}
|
||||
|
||||
} // namespace base
|
||||
|
||||
Reference in New Issue
Block a user