mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
[UI] avoid "jumping around" if window was resized
* resizing in frameless is subject of QSizeGrip in the status bar * also make sure resize grip is always aligned to the right QSizePolicy::MinimumExpanding * the last point still still happens (resize button centered) for an unknown reason
This commit is contained in:
committed by
Mat Sutcliffe
parent
d8ec308a3b
commit
516a7063e5
@@ -16,6 +16,7 @@
|
||||
#include <QByteArray>
|
||||
#include <QPoint>
|
||||
#include <QString>
|
||||
#include <QSize>
|
||||
#include <Qt>
|
||||
|
||||
class QEvent;
|
||||
@@ -88,6 +89,7 @@ namespace BlackGui
|
||||
|
||||
protected:
|
||||
QPoint m_framelessDragPosition; //!< position, if moving is handled with frameless window
|
||||
QSize m_moveSize; //!< size when moved (in frameless window)
|
||||
QPushButton *m_framelessCloseButton = nullptr; //!< close button
|
||||
WindowMode m_windowMode = WindowNormal; //!< Window mode, \sa WindowMode
|
||||
WindowMode m_originalWindowMode = WindowNormal; //!< mode when initialized
|
||||
|
||||
Reference in New Issue
Block a user