aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/ResizeMenu.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-11-14 14:17:27 -0500
committerKen Moore <ken@ixsystems.com>2017-11-14 14:17:27 -0500
commit79df03631348f217c5739fc097c3b7ee53df499c (patch)
treec9bf851a5fd2a466cd3b7a92f81b82d424b603db /src-qt5/core/libLumina/ResizeMenu.h
parentFinish up a bit more cleanup of keyboard events in lumina-pdf (diff)
downloadlumina-79df03631348f217c5739fc097c3b7ee53df499c.tar.gz
lumina-79df03631348f217c5739fc097c3b7ee53df499c.tar.bz2
lumina-79df03631348f217c5739fc097c3b7ee53df499c.zip
Fix up some initial startmenu sizing.
Diffstat (limited to 'src-qt5/core/libLumina/ResizeMenu.h')
-rw-r--r--src-qt5/core/libLumina/ResizeMenu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/core/libLumina/ResizeMenu.h b/src-qt5/core/libLumina/ResizeMenu.h
index ed909da3..029d2716 100644
--- a/src-qt5/core/libLumina/ResizeMenu.h
+++ b/src-qt5/core/libLumina/ResizeMenu.h
@@ -17,7 +17,7 @@
#include <QPoint>
//Special subclass for a menu which the user can grab the edges and resize as necessary
-// Note: Make sure that you don't set 0pixel contents margins on this menu
+// Note: Make sure that you don't set 0pixel contents margins on this menu
// - it needs at least 1 pixel margins for the user to be able to grab it
class ResizeMenu : public QMenu{
Q_OBJECT
@@ -26,13 +26,14 @@ public:
virtual ~ResizeMenu();
void setContents(QWidget *con);
+ void resyncSize();
private:
enum SideFlag{NONE, TOP, BOTTOM, LEFT, RIGHT};
SideFlag resizeSide;
QWidget *contents;
QWidgetAction *cAct;
-
+
private slots:
void clearFlags(){
resizeSide=NONE;
bgstack15