Commit 31306680 authored by Aurélien Gâteau's avatar Aurélien Gâteau

Remove length actions

All resizing can now be done using the resize handles
parent 802902f2
This diff is collapsed.
...@@ -62,8 +62,6 @@ private: ...@@ -62,8 +62,6 @@ private:
void drawScaleText( QPainter &painter, int x, const QString &text ); void drawScaleText( QPainter &painter, int x, const QString &text );
void drawScaleTick( QPainter &painter, int x, int length ); void drawScaleTick( QPainter &painter, int x, int length );
void drawResizeHandle( QPainter &painter, Qt::Edge edge ); void drawResizeHandle( QPainter &painter, Qt::Edge edge );
void reLength( int percentOfScreen );
void reLengthAbsolute( int length );
void updateScaleDirectionMenuItem(); void updateScaleDirectionMenuItem();
QRect beginRect() const; QRect beginRect() const;
...@@ -85,12 +83,8 @@ private: ...@@ -85,12 +83,8 @@ private:
QPoint mDragOffset; QPoint mDragOffset;
QAutoSizeLabel *mLabel; QAutoSizeLabel *mLabel;
bool mHorizontal; bool mHorizontal;
int mLongEdgeLen;
int mShortEdgeLen;
QMenu *mMenu; QMenu *mMenu;
QAction *mCloseAction; QAction *mCloseAction;
QMenu *mLenMenu;
QAction *mFullScreenAction;
QAction *mScaleDirectionAction; QAction *mScaleDirectionAction;
QAction *mCenterOriginAction; QAction *mCenterOriginAction;
QAction *mOffsetAction; QAction *mOffsetAction;
...@@ -108,20 +102,16 @@ private: ...@@ -108,20 +102,16 @@ private:
void setHorizontal( bool horizontal ); void setHorizontal( bool horizontal );
bool isResizing() const; bool isResizing() const;
int length() const;
QPoint localCursorPos() const; QPoint localCursorPos() const;
public slots: public slots:
void rotate(); void rotate();
void showMenu(); void showMenu();
void adjustLabel(); void adjustLabel();
void setShortLength();
void setMediumLength();
void setTallLength();
void setFullLength();
void switchDirection(); void switchDirection();
void centerOrigin(); void centerOrigin();
void slotOffset(); void slotOffset();
void slotLength();
void slotOpacity( int value ); void slotOpacity( int value );
void slotKeyBindings(); void slotKeyBindings();
void slotPreferences(); void slotPreferences();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment