1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-02 21:27:48 -04:00

Promoted scope QToolButtons to ButtonSwitches that look prettier

This commit is contained in:
f4exb 2015-07-17 04:08:25 +02:00
parent c1c8c8cb59
commit fe5a61786a

View File

@ -112,118 +112,111 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="viewLayout"> <widget class="ButtonSwitch" name="onlyPrimeView">
<property name="spacing"> <property name="toolTip">
<number>0</number> <string>Only primary display</string>
</property> </property>
<item> <property name="text">
<widget class="QToolButton" name="onlyPrimeView"> <string/>
<property name="toolTip"> </property>
<string>Only primary display</string> <property name="icon">
</property> <iconset resource="../resources/res.qrc">
<property name="text"> <normaloff>:/display1_w.png</normaloff>:/display1_w.png</iconset>
<string/> </property>
</property> <property name="iconSize">
<property name="icon"> <size>
<iconset resource="../resources/res.qrc"> <width>16</width>
<normaloff>:/display1_w.png</normaloff>:/display1_w.png</iconset> <height>16</height>
</property> </size>
<property name="iconSize"> </property>
<size> <property name="checkable">
<width>16</width> <bool>true</bool>
<height>16</height> </property>
</size> <property name="autoRaise">
</property> <bool>true</bool>
<property name="checkable"> </property>
<bool>true</bool> </widget>
</property> </item>
<property name="autoRaise"> <item>
<bool>true</bool> <widget class="ButtonSwitch" name="onlySecondView">
</property> <property name="toolTip">
</widget> <string>Only secondary display</string>
</item> </property>
<item> <property name="text">
<widget class="QToolButton" name="onlySecondView"> <string/>
<property name="toolTip"> </property>
<string>Only secondary display</string> <property name="icon">
</property> <iconset resource="../resources/res.qrc">
<property name="text"> <normaloff>:/display2_w.png</normaloff>:/display2_w.png</iconset>
<string/> </property>
</property> <property name="iconSize">
<property name="icon"> <size>
<iconset resource="../resources/res.qrc"> <width>16</width>
<normaloff>:/display2_w.png</normaloff>:/display2_w.png</iconset> <height>16</height>
</property> </size>
<property name="iconSize"> </property>
<size> <property name="checkable">
<width>16</width> <bool>true</bool>
<height>16</height> </property>
</size> <property name="autoRaise">
</property> <bool>true</bool>
<property name="checkable"> </property>
<bool>true</bool> </widget>
</property> </item>
<property name="autoRaise"> <item>
<bool>true</bool> <widget class="ButtonSwitch" name="horizView">
</property> <property name="toolTip">
</widget> <string>Both displays horizontally arranged</string>
</item> </property>
<item> <property name="text">
<widget class="QToolButton" name="horizView"> <string/>
<property name="toolTip"> </property>
<string>Both displays horizontally arranged</string> <property name="icon">
</property> <iconset resource="../resources/res.qrc">
<property name="text"> <normaloff>:/horizontal_w.png</normaloff>:/horizontal_w.png</iconset>
<string/> </property>
</property> <property name="iconSize">
<property name="icon"> <size>
<iconset resource="../resources/res.qrc"> <width>16</width>
<normaloff>:/horizontal_w.png</normaloff>:/horizontal_w.png</iconset> <height>16</height>
</property> </size>
<property name="iconSize"> </property>
<size> <property name="checkable">
<width>16</width> <bool>true</bool>
<height>16</height> </property>
</size> <property name="checked">
</property> <bool>true</bool>
<property name="checkable"> </property>
<bool>true</bool> <property name="autoRaise">
</property> <bool>true</bool>
<property name="checked"> </property>
<bool>true</bool> </widget>
</property> </item>
<property name="autoRaise"> <item>
<bool>true</bool> <widget class="ButtonSwitch" name="vertView">
</property> <property name="toolTip">
</widget> <string>Both displays vertically arranged</string>
</item> </property>
<item> <property name="text">
<widget class="QToolButton" name="vertView"> <string/>
<property name="toolTip"> </property>
<string>Both displays vertically arranged</string> <property name="icon">
</property> <iconset resource="../resources/res.qrc">
<property name="text"> <normaloff>:/vertical_w.png</normaloff>:/vertical_w.png</iconset>
<string/> </property>
</property> <property name="iconSize">
<property name="icon"> <size>
<iconset resource="../resources/res.qrc"> <width>16</width>
<normaloff>:/vertical_w.png</normaloff>:/vertical_w.png</iconset> <height>16</height>
</property> </size>
<property name="iconSize"> </property>
<size> <property name="checkable">
<width>16</width> <bool>true</bool>
<height>16</height> </property>
</size> <property name="autoRaise">
</property> <bool>true</bool>
<property name="checkable"> </property>
<bool>true</bool> </widget>
</property>
<property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item> </item>
<item> <item>
<widget class="Line" name="viewLine"> <widget class="Line" name="viewLine">
@ -556,102 +549,112 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="slopeLayout"> <widget class="Line" name="trigLine">
<item> <property name="orientation">
<widget class="QToolButton" name="slopePos"> <enum>Qt::Vertical</enum>
<property name="font"> </property>
<font> </widget>
<pointsize>8</pointsize> </item>
</font> <item>
</property> <widget class="ButtonSwitch" name="slopePos">
<property name="toolTip"> <property name="font">
<string>Trigger slope positive</string> <font>
</property> <pointsize>8</pointsize>
<property name="text"> </font>
<string/> </property>
</property> <property name="toolTip">
<property name="icon"> <string>Trigger slope positive</string>
<iconset resource="../resources/res.qrc"> </property>
<normaloff>:/slopep_icon.png</normaloff>:/slopep_icon.png</iconset> <property name="text">
</property> <string/>
<property name="iconSize"> </property>
<size> <property name="icon">
<width>16</width> <iconset resource="../resources/res.qrc">
<height>16</height> <normaloff>:/slopep_icon.png</normaloff>:/slopep_icon.png</iconset>
</size> </property>
</property> <property name="iconSize">
<property name="checkable"> <size>
<bool>true</bool> <width>16</width>
</property> <height>16</height>
<property name="checked"> </size>
<bool>true</bool> </property>
</property> <property name="checkable">
<property name="toolButtonStyle"> <bool>true</bool>
<enum>Qt::ToolButtonIconOnly</enum> </property>
</property> <property name="checked">
<property name="autoRaise"> <bool>true</bool>
<bool>true</bool> </property>
</property> <property name="toolButtonStyle">
</widget> <enum>Qt::ToolButtonIconOnly</enum>
</item> </property>
<item> <property name="autoRaise">
<widget class="QToolButton" name="slopeNeg"> <bool>true</bool>
<property name="font"> </property>
<font> </widget>
<pointsize>8</pointsize> </item>
</font> <item>
</property> <widget class="ButtonSwitch" name="slopeNeg">
<property name="toolTip"> <property name="font">
<string>Trigger slope negative</string> <font>
</property> <pointsize>8</pointsize>
<property name="text"> </font>
<string/> </property>
</property> <property name="toolTip">
<property name="icon"> <string>Trigger slope negative</string>
<iconset resource="../resources/res.qrc"> </property>
<normaloff>:/slopen_icon.png</normaloff>:/slopen_icon.png</iconset> <property name="text">
</property> <string/>
<property name="iconSize"> </property>
<size> <property name="icon">
<width>16</width> <iconset resource="../resources/res.qrc">
<height>16</height> <normaloff>:/slopen_icon.png</normaloff>:/slopen_icon.png</iconset>
</size> </property>
</property> <property name="iconSize">
<property name="checkable"> <size>
<bool>true</bool> <width>16</width>
</property> <height>16</height>
<property name="autoRaise"> </size>
<bool>true</bool> </property>
</property> <property name="checkable">
</widget> <bool>true</bool>
</item> </property>
<item> <property name="autoRaise">
<widget class="QToolButton" name="oneShot"> <bool>true</bool>
<property name="toolTip"> </property>
<string>One shot</string> </widget>
</property> </item>
<property name="text"> <item>
<string/> <widget class="ButtonSwitch" name="oneShot">
</property> <property name="toolTip">
<property name="icon"> <string>One shot</string>
<iconset resource="../resources/res.qrc"> </property>
<normaloff>:/display1_w.png</normaloff>:/display1_w.png</iconset> <property name="text">
</property> <string/>
<property name="iconSize"> </property>
<size> <property name="icon">
<width>16</width> <iconset resource="../resources/res.qrc">
<height>16</height> <normaloff>:/display1_w.png</normaloff>:/display1_w.png</iconset>
</size> </property>
</property> <property name="iconSize">
<property name="checkable"> <size>
<bool>true</bool> <width>16</width>
</property> <height>16</height>
<property name="autoRaise"> </size>
<bool>true</bool> </property>
</property> <property name="checkable">
</widget> <bool>true</bool>
</item> </property>
</layout> <property name="autoRaise">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="Line" name="slopeLine">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QSlider" name="trigLevel"> <widget class="QSlider" name="trigLevel">
@ -693,6 +696,13 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<customwidgets>
<customwidget>
<class>ButtonSwitch</class>
<extends>QToolButton</extends>
<header>gui/buttonswitch.h</header>
</customwidget>
</customwidgets>
<resources> <resources>
<include location="../resources/res.qrc"/> <include location="../resources/res.qrc"/>
</resources> </resources>