1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
|
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ImageViewer</class>
<widget class="QWidget" name="ImageViewer">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>433</width>
<height>307</height>
</rect>
</property>
<property name="windowTitle">
<string>Image Viewer</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<widget class="QLabel" name="labelView">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>431</width>
<height>280</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Ignored" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="contextMenuPolicy">
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QSlider" name="sliderScale">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>800</number>
</property>
<property name="value">
<number>100</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonOriginalSize">
<property name="toolTip">
<string>Reset the scaling to match the original size of the image.</string>
</property>
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/view</normaloff>:/icons/view</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="buttonFitToWindow">
<property name="toolTip">
<string>Set the scaling to match the size of the viewport.</string>
</property>
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/monitor_link</normaloff>:/icons/monitor_link</iconset>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<action name="actionPrintImage">
<property name="icon">
<iconset resource="icons/icons.qrc">
<normaloff>:/icons/print</normaloff>:/icons/print</iconset>
</property>
<property name="text">
<string>Print...</string>
</property>
<property name="toolTip">
<string>Open preview dialog for printing displayed image</string>
</property>
<property name="shortcut">
<string>Ctrl+P</string>
</property>
</action>
</widget>
<resources>
<include location="icons/icons.qrc"/>
</resources>
<connections>
<connection>
<sender>actionPrintImage</sender>
<signal>triggered()</signal>
<receiver>ImageViewer</receiver>
<slot>openPrintImageDialog()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>308</x>
<y>190</y>
</hint>
</hints>
</connection>
<connection>
<sender>sliderScale</sender>
<signal>valueChanged(int)</signal>
<receiver>ImageViewer</receiver>
<slot>scaleImage(int)</slot>
<hints>
<hint type="sourcelabel">
<x>280</x>
<y>294</y>
</hint>
<hint type="destinationlabel">
<x>216</x>
<y>153</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonFitToWindow</sender>
<signal>toggled(bool)</signal>
<receiver>ImageViewer</receiver>
<slot>scaleToFitWindow(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>419</x>
<y>294</y>
</hint>
<hint type="destinationlabel">
<x>216</x>
<y>153</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>scaleImage(int)</slot>
<slot>scaleToFitWindow(bool)</slot>
</slots>
</ui>
|