fixed special chars problem with nickname links on ranking game table
This commit is contained in:
@@ -3027,13 +3027,13 @@
|
|||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_betValue">
|
<widget class="QSpinBox" name="spinBox_betValue">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>69</width>
|
<width>73</width>
|
||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
@@ -1470,6 +1470,8 @@ void gameTableImpl::provideMyActions(int mode) {
|
|||||||
horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise());
|
horizontalSlider_bet->setMinimum(currentHand->getCurrentBeRo()->getHighestSet() - currentHand->getSeatsList()->front()->getMySet() + currentHand->getCurrentBeRo()->getMinimumRaise());
|
||||||
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
horizontalSlider_bet->setSingleStep(10);
|
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());
|
changeSpinBoxBetValue(horizontalSlider_bet->value());
|
||||||
|
|
||||||
myActionIsRaise = 1;
|
myActionIsRaise = 1;
|
||||||
@@ -1479,6 +1481,8 @@ void gameTableImpl::provideMyActions(int mode) {
|
|||||||
horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2);
|
horizontalSlider_bet->setMinimum(currentHand->getSmallBlind()*2);
|
||||||
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
horizontalSlider_bet->setSingleStep(10);
|
horizontalSlider_bet->setSingleStep(10);
|
||||||
|
spinBox_betValue->setMinimum(currentHand->getSmallBlind()*2);
|
||||||
|
spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
changeSpinBoxBetValue(horizontalSlider_bet->value());
|
changeSpinBoxBetValue(horizontalSlider_bet->value());
|
||||||
|
|
||||||
myActionIsBet = 1;
|
myActionIsBet = 1;
|
||||||
@@ -1607,6 +1611,8 @@ void gameTableImpl::disableMyButtons() {
|
|||||||
spinBox_betValue->setDisabled(TRUE);
|
spinBox_betValue->setDisabled(TRUE);
|
||||||
horizontalSlider_bet->setMinimum(0);
|
horizontalSlider_bet->setMinimum(0);
|
||||||
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
horizontalSlider_bet->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
|
spinBox_betValue->setMinimum(0);
|
||||||
|
spinBox_betValue->setMaximum(currentHand->getSeatsList()->front()->getMyCash());
|
||||||
spinBox_betValue->clear();
|
spinBox_betValue->clear();
|
||||||
horizontalSlider_bet->setValue(0);
|
horizontalSlider_bet->setValue(0);
|
||||||
|
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ void MyNameLabel::setText ( const QString &t, bool trans, bool guest, bool compu
|
|||||||
if(myW->getSession()->getGameType() == Session::GAME_TYPE_INTERNET && !guest && !computerplayer ) {
|
if(myW->getSession()->getGameType() == Session::GAME_TYPE_INTERNET && !guest && !computerplayer ) {
|
||||||
// for internet game 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);
|
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) {
|
if(trans) {
|
||||||
text = "<a style='color: rgba("+red+", "+green+", "+blue+", 80);' href='"+link.toEncoded()+"'>"+t+"</a>";
|
text = "<a style='color: rgba("+red+", "+green+", "+blue+", 80);' href='"+linkString+"'>"+t+"</a>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
text = "<a style='color: #"+myW->getMyGameTableStyle()->getPlayerNickTextColor()+";' href='"+link.toEncoded()+"'>"+t+"</a>";
|
text = "<a style='color: #"+myW->getMyGameTableStyle()->getPlayerNickTextColor()+";' href='"+linkString+"'>"+t+"</a>";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user