2
0
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:
John Preston
2016-08-16 19:53:10 +03:00
parent 05697374c5
commit 392984f276
54 changed files with 770 additions and 990 deletions

View File

@@ -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;
};