mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
forms: Various UI improvements
This commit is contained in:
parent
8b1ef17c25
commit
9959acb0e8
@ -105,7 +105,7 @@ void ConnectInfo::SetClipboardText(QString text)
|
|||||||
|
|
||||||
void ConnectInfo::DrawQr(QString qrText)
|
void ConnectInfo::DrawQr(QString qrText)
|
||||||
{
|
{
|
||||||
QPixmap map(230, 230);
|
QPixmap map(236, 236);
|
||||||
map.fill(Qt::white);
|
map.fill(Qt::white);
|
||||||
QPainter painter(&map);
|
QPainter painter(&map);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>451</width>
|
<width>451</width>
|
||||||
<height>412</height>
|
<height>432</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>451</width>
|
<width>451</width>
|
||||||
<height>412</height>
|
<height>432</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -31,12 +31,21 @@
|
|||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>431</width>
|
<width>431</width>
|
||||||
<height>101</height>
|
<height>121</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<property name="formAlignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="serverIpLabel">
|
<widget class="QLabel" name="serverIpLabel">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.ServerIp</string>
|
<string>OBSWebSocket.ConnectInfo.ServerIp</string>
|
||||||
</property>
|
</property>
|
||||||
@ -46,6 +55,12 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="serverIpLineEdit">
|
<widget class="QLineEdit" name="serverIpLineEdit">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||||
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -53,6 +68,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="copyServerIpButton">
|
<widget class="QPushButton" name="copyServerIpButton">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>75</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
||||||
</property>
|
</property>
|
||||||
@ -62,6 +83,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="serverPortLabel">
|
<widget class="QLabel" name="serverPortLabel">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.ServerPort</string>
|
<string>OBSWebSocket.ConnectInfo.ServerPort</string>
|
||||||
</property>
|
</property>
|
||||||
@ -71,6 +98,12 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="serverPortLineEdit">
|
<widget class="QLineEdit" name="serverPortLineEdit">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||||
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -78,6 +111,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="copyServerPortButton">
|
<widget class="QPushButton" name="copyServerPortButton">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>75</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
||||||
</property>
|
</property>
|
||||||
@ -87,6 +126,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="serverPasswordLabel">
|
<widget class="QLabel" name="serverPasswordLabel">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.ServerPassword</string>
|
<string>OBSWebSocket.ConnectInfo.ServerPassword</string>
|
||||||
</property>
|
</property>
|
||||||
@ -96,9 +141,15 @@
|
|||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="serverPasswordLineEdit">
|
<widget class="QLineEdit" name="serverPasswordLineEdit">
|
||||||
|
<property name="focusPolicy">
|
||||||
|
<enum>Qt::NoFocus</enum>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText</string>
|
<string>OBSWebSocket.ConnectInfo.ServerPasswordPlaceholderText</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set>
|
||||||
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -106,6 +157,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="copyServerPasswordButton">
|
<widget class="QPushButton" name="copyServerPasswordButton">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>75</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
<string>OBSWebSocket.ConnectInfo.CopyText</string>
|
||||||
</property>
|
</property>
|
||||||
@ -119,7 +176,7 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>120</y>
|
<y>140</y>
|
||||||
<width>431</width>
|
<width>431</width>
|
||||||
<height>281</height>
|
<height>281</height>
|
||||||
</rect>
|
</rect>
|
||||||
@ -131,9 +188,9 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>100</x>
|
<x>100</x>
|
||||||
<y>40</y>
|
<y>30</y>
|
||||||
<width>230</width>
|
<width>236</width>
|
||||||
<height>230</height>
|
<height>236</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="enableDebugLoggingCheckBox">
|
<widget class="QCheckBox" name="enableDebugLoggingCheckBox">
|
||||||
@ -97,6 +97,12 @@
|
|||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>OBSWebSocket.Settings.DebugEnableHoverText</string>
|
<string>OBSWebSocket.Settings.DebugEnableHoverText</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
Loading…
Reference in New Issue
Block a user