fixed multi monitor support
This commit is contained in:
parent
b3c663046f
commit
e4732d086b
2 changed files with 43 additions and 13 deletions
|
|
@ -23,6 +23,8 @@
|
|||
#include <QMenuBar>
|
||||
#include <QMenu>
|
||||
#include <QScreen>
|
||||
#include <QToolBar>
|
||||
#include <QWindow>
|
||||
|
||||
//#include <QScrollBar>
|
||||
/*
|
||||
|
|
@ -201,7 +203,8 @@ public:
|
|||
protected:
|
||||
void closeEvent(QCloseEvent *event) override;
|
||||
void customEvent(QEvent* ev) override;
|
||||
QRect setSizePosition(int width, int height);
|
||||
QRect setSizePosition(int width, int height);
|
||||
QScreen* getCurrentScreen();
|
||||
|
||||
private slots:
|
||||
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
|
||||
|
|
@ -229,7 +232,7 @@ private:
|
|||
|
||||
QScrollArea *scrollArea;
|
||||
HeaderWidget* hw;
|
||||
QMenuBar *mainMenuBar;
|
||||
QToolBar *mainMenuBar;
|
||||
QScreen *screen;
|
||||
//todo: ratio
|
||||
//Win10 1080p 120%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue