comparison libgui/src/settings-dialog.ui @ 19847:597fc0fd8e54

make size of toolbar icons depending on scaling of display * files-dock-widget.cc (notice_settings): set icon size to small, normal or large by using qt pixel metrics * file-editor.cc notice_settings): set icon size to small, normal or large by using qt pixel metrics * main-window.cc (notice_settings): set icon size to small, normal or large by using qt pixel metrics * settings-dialog.ui: use radio buttons for small, normal and large icon size instead of spin box with pixel sizes * settings-dialog.cc (settings_dialog): initialize the radio buttons depending on the settings file; (write_changed_settings): save the icon size depending on radio buttons
author Torsten <ttl@justmail.de>
date Tue, 24 Feb 2015 09:35:34 +0100
parents 72fe9df87fe8
children 2a992bd19169
comparison
equal deleted inserted replaced
19846:72fe9df87fe8 19847:597fc0fd8e54
117 </widget> 117 </widget>
118 </item> 118 </item>
119 <item row="2" column="1"> 119 <item row="2" column="1">
120 <layout class="QHBoxLayout" name="horizontalLayout_6"> 120 <layout class="QHBoxLayout" name="horizontalLayout_6">
121 <item> 121 <item>
122 <widget class="QSpinBox" name="toolbar_icon_size"> 122 <widget class="QRadioButton" name="icon_size_small">
123 <property name="minimum"> 123 <property name="text">
124 <number>16</number> 124 <string>Small</string>
125 </property> 125 </property>
126 <property name="maximum"> 126 </widget>
127 <number>32</number> 127 </item>
128 <item>
129 <widget class="QRadioButton" name="icon_size_normal">
130 <property name="text">
131 <string> Normal</string>
128 </property> 132 </property>
129 <property name="singleStep"> 133 <property name="checked">
130 <number>4</number> 134 <bool>true</bool>
131 </property> 135 </property>
132 <property name="value"> 136 </widget>
133 <number>24</number> 137 </item>
138 <item>
139 <widget class="QRadioButton" name="icon_size_large">
140 <property name="text">
141 <string>Large</string>
134 </property> 142 </property>
135 </widget> 143 </widget>
136 </item> 144 </item>
137 <item> 145 <item>
138 <spacer name="horizontalSpacer_4"> 146 <spacer name="horizontalSpacer_4">