untested ui things

This commit is contained in:
2018-01-17 19:22:55 +01:00
parent 8ee7dddf1d
commit b822e885de
2 changed files with 188 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
@@ -5,20 +6,194 @@
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>500</width>
<height>225</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<widget class="QMenuBar" name="menuBar" />
<widget class="QToolBar" name="mainToolBar" />
<widget class="QWidget" name="centralWidget" />
<widget class="QWidget" name="centralWidget">
<widget class="QDial" name="dial">
<property name="geometry">
<rect>
<x>370</x>
<y>10</y>
<width>121</width>
<height>121</height>
</rect>
</property>
</widget>
<widget class="QLineEdit" name="txt_address">
<property name="geometry">
<rect>
<x>170</x>
<y>10</y>
<width>181</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>10.0.0.5</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbl_volume">
<property name="geometry">
<rect>
<x>370</x>
<y>130</y>
<width>121</width>
<height>31</height>
</rect>
</property>
<property name="font">
<font>
<family>Source Code Pro Medium</family>
<pointsize>16</pointsize>
</font>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
<property name="text">
<string>-66.5</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>120</x>
<y>10</y>
<width>51</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Address:</string>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>40</y>
<width>201</width>
<height>121</height>
</rect>
</property>
<property name="title">
<string>Input</string>
</property>
<widget class="QPushButton" name="btn_hdmi1">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>HDMI 1</string>
</property>
</widget>
<widget class="QPushButton" name="btn_hdmi2">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>HDMI 2</string>
</property>
</widget>
<widget class="QPushButton" name="btn_hdmi3">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>HDMI 3</string>
</property>
</widget>
<widget class="QPushButton" name="btn_spotify">
<property name="geometry">
<rect>
<x>110</x>
<y>30</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Spotify</string>
</property>
</widget>
<widget class="QPushButton" name="btn_airplay">
<property name="geometry">
<rect>
<x>110</x>
<y>60</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>Airplay</string>
</property>
</widget>
</widget>
<widget class="QPushButton" name="btn_onoff">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>80</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>On</string>
</property>
</widget>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>

View File

@@ -11,6 +11,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = yremote
TEMPLATE = app
#CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the