summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorSimon Rettberg2016-10-21 18:48:31 +0200
committerSimon Rettberg2016-10-21 18:48:31 +0200
commitcc3d9f5c379c70e4f16f60afc493d82db962db2b (patch)
treee40385171fb436c85963a1603fae2b591c8af949 /gui
parentMerge branch 'master' of openslx.org:pvs2 (diff)
downloadpvs2-cc3d9f5c379c70e4f16f60afc493d82db962db2b.tar.gz
pvs2-cc3d9f5c379c70e4f16f60afc493d82db962db2b.tar.xz
pvs2-cc3d9f5c379c70e4f16f60afc493d82db962db2b.zip
[client] Add icon to attention button, hide button when disconnected
Diffstat (limited to 'gui')
-rw-r--r--gui/client/toolbar.ui76
1 files changed, 70 insertions, 6 deletions
diff --git a/gui/client/toolbar.ui b/gui/client/toolbar.ui
index bbaf2ca..062d0e8 100644
--- a/gui/client/toolbar.ui
+++ b/gui/client/toolbar.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>513</width>
- <height>39</height>
+ <width>440</width>
+ <height>30</height>
</rect>
</property>
<property name="windowTitle">
@@ -79,12 +79,15 @@ QCheckBox::indicator:checked:pressed {
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout2">
+ <property name="margin">
+ <number>3</number>
+ </property>
<item>
<widget class="QPushButton" name="cmdMenu">
<property name="minimumSize">
<size>
<width>84</width>
- <height>0</height>
+ <height>24</height>
</size>
</property>
<property name="toolTip">
@@ -179,6 +182,12 @@ p, li { white-space: pre-wrap; }
</item>
<item>
<widget class="QPushButton" name="btnLockDesktop">
+ <property name="minimumSize">
+ <size>
+ <width>84</width>
+ <height>24</height>
+ </size>
+ </property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Lock this workstation&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
@@ -189,6 +198,12 @@ p, li { white-space: pre-wrap; }
</item>
<item>
<widget class="QPushButton" name="btnManager">
+ <property name="minimumSize">
+ <size>
+ <width>84</width>
+ <height>24</height>
+ </size>
+ </property>
<property name="text">
<string>Switch</string>
</property>
@@ -198,13 +213,60 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item>
- <widget class="QPushButton" name="btnAttention">
+ <widget class="QToolButton" name="btnAttention">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>30</width>
+ <height>24</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>30</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="sizeIncrement">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="baseSize">
+ <size>
+ <width>30</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="styleSheet">
+ <string notr="true"/>
+ </property>
<property name="text">
- <string>*meld*</string>
+ <string notr="true"/>
+ </property>
+ <property name="icon">
+ <iconset resource="../../pvsclient.qrc">
+ <normaloff>:/hand-raise</normaloff>
+ <normalon>:/hand-raise-red</normalon>:/hand-raise</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>22</width>
+ <height>22</height>
+ </size>
</property>
<property name="checkable">
<bool>true</bool>
</property>
+ <property name="checked">
+ <bool>false</bool>
+ </property>
</widget>
</item>
</layout>
@@ -212,6 +274,8 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
- <resources/>
+ <resources>
+ <include location="../../pvsclient.qrc"/>
+ </resources>
<connections/>
</ui>