|
31 | 31 | </property> |
32 | 32 | <item> |
33 | 33 | <widget class="QScrollArea" name="scrollArea"> |
34 | | - <property name="widgetResizable"> |
35 | | - <bool>true</bool> |
36 | | - </property> |
37 | 34 | <widget class="QLabel" name="labelView"> |
38 | 35 | <property name="geometry"> |
39 | 36 | <rect> |
40 | 37 | <x>0</x> |
41 | 38 | <y>0</y> |
42 | 39 | <width>431</width> |
43 | | - <height>305</height> |
| 40 | + <height>280</height> |
44 | 41 | </rect> |
45 | 42 | </property> |
| 43 | + <property name="sizePolicy"> |
| 44 | + <sizepolicy hsizetype="Ignored" vsizetype="Ignored"> |
| 45 | + <horstretch>0</horstretch> |
| 46 | + <verstretch>0</verstretch> |
| 47 | + </sizepolicy> |
| 48 | + </property> |
46 | 49 | <property name="contextMenuPolicy"> |
47 | 50 | <enum>Qt::ActionsContextMenu</enum> |
48 | 51 | </property> |
| 52 | + <property name="scaledContents"> |
| 53 | + <bool>true</bool> |
| 54 | + </property> |
49 | 55 | </widget> |
50 | 56 | </widget> |
51 | 57 | </item> |
| 58 | + <item> |
| 59 | + <layout class="QHBoxLayout" name="horizontalLayout"> |
| 60 | + <item> |
| 61 | + <spacer name="horizontalSpacer"> |
| 62 | + <property name="orientation"> |
| 63 | + <enum>Qt::Horizontal</enum> |
| 64 | + </property> |
| 65 | + <property name="sizeHint" stdset="0"> |
| 66 | + <size> |
| 67 | + <width>40</width> |
| 68 | + <height>20</height> |
| 69 | + </size> |
| 70 | + </property> |
| 71 | + </spacer> |
| 72 | + </item> |
| 73 | + <item> |
| 74 | + <widget class="QSlider" name="sliderScale"> |
| 75 | + <property name="minimum"> |
| 76 | + <number>1</number> |
| 77 | + </property> |
| 78 | + <property name="maximum"> |
| 79 | + <number>800</number> |
| 80 | + </property> |
| 81 | + <property name="value"> |
| 82 | + <number>100</number> |
| 83 | + </property> |
| 84 | + <property name="orientation"> |
| 85 | + <enum>Qt::Horizontal</enum> |
| 86 | + </property> |
| 87 | + </widget> |
| 88 | + </item> |
| 89 | + <item> |
| 90 | + <widget class="QToolButton" name="buttonOriginalSize"> |
| 91 | + <property name="toolTip"> |
| 92 | + <string>Reset the scaling to match the original size of the image.</string> |
| 93 | + </property> |
| 94 | + <property name="icon"> |
| 95 | + <iconset resource="icons/icons.qrc"> |
| 96 | + <normaloff>:/icons/view</normaloff>:/icons/view</iconset> |
| 97 | + </property> |
| 98 | + </widget> |
| 99 | + </item> |
| 100 | + <item> |
| 101 | + <widget class="QToolButton" name="buttonFitToWindow"> |
| 102 | + <property name="toolTip"> |
| 103 | + <string>Set the scaling to match the size of the viewport.</string> |
| 104 | + </property> |
| 105 | + <property name="icon"> |
| 106 | + <iconset resource="icons/icons.qrc"> |
| 107 | + <normaloff>:/icons/monitor_link.png</normaloff>:/icons/monitor_link.png</iconset> |
| 108 | + </property> |
| 109 | + <property name="checkable"> |
| 110 | + <bool>true</bool> |
| 111 | + </property> |
| 112 | + </widget> |
| 113 | + </item> |
| 114 | + </layout> |
| 115 | + </item> |
52 | 116 | </layout> |
53 | 117 | <action name="actionPrintImage"> |
54 | 118 | <property name="icon"> |
|
86 | 150 | </hint> |
87 | 151 | </hints> |
88 | 152 | </connection> |
| 153 | + <connection> |
| 154 | + <sender>sliderScale</sender> |
| 155 | + <signal>valueChanged(int)</signal> |
| 156 | + <receiver>ImageViewer</receiver> |
| 157 | + <slot>scaleImage(int)</slot> |
| 158 | + <hints> |
| 159 | + <hint type="sourcelabel"> |
| 160 | + <x>280</x> |
| 161 | + <y>294</y> |
| 162 | + </hint> |
| 163 | + <hint type="destinationlabel"> |
| 164 | + <x>216</x> |
| 165 | + <y>153</y> |
| 166 | + </hint> |
| 167 | + </hints> |
| 168 | + </connection> |
| 169 | + <connection> |
| 170 | + <sender>buttonFitToWindow</sender> |
| 171 | + <signal>toggled(bool)</signal> |
| 172 | + <receiver>ImageViewer</receiver> |
| 173 | + <slot>scaleToFitWindow(bool)</slot> |
| 174 | + <hints> |
| 175 | + <hint type="sourcelabel"> |
| 176 | + <x>419</x> |
| 177 | + <y>294</y> |
| 178 | + </hint> |
| 179 | + <hint type="destinationlabel"> |
| 180 | + <x>216</x> |
| 181 | + <y>153</y> |
| 182 | + </hint> |
| 183 | + </hints> |
| 184 | + </connection> |
89 | 185 | </connections> |
| 186 | + <slots> |
| 187 | + <slot>scaleImage(int)</slot> |
| 188 | + <slot>scaleToFitWindow(bool)</slot> |
| 189 | + </slots> |
90 | 190 | </ui> |
0 commit comments