mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
New way of working with boxes (layers).
Now the background of boxes is separated to another widget. This will allow to use a special layer widget (like settings) together with the usual layers-boxes upon it, moving the special widget behind the dark background when a usual layer-box is shown.
This commit is contained in:
@@ -26,25 +26,21 @@ class LanguageBox : public AbstractBox {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
LanguageBox();
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
void paintEvent(QPaintEvent *e);
|
||||
~LanguageBox();
|
||||
|
||||
public slots:
|
||||
|
||||
void onChange();
|
||||
void onRestore();
|
||||
void onSave();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *e) override;
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
|
||||
void hideAll();
|
||||
void showAll();
|
||||
void showAll() override;
|
||||
|
||||
private:
|
||||
|
||||
QVector<Radiobutton*> _langs;
|
||||
BoxButton _close;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user