diff options
author | Timothy Pearson <[email protected]> | 2012-11-15 14:42:19 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-11-15 14:42:19 -0600 |
commit | 81e56a909befa0679332c6a22ae84c86e1d057ce (patch) | |
tree | 0b0548f32f23170dd3d9346f01b05f8a2f7f161a /kruler/klineal.h | |
parent | 8fb269b60c0938d1ce8a3912038ad8d7ce8a79e0 (diff) | |
download | tdegraphics-81e56a909befa0679332c6a22ae84c86e1d057ce.tar.gz tdegraphics-81e56a909befa0679332c6a22ae84c86e1d057ce.zip |
Fix incorrect kruler orientation on session restore
Diffstat (limited to 'kruler/klineal.h')
-rw-r--r-- | kruler/klineal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kruler/klineal.h b/kruler/klineal.h index 407472df..31c948ae 100644 --- a/kruler/klineal.h +++ b/kruler/klineal.h @@ -44,8 +44,9 @@ public: TQPoint pos(); int x(); int y(); + protected: - void keyPressEvent(TQKeyEvent *e); + void keyPressEvent(TQKeyEvent *e); void mousePressEvent(TQMouseEvent *e); void mouseReleaseEvent(TQMouseEvent *e); void mouseMoveEvent(TQMouseEvent *e); @@ -54,10 +55,14 @@ protected: void leaveEvent(TQEvent *e); void setupBackground(); + // session management + virtual void saveProperties( KConfig *config ); + virtual void readProperties( KConfig *config ); private: void drawScale(TQPainter &painter); void reLength(int percentOfScreen); + void setupCursor(); bool mDragging; TQPoint mLastClickPos; TQPoint mDragOffset; @@ -79,7 +84,8 @@ private: TQCursor mDragCursor; KColorDialog mColorSelector; TQFont mScaleFont; - bool _clicked; + bool _clicked; + public slots: void setOrientation(int); void setNorth(); |