From 2e15d25e4454b4daa08d6ff0d54a23e24cf7f024 Mon Sep 17 00:00:00 2001 From: doitux Date: Sat, 27 Oct 2007 21:01:44 +0000 Subject: [PATCH] gpl url fix. maximize event on windows fix --- src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp | 4 +++- src/gui/qt/mainwindow/mainwindowimpl.cpp | 4 ++++ src/gui/qt/mainwindow/mainwindowimpl.h | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp b/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp index 567cd6e9..729dbede 100755 --- a/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp +++ b/src/gui/qt/aboutpokerth/aboutpokerthimpl.cpp @@ -19,6 +19,8 @@ ***************************************************************************/ #include "aboutpokerthimpl.h" #include "configfile.h" +#include + aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c) : QDialog(parent), myConfig(c) @@ -36,7 +38,7 @@ aboutPokerthImpl::aboutPokerthImpl(QWidget *parent, ConfigFile *c) textBrowser_3->setPalette(myPalette); textBrowser_4->setPalette(myPalette); - textBrowser_licence->setSource(QUrl(myAppDataPath+"misc/gpl2.html")); + textBrowser_licence->setSource(QUrl(QDir::toNativeSeparators(myAppDataPath+"misc/gpl2.html"))); label_logo->setPixmap(QPixmap(myAppDataPath+"gfx/gui/misc/logoChip3D.png")); } diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 83f3c545..647b3332 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -3632,6 +3632,10 @@ void mainWindowImpl::myButtonsCheckable(bool state) { void mainWindowImpl::closeEvent(QCloseEvent* /*event*/) { quitPokerTH(); } +void mainWindowImpl::showMaximized () { + showFullScreen (); +} + void mainWindowImpl::quitPokerTH() { if (myServerGuiInterface.get() && myServerGuiInterface->getSession().isNetworkServerRunning()) { diff --git a/src/gui/qt/mainwindow/mainwindowimpl.h b/src/gui/qt/mainwindow/mainwindowimpl.h index 4301e25c..050f3e7b 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.h +++ b/src/gui/qt/mainwindow/mainwindowimpl.h @@ -319,7 +319,8 @@ public slots: void myButtonsCheckable(bool state); void changePlayingMode(); - + + void showMaximized (); void quitPokerTH();