Commit 8d61a5b9 authored by Gregory Legrain's avatar Gregory Legrain Committed by Henrik Fehlauer

Swap position and size in crop tool

Summary:
When one wants to re-use crop settings in gwenview (i.e. position and size), they have to be entered in the following order :
1/ Size
2/ Position

(it is not possible to do it the other way, as position is locked until the size of the crop area is smaller than the size of the image).

However, the settings are displayed in the reverse order, which is not convenient (un-necessary mouse actions).

BUG: 391758

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: muhlenpfordt, rkflx, ngraham

Tags: #gwenview

Differential Revision: https://phabricator.kde.org/D11329
parent 1e66de8f
......@@ -81,18 +81,18 @@
</sizepolicy>
</property>
<property name="text">
<string>Position:</string>
<string>Size:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>leftSpinBox</cstring>
<cstring>widthSpinBox</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="leftSpinBox">
<widget class="QSpinBox" name="widthSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -102,7 +102,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="topSpinBox">
<widget class="QSpinBox" name="heightSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -114,18 +114,18 @@
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Size:</string>
<string>Position:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>widthSpinBox</cstring>
<cstring>leftSpinBox</cstring>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="widthSpinBox">
<widget class="QSpinBox" name="leftSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -135,7 +135,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="heightSpinBox">
<widget class="QSpinBox" name="topSpinBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
......@@ -171,10 +171,10 @@
</widget>
<tabstops>
<tabstop>ratioComboBox</tabstop>
<tabstop>leftSpinBox</tabstop>
<tabstop>topSpinBox</tabstop>
<tabstop>widthSpinBox</tabstop>
<tabstop>heightSpinBox</tabstop>
<tabstop>leftSpinBox</tabstop>
<tabstop>topSpinBox</tabstop>
</tabstops>
<resources/>
<connections/>
......
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