diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-14 18:13:21 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-05-14 18:13:21 +0000 |
commit | f34e5d9369abd57b61f09dd4c3f3983da0e4192e (patch) | |
tree | de00a696016027bf0b8075f0210f76c9758bc842 /games-board/pokerth/files | |
parent | Version bump. (diff) | |
download | historical-f34e5d9369abd57b61f09dd4c3f3983da0e4192e.tar.gz historical-f34e5d9369abd57b61f09dd4c3f3983da0e4192e.tar.bz2 historical-f34e5d9369abd57b61f09dd4c3f3983da0e4192e.zip |
Fix building with GCC 4.5 wrt #318591 by Kacper Kowalik.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'games-board/pokerth/files')
-rw-r--r-- | games-board/pokerth/files/pokerth-0.7.1-gcc45.patch | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/games-board/pokerth/files/pokerth-0.7.1-gcc45.patch b/games-board/pokerth/files/pokerth-0.7.1-gcc45.patch new file mode 100644 index 000000000000..612771c74cb1 --- /dev/null +++ b/games-board/pokerth/files/pokerth-0.7.1-gcc45.patch @@ -0,0 +1,105 @@ +Fixing build with gcc 4.5 + +http://bugs.gentoo.org/show_bug.cgi?id=318591 + +--- src/gui/qt/gametable/gametableimpl.cpp ++++ src/gui/qt/gametable/gametableimpl.cpp +@@ -811,7 +811,7 @@ + for (it_c=currentHand->getSeatsList()->begin(); it_c!=currentHand->getSeatsList()->end(); it_c++) { + if((*it_c)->getMyActiveStatus()) { + +- if((*it_c)->getMyAvatar() == "" || !QFile::QFile(QString::fromUtf8((*it_c)->getMyAvatar().c_str())).exists()) { ++ if((*it_c)->getMyAvatar() == "" || !QFile(QString::fromUtf8((*it_c)->getMyAvatar().c_str())).exists()) { + playerAvatarLabelArray[(*it_c)->getMyID()]->setPixmap(QPixmap::fromImage(QImage(myGameTableStyle->getDefaultAvatar()))); + } + else { +@@ -821,7 +821,7 @@ + else { + if((myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_INTERNET || myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_NETWORK)) { + if((*it_c)->getMyStayOnTableStatus() == TRUE && (*it_c)->getMyType() != PLAYER_TYPE_COMPUTER) { +- if((*it_c)->getMyAvatar() == "" || !QFile::QFile(QString::fromUtf8((*it_c)->getMyAvatar().c_str())).exists()) { ++ if((*it_c)->getMyAvatar() == "" || !QFile(QString::fromUtf8((*it_c)->getMyAvatar().c_str())).exists()) { + playerAvatarLabelArray[(*it_c)->getMyID()]->setPixmap(QPixmap::fromImage(QImage(myGameTableStyle->getDefaultAvatar())), TRUE); + } + else { +@@ -847,7 +847,7 @@ + boost::shared_ptr<PlayerInterface> tmpPlayer = myStartWindow->getSession()->getCurrentGame()->getPlayerByUniqueId(myID); + if (tmpPlayer.get()) { + +- if(QFile::QFile(myAvatar).exists()) { ++ if(QFile(myAvatar).exists()) { + playerAvatarLabelArray[tmpPlayer->getMyID()]->setPixmap(myAvatar); + tmpPlayer->setMyAvatar(myAvatar.toUtf8().constData()); + } +--- src/gui/qt/gametable/log/log.cpp ++++ src/gui/qt/gametable/log/log.cpp +@@ -54,13 +54,13 @@ + + if(myConfig->readConfigInt("LogOnOff")) { + //if write logfiles is enabled +- if(myConfig->readConfigString("LogDir") != "" && QDir::QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str())).exists()) { ++ if(myConfig->readConfigString("LogDir") != "" && QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str())).exists()) { + + myLogDir = new QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str())); + myLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+QDateTime::currentDateTime().toString("yyyy-MM-dd_hh.mm.ss")+".html"); + + //Logo-Pixmap extrahieren +- QPixmap::QPixmap(myAppDataPath +"gfx/gui/misc/logoChip3D.png").save(myLogDir->absolutePath()+"/logo.png"); ++ QPixmap(myAppDataPath +"gfx/gui/misc/logoChip3D.png").save(myLogDir->absolutePath()+"/logo.png"); + + // myW->textBrowser_Log->append(myLogFile->fileName()); + +--- src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp ++++ src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp +@@ -716,7 +716,7 @@ + if(mySession->getAvatarFile(playerInfo.avatar, myAvatarFileName)) { + + QString myAvatarString(QString::fromUtf8(myAvatarFileName.c_str())); +- if(QFile::QFile(myAvatarString).exists()) { ++ if(QFile(myAvatarString).exists()) { + + QPixmap myAvatarPixmap(25,26); + myAvatarPixmap.fill(Qt::transparent); +--- src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp ++++ src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp +@@ -212,7 +212,7 @@ + else return QString(""); + } + +- if(groupBox_2->isChecked() && QFile::QFile(lineEdit->text()).exists() ) return externalAvatar; ++ if(groupBox_2->isChecked() && QFile(lineEdit->text()).exists() ) return externalAvatar; + else return QString(""); + } + +@@ -232,9 +232,9 @@ + } + + if(groupBox_2->isChecked()) { +- if(QFile::QFile(lineEdit->text()).exists()) { ++ if(QFile(lineEdit->text()).exists()) { + +- if(QFile::QFile(lineEdit->text()).size() <= 30720 ) { ++ if(QFile(lineEdit->text()).size() <= 30720 ) { + externalAvatar = lineEdit->text(); + settingsCorrect = TRUE; + } +--- src/gui/qt/settingsdialog/settingsdialogimpl.cpp ++++ src/gui/qt/settingsdialog/settingsdialogimpl.cpp +@@ -559,7 +559,7 @@ + myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked()); + + if(radioButton_flipsideOwn->isChecked()) { +- if(QFile::QFile(lineEdit_OwnFlipsideFilename->text()).exists() && lineEdit_OwnFlipsideFilename->text() != "") {myConfig->writeConfigString("FlipsideOwnFile", lineEdit_OwnFlipsideFilename->text().toUtf8().constData()); } ++ if(QFile(lineEdit_OwnFlipsideFilename->text()).exists() && lineEdit_OwnFlipsideFilename->text() != "") {myConfig->writeConfigString("FlipsideOwnFile", lineEdit_OwnFlipsideFilename->text().toUtf8().constData()); } + else { QMessageBox::warning(this, tr("Settings Error"), + tr("The entered flipside picture doesn't exist.\n" + "Please enter an valid picture!"), +@@ -615,7 +615,7 @@ + myConfig->writeConfigInt("LogOnOff", groupBox_logOnOff->isChecked()); + if (myConfig->readConfigInt("LogOnOff")) { + // if log On +- if(QDir::QDir(lineEdit_logDir->text()).exists() && lineEdit_logDir->text() != "") { myConfig->writeConfigString("LogDir", lineEdit_logDir->text().toUtf8().constData()); } ++ if(QDir(lineEdit_logDir->text()).exists() && lineEdit_logDir->text() != "") { myConfig->writeConfigString("LogDir", lineEdit_logDir->text().toUtf8().constData()); } + else { + QMessageBox::warning(this, tr("Settings Error"), + tr("The log file directory doesn't exist.\n" |