fixes 0.5->0.6 stings. added extern gpl2 text

This commit is contained in:
doitux
2007-10-02 20:32:35 +00:00
parent 351d32659f
commit 4678c7cc33
6 changed files with 169 additions and 65 deletions
+10 -4
View File
@@ -18,19 +18,25 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "aboutpokerthimpl.h"
#include "configfile.h"
aboutPokerthImpl::aboutPokerthImpl(QWidget *parent)
: QDialog(parent)
aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c)
: QDialog(parent), myConfig(c)
{
setupUi(this);
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
QPalette myPalette = textBrowser->palette();
QPalette myPalette = textBrowser_licence->palette();
QColor myColor = myPalette.color(QPalette::Window);
myPalette.setColor(QPalette::Base, myColor);
textBrowser->setPalette(myPalette);
textBrowser_licence->setPalette(myPalette);
textBrowser_2->setPalette(myPalette);
textBrowser_3->setPalette(myPalette);
textBrowser_4->setPalette(myPalette);
textBrowser_licence->setSource(QUrl(myAppDataPath+"misc/gpl2.html"));
label_logo->setPixmap(QPixmap(myAppDataPath+"gfx/gui/misc/logoChip3D.png"));
}
+7 -1
View File
@@ -22,11 +22,17 @@
#include "ui_aboutpokerth.h"
class ConfigFile;
class aboutPokerthImpl: public QDialog, public Ui::aboutPokerth {
Q_OBJECT
public:
aboutPokerthImpl(QWidget *parent = 0);
aboutPokerthImpl(QWidget *parent = 0, ConfigFile *c =0);
private:
ConfigFile *myConfig;
QString myAppDataPath;
};
#endif