[kde-edu]: KDE/kdeedu/ktouch/src/ui

Marco Martin notmart at gmail.com
Sun Jan 30 21:14:30 CET 2011


SVN commit 1218043 by mart:

use toolbuttons with arrows instead of the deprecated KArrowButton
http://svn.reviewboard.kde.org/r/6414/#review9728
CCMAIL:kde-edu at kde.org


 M  +42 -31    ktouchstatuswidget.ui  


--- trunk/KDE/kdeedu/ktouch/src/ui/ktouchstatuswidget.ui #1218042:1218043
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <ui version="4.0" >
  <class>KTouchStatusWidget</class>
  <widget class="QWidget" name="KTouchStatusWidget" >
@@ -10,7 +11,7 @@
    </rect>
   </property>
   <property name="sizePolicy" >
-   <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
+   <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>
@@ -27,17 +28,11 @@
      <property name="title" >
       <string>Level</string>
      </property>
-     <layout class="QHBoxLayout" >
-      <property name="spacing" >
-       <number>6</number>
-      </property>
-      <property name="margin" >
-       <number>9</number>
-      </property>
+     <layout class="QHBoxLayout" name="horizontalLayout">
       <item>
        <widget class="QLCDNumber" name="levelLCD" >
         <property name="sizePolicy" >
-         <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
@@ -71,20 +66,41 @@
          <number>0</number>
         </property>
         <item>
-         <widget class="KArrowButton" name="levelUpBtn" >
-          <property name="focusPolicy" >
-           <enum>Qt::NoFocus</enum>
+         <widget class="QToolButton" name="levelUpBtn">
+          <property name="text">
+           <string>...</string>
           </property>
+          <property name="iconSize">
+           <size>
+            <width>8</width>
+            <height>8</height>
+           </size>
+          </property>
+          <property name="autoRaise">
+           <bool>true</bool>
+          </property>
+          <property name="arrowType">
+           <enum>Qt::UpArrow</enum>
+          </property>
          </widget>
         </item>
         <item>
-         <widget class="KArrowButton" name="levelDownBtn" >
-          <property name="focusPolicy" >
-           <enum>Qt::NoFocus</enum>
+         <widget class="QToolButton" name="levelDownBtn">
+          <property name="text">
+           <string>...</string>
           </property>
-          <property name="arrowType" stdset="0" >
-           <number>2</number>
+          <property name="iconSize">
+           <size>
+            <width>8</width>
+            <height>8</height>
+           </size>
           </property>
+          <property name="autoRaise">
+           <bool>true</bool>
+          </property>
+          <property name="arrowType">
+           <enum>Qt::DownArrow</enum>
+          </property>
          </widget>
         </item>
        </layout>
@@ -115,7 +131,7 @@
         <item>
          <widget class="KLed" name="speedLedGreen" >
           <property name="sizePolicy" >
-           <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
+           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
@@ -131,7 +147,7 @@
         <item>
          <widget class="KLed" name="speedLedRed" >
           <property name="sizePolicy" >
-           <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
+           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
@@ -153,7 +169,7 @@
       <item>
        <widget class="QLCDNumber" name="speedLCD" >
         <property name="sizePolicy" >
-         <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
@@ -181,7 +197,7 @@
    <item>
     <widget class="QGroupBox" name="GroupBox12" >
      <property name="sizePolicy" >
-      <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+      <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
        <horstretch>1</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
@@ -207,7 +223,7 @@
         <item>
          <widget class="KLed" name="correctnessLedGreen" >
           <property name="sizePolicy" >
-           <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
+           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
@@ -220,7 +236,7 @@
         <item>
          <widget class="KLed" name="correctnessLedRed" >
           <property name="sizePolicy" >
-           <sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
+           <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
@@ -242,7 +258,7 @@
       <item>
        <widget class="QProgressBar" name="correctnessBar" >
         <property name="sizePolicy" >
-         <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
+         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
@@ -264,7 +280,7 @@
    <item>
     <widget class="QGroupBox" name="GroupBox4" >
      <property name="sizePolicy" >
-      <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
+      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
        <horstretch>2</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
@@ -276,7 +292,7 @@
       <item>
        <widget class="QLabel" name="newCharsLabel" >
         <property name="sizePolicy" >
-         <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
@@ -310,11 +326,6 @@
  </widget>
   <customwidgets>
   <customwidget>
-   <class>KArrowButton</class>
-   <extends>QPushButton</extends>
-   <header>karrowbutton.h</header>
-  </customwidget>
-  <customwidget>
    <class>KLed</class>
    <extends>QWidget</extends>
    <header>kled.h</header>


More information about the kde-edu mailing list