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

Use layers and boxes from lib_ui.

This commit is contained in:
John Preston
2019-09-18 14:19:05 +03:00
parent 860353824b
commit a6c84c36c0
209 changed files with 586 additions and 3349 deletions

View File

@@ -10,6 +10,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/timer.h"
#include "base/object_ptr.h"
#include "ui/rp_widget.h"
#include "ui/layers/layer_widget.h"
namespace Ui {
class IconButton;
@@ -23,18 +24,20 @@ namespace Window {
class SessionController;
class MainMenu : public Ui::RpWidget, private base::Subscriber {
class MainMenu : public Ui::LayerWidget, private base::Subscriber {
public:
MainMenu(QWidget *parent, not_null<SessionController*> controller);
void setInnerFocus() {
setFocus();
}
void parentResized() override;
protected:
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
void doSetInnerFocus() override {
setFocus();
}
private:
void updateControlsGeometry();
void updatePhone();