qt 4.5.1 startwindow font-lenght fixes. localized cash value bugfix
This commit is contained in:
@@ -4,7 +4,7 @@ Requirements
|
|||||||
To compile PokerTH you need following libs:
|
To compile PokerTH you need following libs:
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
- Qt version >= 4.4.3 --> http://trolltech.com/
|
- Qt version >= 4.4.3, 4.5.1 recommended --> http://qtsoftware.com/
|
||||||
- zlib version 1.2.3 --> http://www.zlib.net/
|
- zlib version 1.2.3 --> http://www.zlib.net/
|
||||||
- libcurl version >= 7.16 --> http://curl.haxx.se/
|
- libcurl version >= 7.16 --> http://curl.haxx.se/
|
||||||
- gnutls (e.g. version 2.2.2) --> http://www.gnu.org/software/gnutls/
|
- gnutls (e.g. version 2.2.2) --> http://www.gnu.org/software/gnutls/
|
||||||
|
|||||||
@@ -1454,11 +1454,7 @@ void gameTableImpl::provideMyActions(int mode) {
|
|||||||
|
|
||||||
|
|
||||||
//if value changed on bet/raise button --> uncheck to prevent unwanted actions
|
//if value changed on bet/raise button --> uncheck to prevent unwanted actions
|
||||||
QString lastBetValueString = lastPushButtonBetRaiseString.simplified();
|
int lastBetValue = lastPushButtonBetRaiseString.simplified().remove(QRegExp("[^0-9]")).toInt();
|
||||||
int index = lastBetValueString.indexOf("$");
|
|
||||||
lastBetValueString.remove(0, index+1);
|
|
||||||
bool ok;
|
|
||||||
int lastBetValue = lastBetValueString.toInt(&ok,10);
|
|
||||||
|
|
||||||
if(lastBetValue < horizontalSlider_bet->minimum() && pushButton_BetRaise->isChecked()) {
|
if(lastBetValue < horizontalSlider_bet->minimum() && pushButton_BetRaise->isChecked()) {
|
||||||
|
|
||||||
@@ -1628,12 +1624,7 @@ int gameTableImpl::getMyCallAmount() {
|
|||||||
|
|
||||||
int gameTableImpl::getBetRaisePushButtonValue() {
|
int gameTableImpl::getBetRaisePushButtonValue() {
|
||||||
|
|
||||||
QString betValueString = pushButton_BetRaise->text().simplified().remove(QRegExp("[^0-9]"));
|
int betValue = pushButton_BetRaise->text().simplified().remove(QRegExp("[^0-9]")).toInt();
|
||||||
int index = betValueString.indexOf("$");
|
|
||||||
betValueString.remove(0, index+1);
|
|
||||||
bool ok;
|
|
||||||
int betValue = betValueString.toInt(&ok,10);
|
|
||||||
|
|
||||||
return betValue;
|
return betValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,10 @@
|
|||||||
MyMenuBar::MyMenuBar(QMainWindow* parent)
|
MyMenuBar::MyMenuBar(QMainWindow* parent)
|
||||||
: QMenuBar(parent)
|
: QMenuBar(parent)
|
||||||
{
|
{
|
||||||
|
#if (QT_VERSION >= 0x040501)
|
||||||
this->setAttribute(Qt::WA_TranslucentBackground);
|
this->setAttribute(Qt::WA_TranslucentBackground);
|
||||||
this->setStyleSheet("QMenuBar { border-width: 0px; border-style: none;} ");
|
this->setStyleSheet("QMenuBar { border-width: 0px; border-style: none;} ");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyMenuBar::paintEvent(QPaintEvent *e) {
|
void MyMenuBar::paintEvent(QPaintEvent *e) {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QPushButton" name="pushButtonStart_Local_Game">
|
<widget class="QPushButton" name="pushButtonStart_Local_Game">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
@@ -66,6 +66,9 @@
|
|||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string>QPushButton { text-align:left; font-weight:bold; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&1 Start Local Game</string>
|
<string>&1 Start Local Game</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -75,7 +78,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>37</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -84,7 +87,7 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QPushButton" name="pushButtonInternet_Game">
|
<widget class="QPushButton" name="pushButtonInternet_Game">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
@@ -92,6 +95,9 @@
|
|||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string>QPushButton { text-align:left; font-weight:bold; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&2 Internet Game</string>
|
<string>&2 Internet Game</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -101,7 +107,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>37</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -110,7 +116,7 @@
|
|||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QPushButton" name="pushButton_Create_Network_Game">
|
<widget class="QPushButton" name="pushButton_Create_Network_Game">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
@@ -118,6 +124,9 @@
|
|||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string>QPushButton { text-align:left; font-weight:bold; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&3 Create Network Game</string>
|
<string>&3 Create Network Game</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -127,7 +136,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>37</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -136,7 +145,7 @@
|
|||||||
<item row="3" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QPushButton" name="pushButton_Join_Network_Game">
|
<widget class="QPushButton" name="pushButton_Join_Network_Game">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
@@ -144,6 +153,9 @@
|
|||||||
<property name="focusPolicy">
|
<property name="focusPolicy">
|
||||||
<enum>Qt::NoFocus</enum>
|
<enum>Qt::NoFocus</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string>QPushButton { text-align:left; font-weight:bold; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&4 Join Network Game</string>
|
<string>&4 Join Network Game</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -153,7 +165,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
<width>32</width>
|
<width>37</width>
|
||||||
<height>32</height>
|
<height>32</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -78,12 +78,6 @@ startWindowImpl::startWindowImpl(ConfigFile *c)
|
|||||||
|
|
||||||
centralwidget->setStyleSheet(".QWidget { background-image: url(\""+myAppDataPath+"gfx/gui/misc/startwindowbg.png\"); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
centralwidget->setStyleSheet(".QWidget { background-image: url(\""+myAppDataPath+"gfx/gui/misc/startwindowbg.png\"); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
||||||
|
|
||||||
|
|
||||||
pushButtonStart_Local_Game->setStyleSheet("QPushButton { font-weight: 900; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; text-align: left;}");
|
|
||||||
pushButtonInternet_Game->setStyleSheet("QPushButton { font-weight: 900; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; text-align: left; }");
|
|
||||||
pushButton_Create_Network_Game->setStyleSheet("QPushButton { font-weight: 900; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; text-align: left; }");
|
|
||||||
pushButton_Join_Network_Game->setStyleSheet("QPushButton { font-weight: 900; padding-left: 1px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; text-align: left; }");
|
|
||||||
|
|
||||||
// Dialogs
|
// Dialogs
|
||||||
myNewGameDialog = new newGameDialogImpl(this, myConfig);
|
myNewGameDialog = new newGameDialogImpl(this, myConfig);
|
||||||
mySelectAvatarDialog = new selectAvatarDialogImpl(this, myConfig);
|
mySelectAvatarDialog = new selectAvatarDialogImpl(this, myConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user