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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user