aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/RootSubWindow.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-03-02 23:12:48 -0500
committerKen Moore <ken@ixsystems.com>2017-03-02 23:12:48 -0500
commit11d5822bba436be0201774c570f67783f6ff88e2 (patch)
treee699cb01dec91ad25db751409784ad3531e549b9 /src-qt5/core/libLumina/RootSubWindow.h
parentWrite up a new window frame for Lumina2 (not using the QMdi[Sub]Window classe... (diff)
downloadlumina-11d5822bba436be0201774c570f67783f6ff88e2.tar.gz
lumina-11d5822bba436be0201774c570f67783f6ff88e2.tar.bz2
lumina-11d5822bba436be0201774c570f67783f6ff88e2.zip
A bit more work on the new window frames. Now the minimum size policies are respected, and the border extents have been standardized.
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.h')
-rw-r--r--src-qt5/core/libLumina/RootSubWindow.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.h b/src-qt5/core/libLumina/RootSubWindow.h
index fcf0fdae..12feaea6 100644
--- a/src-qt5/core/libLumina/RootSubWindow.h
+++ b/src-qt5/core/libLumina/RootSubWindow.h
@@ -20,6 +20,7 @@
#include <QMenu>
#include <NativeWindow.h>
+
class RootSubWindow : public QFrame{
Q_OBJECT
public:
@@ -32,6 +33,7 @@ private:
//Window status
enum ModState{Normal, Move, ResizeTop, ResizeTopRight, ResizeRight, ResizeBottomRight, ResizeBottom, ResizeBottomLeft, ResizeLeft, ResizeTopLeft};
ModState activeState;
+ ModState currentCursor;
QPoint offset; //needed for movement calculations (offset from mouse click to movement point)
//Functions for getting/setting state
ModState getStateAtPoint(QPoint pt, bool setoffset = false); //generally used for mouse location detection
@@ -42,7 +44,7 @@ private:
bool closing;
//Title bar objects
QBoxLayout *titleBar, *mainLayout;
- QToolButton *closeB, *maxB, *minB;
+ QToolButton *closeB, *maxB, *minB, *otherB;
QLabel *titleLabel;
QMenu *otherM; //menu of other actions
void initWindowFrame();
@@ -64,13 +66,13 @@ public slots:
void startResizing();
private slots:
- void aboutToActivate();
void propertyChanged(NativeWindow::Property, QVariant);
protected:
void mousePressEvent(QMouseEvent*);
void mouseMoveEvent(QMouseEvent*);
void mouseReleaseEvent(QMouseEvent*);
+ void leaveEvent(QEvent *ev);
};
bgstack15