Browse Source

Use the KPushButton::stdItem property so pushbuttons honor the system-wide preference to show icons next to standard pushbutton. Also remove minimum sizes for pushbuttons for consistency.

git-svn-id: file:///var/svn/tigccpp/trunk@699 9552661e-59e3-4036-b4f2-dbe53926924f
kevinkofler 18 years ago
parent
commit
f911a29b09
4 changed files with 18 additions and 34 deletions
  1. 6 0
      ktigcc/preferencesdlg.ui
  2. 3 6
      ktigcc/programoptions.ui
  3. 3 0
      ktigcc/programoutput.ui
  4. 6 28
      ktigcc/projectoptions.ui

+ 6 - 0
ktigcc/preferencesdlg.ui

@@ -763,6 +763,9 @@
                     <property name="accel">
                         <string>Alt+O</string>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>1</number>
+                    </property>
                 </widget>
                 <widget class="KPushButton">
                     <property name="name">
@@ -774,6 +777,9 @@
                     <property name="accel">
                         <string>Alt+C</string>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>2</number>
+                    </property>
                 </widget>
             </hbox>
         </widget>

+ 3 - 6
ktigcc/programoptions.ui

@@ -1585,12 +1585,6 @@
                     <property name="name">
                         <cstring>buttonClose</cstring>
                     </property>
-                    <property name="minimumSize">
-                        <size>
-                            <width>100</width>
-                            <height>0</height>
-                        </size>
-                    </property>
                     <property name="text">
                         <string>&amp;Close</string>
                     </property>
@@ -1600,6 +1594,9 @@
                     <property name="autoDefault">
                         <bool>true</bool>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>13</number>
+                    </property>
                 </widget>
             </hbox>
         </widget>

+ 3 - 0
ktigcc/programoutput.ui

@@ -88,6 +88,9 @@
                     <property name="default">
                         <bool>true</bool>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>13</number>
+                    </property>
                 </widget>
             </hbox>
         </widget>

+ 6 - 28
ktigcc/projectoptions.ui

@@ -1511,20 +1511,6 @@
                     <property name="name">
                         <cstring>buttonOk</cstring>
                     </property>
-                    <property name="sizePolicy">
-                        <sizepolicy>
-                            <hsizetype>5</hsizetype>
-                            <vsizetype>4</vsizetype>
-                            <horstretch>0</horstretch>
-                            <verstretch>0</verstretch>
-                        </sizepolicy>
-                    </property>
-                    <property name="minimumSize">
-                        <size>
-                            <width>100</width>
-                            <height>0</height>
-                        </size>
-                    </property>
                     <property name="text">
                         <string>&amp;OK</string>
                     </property>
@@ -1540,25 +1526,14 @@
                     <property name="default">
                         <bool>true</bool>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>1</number>
+                    </property>
                 </widget>
                 <widget class="KPushButton">
                     <property name="name">
                         <cstring>buttonCancel</cstring>
                     </property>
-                    <property name="sizePolicy">
-                        <sizepolicy>
-                            <hsizetype>5</hsizetype>
-                            <vsizetype>5</vsizetype>
-                            <horstretch>0</horstretch>
-                            <verstretch>0</verstretch>
-                        </sizepolicy>
-                    </property>
-                    <property name="minimumSize">
-                        <size>
-                            <width>100</width>
-                            <height>0</height>
-                        </size>
-                    </property>
                     <property name="text">
                         <string>&amp;Cancel</string>
                     </property>
@@ -1568,6 +1543,9 @@
                     <property name="autoDefault">
                         <bool>true</bool>
                     </property>
+                    <property name="stdItem" stdset="0">
+                        <number>2</number>
+                    </property>
                 </widget>
             </hbox>
         </widget>