qt 4.5.1 startwindow font-lenght fixes. localized cash value bugfix

This commit is contained in:
doitux committed 2009-05-24 13:30:10 +00:00
1 parent 97246d347e
commit 492939cccf
5 files changed
+27 -28

No files matched your search

+2 -11
View File
@@ -1454,11 +1454,7 @@ void gameTableImpl::provideMyActions(int mode) {
//if value changed on bet/raise button --> uncheck to prevent unwanted actions
QString lastBetValueString = lastPushButtonBetRaiseString.simplified();
int index = lastBetValueString.indexOf("$");
lastBetValueString.remove(0, index+1);
bool ok;
int lastBetValue = lastBetValueString.toInt(&ok,10);
int lastBetValue = lastPushButtonBetRaiseString.simplified().remove(QRegExp("[^0-9]")).toInt();
if(lastBetValue < horizontalSlider_bet->minimum() && pushButton_BetRaise->isChecked()) {
@@ -1628,12 +1624,7 @@ int gameTableImpl::getMyCallAmount() {
int gameTableImpl::getBetRaisePushButtonValue() {
QString betValueString = pushButton_BetRaise->text().simplified().remove(QRegExp("[^0-9]"));
int index = betValueString.indexOf("$");
betValueString.remove(0, index+1);
bool ok;
int betValue = betValueString.toInt(&ok,10);
int betValue = pushButton_BetRaise->text().simplified().remove(QRegExp("[^0-9]")).toInt();
return betValue;
}
+4 -2
View File
@@ -3,8 +3,10 @@
MyMenuBar::MyMenuBar(QMainWindow* parent)
: QMenuBar(parent)
{
this->setAttribute(Qt::WA_TranslucentBackground);
this->setStyleSheet("QMenuBar { border-width: 0px; border-style: none;} ");
#if (QT_VERSION >= 0x040501)
this->setAttribute(Qt::WA_TranslucentBackground);
this->setStyleSheet("QMenuBar { border-width: 0px; border-style: none;} ");
#endif
}
void MyMenuBar::paintEvent(QPaintEvent *e) {