From 06634f49d48d049088198fe9ff08b783515c0f6a Mon Sep 17 00:00:00 2001 From: doitux Date: Wed, 15 Sep 2010 07:53:36 +0000 Subject: [PATCH] fixed special chars problem with nickname links on ranking game table --- src/gui/qt/gametable.ui | 4 ++-- src/gui/qt/gametable/gametableimpl.cpp | 6 ++++++ src/gui/qt/gametable/mynamelabel.cpp | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/gui/qt/gametable.ui b/src/gui/qt/gametable.ui index 45444ed3..7f02de03 100644 --- a/src/gui/qt/gametable.ui +++ b/src/gui/qt/gametable.ui @@ -3027,13 +3027,13 @@ - 2 + 0 - 69 + 73 0 diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index 8526ed7f..8ed80798 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -1470,6 +1470,8 @@ void gameTableImpl::provideMyActions(int mode) { horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise()); horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setSingleStep(10); + spinBox_betValue->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise()); + spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); changeSpinBoxBetValue(horizontalSlider_bet->value()); myActionIsRaise = 1; @@ -1479,6 +1481,8 @@ void gameTableImpl::provideMyActions(int mode) { horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2); horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); horizontalSlider_bet->setSingleStep(10); + spinBox_betValue->setMinimum(currentHand->getSmallBlind()*2); + spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); changeSpinBoxBetValue(horizontalSlider_bet->value()); myActionIsBet = 1; @@ -1607,6 +1611,8 @@ void gameTableImpl::disableMyButtons() { spinBox_betValue->setDisabled(TRUE); horizontalSlider_bet->setMinimum(0); horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); + spinBox_betValue->setMinimum(0); + spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash()); spinBox_betValue->clear(); horizontalSlider_bet->setValue(0); diff --git a/src/gui/qt/gametable/mynamelabel.cpp b/src/gui/qt/gametable/mynamelabel.cpp index 67e549e4..4d830bc7 100644 --- a/src/gui/qt/gametable/mynamelabel.cpp +++ b/src/gui/qt/gametable/mynamelabel.cpp @@ -43,15 +43,15 @@ void MyNameLabel::setText ( const QString &t, bool trans, bool guest, bool compu if(myW->getSession()) { if(myW->getSession()->getGameType() == Session::GAME_TYPE_INTERNET && !guest && !computerplayer ) { - //for internetgame show players name with links to their profile included +// for internet game show players name with links to their profile included this->setTextFormat(Qt::RichText); - QUrl link(QString("http://pokerth.net/redirect_user_profile.php?nick=%1").arg(t)); + QString linkString = QString("http://pokerth.net/redirect_user_profile.php?nick="+QUrl::toPercentEncoding(t)); if(trans) { - text = ""+t+""; + text = ""+t+""; } else { - text = ""+t+""; + text = ""+t+""; } }