some other gui fixes for qt-4.3.*
This commit is contained in:
+106
-19
@@ -13,18 +13,42 @@
|
|||||||
<string>Game Lobby</string>
|
<string>Game Lobby</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="leftMargin" >
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="topMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0" >
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="leftMargin" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
@@ -33,10 +57,22 @@
|
|||||||
<string>Lobby-Chat</string>
|
<string>Lobby-Chat</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="leftMargin" >
|
||||||
<number>7</number>
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="topMargin" >
|
||||||
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
@@ -57,12 +93,21 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" >
|
<item row="1" column="1" >
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout" >
|
||||||
<property name="margin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="leftMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
@@ -124,10 +169,22 @@
|
|||||||
<string>Game Info</string>
|
<string>Game Info</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="leftMargin" >
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="topMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0" >
|
||||||
@@ -160,12 +217,21 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout" >
|
||||||
<property name="margin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="leftMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
@@ -220,10 +286,22 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0" >
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="margin" >
|
<property name="leftMargin" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="spacing" >
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<property name="verticalSpacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0" >
|
||||||
@@ -318,12 +396,21 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout" >
|
||||||
<property name="margin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="leftMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="rightMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
|
|||||||
+2
-619
@@ -28,7 +28,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
<string>PokerTH 0.5 - The Open-Source Texas Holdem Engine</string>
|
<string>PokerTH 0.6 - The Open-Source Texas Holdem Engine</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget" >
|
<widget class="QWidget" name="centralwidget" >
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
@@ -164,9 +164,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="MyLeftTabWidget" name="tabWidget_Left" >
|
<widget class="MyLeftTabWidget" name="tabWidget_Left" >
|
||||||
<property name="tabShape" >
|
|
||||||
<enum>QTabWidget::Rounded</enum>
|
|
||||||
</property>
|
|
||||||
<property name="currentIndex" >
|
<property name="currentIndex" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@@ -227,232 +224,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="QTextBrowser" name="textBrowser_Chat" >
|
<widget class="QTextBrowser" name="textBrowser_Chat" >
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>128</red>
|
|
||||||
<green>128</green>
|
|
||||||
<blue>128</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>199</red>
|
|
||||||
<green>199</green>
|
|
||||||
<blue>199</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy" >
|
<property name="focusPolicy" >
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
@@ -462,99 +233,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<widget class="QLineEdit" name="lineEdit_ChatInput" >
|
<widget class="QLineEdit" name="lineEdit_ChatInput" />
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>29</red>
|
|
||||||
<green>59</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -1268,9 +947,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0" >
|
||||||
<widget class="MyRightTabWidget" name="tabWidget_Right" >
|
<widget class="MyRightTabWidget" name="tabWidget_Right" >
|
||||||
<property name="tabShape" >
|
|
||||||
<enum>QTabWidget::Rounded</enum>
|
|
||||||
</property>
|
|
||||||
<property name="currentIndex" >
|
<property name="currentIndex" >
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
@@ -1484,46 +1160,6 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>203</red>
|
|
||||||
<green>237</green>
|
|
||||||
<blue>180</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>203</red>
|
|
||||||
<green>237</green>
|
|
||||||
<blue>180</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>203</red>
|
|
||||||
<green>237</green>
|
|
||||||
<blue>180</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy" >
|
|
||||||
<enum>Qt::NoFocus</enum>
|
|
||||||
</property>
|
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
@@ -1549,259 +1185,6 @@
|
|||||||
<height>20</height>
|
<height>20</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="palette" >
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="AlternateBase" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>232</red>
|
|
||||||
<green>232</green>
|
|
||||||
<blue>232</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>240</red>
|
|
||||||
<green>240</green>
|
|
||||||
<blue>240</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="AlternateBase" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>232</red>
|
|
||||||
<green>232</green>
|
|
||||||
<blue>232</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="WindowText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Light" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="BrightText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>40</red>
|
|
||||||
<green>82</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="HighlightedText" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="AlternateBase" >
|
|
||||||
<brush brushstyle="SolidPattern" >
|
|
||||||
<color alpha="255" >
|
|
||||||
<red>131</red>
|
|
||||||
<green>153</green>
|
|
||||||
<blue>86</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="focusPolicy" >
|
<property name="focusPolicy" >
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -85,24 +85,6 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
flopValuesFile.copy(QString::fromUtf8(myConfig->readConfigString("DataDir").c_str())+QString("flopValues"));
|
flopValuesFile.copy(QString::fromUtf8(myConfig->readConfigString("DataDir").c_str())+QString("flopValues"));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// Schriftart laden und für Dialoge setzen
|
|
||||||
#ifdef _WIN32
|
|
||||||
QFont tmpFont1;
|
|
||||||
tmpFont1.setFamily("Arial");
|
|
||||||
tmpFont1.setPixelSize(12);
|
|
||||||
// if(this->logicalDpiX() > 105) { tmpFont.setFont("Arial",8); }
|
|
||||||
// else { QFont tmpFont("Arial",9); }
|
|
||||||
|
|
||||||
#else
|
|
||||||
QFontDatabase::addApplicationFont (myQtHelper->getDataPath() +"fonts/n019003l.pfb");
|
|
||||||
QFontDatabase::addApplicationFont (myQtHelper->getDataPath() +"fonts/VeraBd.ttf");
|
|
||||||
// QFont tmpFont("Nimbus Sans L",9);
|
|
||||||
QFont tmpFont1;
|
|
||||||
tmpFont1.setFamily("Nimbus Sans L");
|
|
||||||
tmpFont1.setPixelSize(12);
|
|
||||||
#endif
|
|
||||||
QApplication::setFont(tmpFont1);
|
|
||||||
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
//pixmapCardsLabel erstellen und ins Layout einfügen!
|
//pixmapCardsLabel erstellen und ins Layout einfügen!
|
||||||
@@ -416,69 +398,67 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
inactive.setRgb(83,141,107);
|
inactive.setRgb(83,141,107);
|
||||||
highlight.setRgb(151,214,109);
|
highlight.setRgb(151,214,109);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Schriftart laden und für Dialoge setzen
|
||||||
|
#ifdef _WIN32
|
||||||
|
QString font1String("font-family: \"Arial\";");
|
||||||
|
// if(this->logicalDpiX() > 105) { tmpFont.setFont("Arial",8); }
|
||||||
|
// else { QFont tmpFont("Arial",9); }
|
||||||
|
#else
|
||||||
|
QString font1String("font-family: \"Nimbus Sans L\";");
|
||||||
|
#endif
|
||||||
|
|
||||||
//Schriftart und Schriftgrößen für Widgets festlegen
|
//Schriftart und Schriftgrößen für Widgets festlegen
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
tmpFont1.setPixelSize(11);
|
textBrowser_Log->setStyleSheet("QTextBrowser { "+ font1String +" font-size: 11px; color: white; background-color: #1D3B00; border:none; }");
|
||||||
textBrowser_Log->setStyleSheet("QTextBrowser { font-family: \"Nimbus Sans L\"; font-size: 11px; color: white; background-color: #285200; border-color: #669900;}");
|
|
||||||
#else
|
#else
|
||||||
tmpFont1.setPixelSize(10);
|
textBrowser_Log->setStyleSheet("QTextBrowser { "+ font1String +" font-size: 10px; color: white; background-color: #1D3B00; border:none; }");
|
||||||
textBrowser_Log->setStyleSheet("QTextBrowser { font-family: \"Nimbus Sans L\"; font-size: 10px; color: white; background-color: #285200; border-color: #669900; }");
|
textBrowser_Chat->setStyleSheet("QTextBrowser { "+ font1String +" font-size: 10px; color: white; background-color: #1D3B00; border:none; }");
|
||||||
textBrowser_Chat->setStyleSheet("QTextBrowser { font-family: \"Nimbus Sans L\"; font-size: 10px; color: white; background-color: #285200; border-color: #669900; }");
|
lineEdit_ChatInput->setStyleSheet("QLineEdit { "+ font1String +" font-size: 10px; color: white; background-color: #1D3B00; border-top: 2px solid #286400; }");
|
||||||
lineEdit_ChatInput->setStyleSheet("QLineEdit { font-family: \"Nimbus Sans L\"; font-size: 10px; color: white; background-color: #285200; border-color: #669900; }");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
tmpFont1.setPixelSize(11);
|
// tabWidget_Right->setStyleSheet("QTabWidget { "+ font1String +" font-size: 11px; background-color: #145300; }");
|
||||||
tabWidget_Right->setStyleSheet("QTabWidget { font-family: \"Nimbus Sans L\"; font-size: 11px; font-color: white; border-color: #669900; }");
|
// tabWidget_Left->setStyleSheet("QTabWidget { "+ font1String +" font-size: 11px; background-color: #145300;}");
|
||||||
tabWidget_Left->setStyleSheet("QTabWidget { font-family: \"Nimbus Sans L\"; font-size: 11px; font-color: white; border-color: #669900;}");
|
|
||||||
#else
|
#else
|
||||||
tmpFont1.setPixelSize(10);
|
// tabWidget_Right->setStyleSheet("QTabWidget::pane { "+ font1String +" font-size: 10px; background-color: #145300; border: 1px solid #286400; border-radius: 2px; }");
|
||||||
tabWidget_Right->setStyleSheet("QTabWidget::pane { font-family: \"Nimbus Sans L\"; font-size: 10px; border-color: #669900; }");
|
// tabWidget_Left->setStyleSheet("QTabWidget::pane { border: 1px solid #286400; border-radius: 2px; background-color: #145300; }");
|
||||||
tabWidget_Left->setStyleSheet("QTabWidget::pane { font-family: \"Nimbus Sans L\"; font-size: 10px; border-color: #669900; }");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
QFont tmpFont2;
|
QString font2String("font-family: \"Bitstream Vera Sans\";");
|
||||||
tmpFont2.setFamily("Bitstream Vera Sans");
|
|
||||||
|
|
||||||
tmpFont2.setPixelSize(10);
|
|
||||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
|
|
||||||
cashTopLabelArray[i]->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 10px }");
|
cashTopLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 10px }");
|
||||||
cashLabelArray[i]->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 10px }");
|
cashLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 10px }");
|
||||||
}
|
}
|
||||||
|
|
||||||
spinBox_set->setFont(tmpFont2);
|
spinBox_set->setStyleSheet("QSpinBox { "+ font2String +" font-size: 10px }");
|
||||||
|
|
||||||
|
|
||||||
tmpFont2.setPixelSize(12);
|
|
||||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
|
|
||||||
setLabelArray[i]->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 12px }");
|
setLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 12px }");
|
||||||
}
|
}
|
||||||
|
|
||||||
tmpFont2.setPixelSize(13);
|
|
||||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
|
|
||||||
playerNameLabelArray[i]->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
playerNameLabelArray[i]->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
}
|
}
|
||||||
|
|
||||||
label_Sets->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
label_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
label_Total->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
label_Total->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
textLabel_Sets->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
textLabel_Sets->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
textLabel_Pot->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
textLabel_Pot->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
label_handNumber->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
label_handNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
label_gameNumber->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
label_gameNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
textLabel_handNumber->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
textLabel_handNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
textLabel_gameNumber->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 13px }");
|
textLabel_gameNumber->setStyleSheet("QLabel { "+ font2String +" font-size: 13px }");
|
||||||
|
|
||||||
// tmpFont2.setPixelSize(15);
|
textLabel_handLabel->setStyleSheet("QLabel { "+ font2String +" font-size: 17px; font-weight: bold; }");
|
||||||
tmpFont2.setPixelSize(17);
|
|
||||||
tmpFont2.setBold(TRUE);
|
|
||||||
textLabel_handLabel->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 17px }");
|
|
||||||
|
|
||||||
tmpFont2.setPixelSize(18);
|
label_Pot->setStyleSheet("QLabel { "+ font2String +" font-size: 18px; font-weight: bold; }");
|
||||||
label_Pot->setStyleSheet("QLabel { font-family: \"Bitstream Vera Sans\"; font-size: 18px }");
|
|
||||||
|
|
||||||
|
|
||||||
//Widgets Grafiken setzen
|
//Widgets Grafiken setzen
|
||||||
@@ -493,6 +473,12 @@ mainWindowImpl::mainWindowImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
//Widgets Grafiken per Stylesheets setzen
|
//Widgets Grafiken per Stylesheets setzen
|
||||||
this->setStyleSheet("QMainWindow { background-image: url(" + myQtHelper->getDataPath() +"gfx/gui/table/default/table.png); background-position: bottom center; background-origin: content;}");
|
this->setStyleSheet("QMainWindow { background-image: url(" + myQtHelper->getDataPath() +"gfx/gui/table/default/table.png); background-position: bottom center; background-origin: content;}");
|
||||||
|
|
||||||
|
menubar->setStyleSheet("QMenuBar { background-color: #145300; } QMenuBar::item { color: #669800; }");
|
||||||
|
|
||||||
|
pushButton_break->setStyleSheet("QPushButton { background-color: #145300; color: white;}");
|
||||||
|
|
||||||
|
horizontalSlider_speed->setStyleSheet("QSlider::groove:horizontal { border: 1px solid #286400; height: 3px; background: #689700; } QSlider::handle:horizontal { background: #689700; border: 1px solid #286400; width: 10px; border-radius: 3px; }");
|
||||||
|
|
||||||
//Groupbox Background
|
//Groupbox Background
|
||||||
for (i=1; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
for (i=1; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||||
|
|
||||||
@@ -2748,17 +2734,14 @@ void mainWindowImpl::switchFullscreen() {
|
|||||||
|
|
||||||
void mainWindowImpl::blinkingStartButtonAnimationAction() {
|
void mainWindowImpl::blinkingStartButtonAnimationAction() {
|
||||||
|
|
||||||
QPalette tempPalette = pushButton_break->palette();
|
QString style = pushButton_break->styleSheet();
|
||||||
|
|
||||||
if(tempPalette.color(QPalette::Button).red()==40) {
|
if(style.contains("QPushButton { background-color: #145300;")) {
|
||||||
tempPalette.setColor(QPalette::Button, QColor(113,162,0));
|
pushButton_break->setStyleSheet("QPushButton { background-color: #6E9E00; color: black;}");
|
||||||
tempPalette.setColor(QPalette::ButtonText, QColor(0,0,0));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tempPalette.setColor(QPalette::Button, QColor(40,82,0));
|
pushButton_break->setStyleSheet("QPushButton { background-color: #145300; color: white;}");
|
||||||
tempPalette.setColor(QPalette::ButtonText, QColor(240,240,240));
|
|
||||||
}
|
}
|
||||||
pushButton_break->setPalette(tempPalette);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainWindowImpl::sendChatMessage() { myChat->sendMessage(); }
|
void mainWindowImpl::sendChatMessage() { myChat->sendMessage(); }
|
||||||
|
|||||||
@@ -22,6 +22,18 @@ MyLeftTabWidget::MyLeftTabWidget(QGroupBox *parent)
|
|||||||
|
|
||||||
chatBlinkTimer = new QTimer;
|
chatBlinkTimer = new QTimer;
|
||||||
connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
||||||
|
|
||||||
|
this->setStyleSheet("QTabWidget::pane { border: 2px solid #286400; border-radius: 2px; background-color: #145300; } QTabWidget::tab-bar { left: 5px; } ");
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
QString font1String("font-family: \"Arial\";");
|
||||||
|
#else
|
||||||
|
QString font1String("font-family: \"Nimbus Sans L\";");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
QTabBar *myTabBar = this->tabBar();
|
||||||
|
myTabBar->setStyleSheet("QTabBar::tab{ "+ font1String +" font-size: 11px; color: white; background-color: #145300; border: 2px solid #286400; border-bottom-color: #145300; border-top-left-radius: 4px; border-top-right-radius: 4px; min-width: 8ex; padding: 0px;} QTabBar::tab:selected, QTabBar::tab:hover { background-color: #145300; } QTabBar::tab:selected { border-color: #286400; border-bottom-color: #145300; } QTabBar::tab:!selected { margin-top: 2px; } QTabBar::tab:selected { margin-left: -4px; margin-right: -4px; } QTabBar::tab:first:selected { margin-left: 0; } QTabBar::tab:last:selected { margin-right: 0; } QTabBar::tab:only-one { margin: 0; }");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,18 @@ MyRightTabWidget::MyRightTabWidget(QGroupBox *parent)
|
|||||||
|
|
||||||
// chatBlinkTimer = new QTimer;
|
// chatBlinkTimer = new QTimer;
|
||||||
// connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
// connect(chatBlinkTimer, SIGNAL(timeout()), this, SLOT( blinkChatTab() ));
|
||||||
|
|
||||||
|
this->setStyleSheet("QTabWidget::pane { border: 2px solid #286400; border-radius: 2px; background-color: #145300; } QTabWidget::tab-bar { left: 5px; } ");
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
QString font1String("font-family: \"Arial\";");
|
||||||
|
#else
|
||||||
|
QString font1String("font-family: \"Nimbus Sans L\";");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
QTabBar *myTabBar = this->tabBar();
|
||||||
|
myTabBar->setStyleSheet("QTabBar::tab{ "+ font1String +" font-size: 11px; color: white; background-color: #145300; border: 2px solid #286400; border-bottom-color: #145300; border-top-left-radius: 4px; border-top-right-radius: 4px; min-width: 8ex; padding: 0px;} QTabBar::tab:selected, QTabBar::tab:hover { background-color: #145300; } QTabBar::tab:selected { border-color: #286400; border-bottom-color: #145300; } QTabBar::tab:!selected { margin-top: 2px; } QTabBar::tab:selected { margin-left: -4px; margin-right: -4px; } QTabBar::tab:first:selected { margin-left: 0; } QTabBar::tab:last:selected { margin-right: 0; } QTabBar::tab:only-one { margin: 0; }");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,19 @@ int main( int argc, char **argv )
|
|||||||
// set PlastiqueStyle even for mac-version to prevent artefacts on styled widgets
|
// set PlastiqueStyle even for mac-version to prevent artefacts on styled widgets
|
||||||
a.setStyle(new QPlastiqueStyle);
|
a.setStyle(new QPlastiqueStyle);
|
||||||
|
|
||||||
|
//set QApplication default font
|
||||||
|
#ifdef _WIN32
|
||||||
|
QString font1String("font-family: \"Arial\";");
|
||||||
|
|
||||||
|
#else
|
||||||
|
QFontDatabase::addApplicationFont (myQtHelper->getDataPath() +"fonts/n019003l.pfb");
|
||||||
|
QFontDatabase::addApplicationFont (myQtHelper->getDataPath() +"fonts/VeraBd.ttf");
|
||||||
|
|
||||||
|
QString font1String("font-family: \"Nimbus Sans L\";");
|
||||||
|
#endif
|
||||||
|
a.setStyleSheet("QApplication { " + font1String + " font-size: 12px; }");
|
||||||
|
|
||||||
|
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load(QString(myQtHelper->getDataPath() +"translations/qt_") + QString::fromStdString(myConfig->readConfigString("Language")));
|
qtTranslator.load(QString(myQtHelper->getDataPath() +"translations/qt_") + QString::fromStdString(myConfig->readConfigString("Language")));
|
||||||
a.installTranslator(&qtTranslator);
|
a.installTranslator(&qtTranslator);
|
||||||
|
|||||||
Reference in New Issue
Block a user