wdgcolortoalphabase.ui 3.8 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
3
 <class>WdgColorToAlphaBase</class>
4 5
 <widget class="QWidget" name="WdgColorToAlphaBase">
  <property name="geometry">
6 7 8
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>323</width>
    <height>254</height>
11 12
   </rect>
  </property>
13 14 15 16
  <layout class="QFormLayout" name="formLayout">
   <property name="fieldGrowthPolicy">
    <enum>QFormLayout::ExpandingFieldsGrow</enum>
   </property>
17 18 19 20
   <item row="0" column="0">
    <widget class="QLabel" name="textLabel1">
     <property name="text">
      <string>Color:</string>
21
     </property>
22 23
     <property name="wordWrap">
      <bool>false</bool>
24 25 26
     </property>
    </widget>
   </item>
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
   <item row="0" column="1">
    <layout class="QHBoxLayout" name="horizontalLayout_2">
     <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>
      <layout class="QVBoxLayout" name="verticalLayout">
       <item>
        <widget class="KoTriangleColorSelector" name="colorSelector" native="true"/>
       </item>
       <item>
        <widget class="KColorButton" name="btnCustomColor">
         <property name="autoDefault">
          <bool>false</bool>
         </property>
        </widget>
       </item>
      </layout>
     </item>
    </layout>
57
   </item>
58 59 60 61 62 63 64 65 66 67 68
   <item row="1" column="0">
    <widget class="QLabel" name="textLabel1_2">
     <property name="text">
      <string>Threshold:</string>
     </property>
     <property name="wordWrap">
      <bool>false</bool>
     </property>
    </widget>
   </item>
   <item row="1" column="1">
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
    <layout class="QHBoxLayout" name="horizontalLayout">
     <item>
      <widget class="QSlider" name="sldSecondaryThreshold">
       <property name="minimum">
        <number>1</number>
       </property>
       <property name="maximum">
        <number>255</number>
       </property>
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="tickPosition">
        <enum>QSlider::TicksBelow</enum>
       </property>
       <property name="tickInterval">
        <number>25</number>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QSpinBox" name="intThreshold">
       <property name="minimum">
        <number>1</number>
       </property>
       <property name="maximum">
        <number>255</number>
       </property>
      </widget>
     </item>
    </layout>
100
   </item>
101 102
  </layout>
 </widget>
103
 <customwidgets>
104 105 106 107 108
  <customwidget>
   <class>KColorButton</class>
   <extends>QPushButton</extends>
   <header>kcolorbutton.h</header>
  </customwidget>
109
  <customwidget>
110
   <class>KoTriangleColorSelector</class>
111
   <extends>QWidget</extends>
112
   <header>KoTriangleColorSelector.h</header>
113 114 115 116
   <container>1</container>
  </customwidget>
 </customwidgets>
 <includes>
117
  <include location="local">kcolorbutton.h</include>
118 119
 </includes>
 <resources/>
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
 <connections>
  <connection>
   <sender>sldSecondaryThreshold</sender>
   <signal>valueChanged(int)</signal>
   <receiver>intThreshold</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>166</x>
     <y>63</y>
    </hint>
    <hint type="destinationlabel">
     <x>289</x>
     <y>63</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>intThreshold</sender>
   <signal>valueChanged(int)</signal>
   <receiver>sldSecondaryThreshold</receiver>
   <slot>setValue(int)</slot>
   <hints>
    <hint type="sourcelabel">
     <x>289</x>
     <y>63</y>
    </hint>
    <hint type="destinationlabel">
     <x>166</x>
     <y>63</y>
    </hint>
   </hints>
  </connection>
 </connections>
154
</ui>