# HG changeset patch # User koda # Date 1286552820 -7200 # Node ID 494221b5950e448a478d399b91a51f7637ea4c82 # Parent 0b982d340633cc143676c064940818693274cef8 fix issue 24 and issue 81 diff -r 0b982d340633 -r 494221b5950e QTfrontend/about.cpp --- a/QTfrontend/about.cpp Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/about.cpp Fri Oct 08 17:47:00 2010 +0200 @@ -90,7 +90,7 @@ "
" "Julien Koesten <julienkoesten@aol.com>" "
" - "Joshua O'Sullivan <battysausage@hotmail.co.uk>" + "Joshua O'Sullivan <coheedftw@hotmail.co.uk>" "
" "Nils Lück <nils.luck.design@gmail.com>" "
" diff -r 0b982d340633 -r 494221b5950e QTfrontend/achievements.cpp --- a/QTfrontend/achievements.cpp Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/achievements.cpp Fri Oct 08 17:47:00 2010 +0200 @@ -33,5 +33,5 @@ {"skipping", QT_TRANSLATE_NOOP("achievements", "Skipped"), QT_TRANSLATE_NOOP("achievements", "Let a single hog skip over the surface of the water for at least 5 times."), "skipped", "1", "hidden"}, {"cgunman", QT_TRANSLATE_NOOP("achievements", "Crazy Gunman"), QT_TRANSLATE_NOOP("achievements", "Eliminate 3 hogs with a single shot of the sniper rifle."), "cgunman", "1", ""}, */ - {0, 0, 0, 0, 0, 0} // "terminator" line + { {0, 0, 0, 0, 0, 0} } // "terminator" line }; diff -r 0b982d340633 -r 494221b5950e QTfrontend/gameuiconfig.cpp --- a/QTfrontend/gameuiconfig.cpp Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/gameuiconfig.cpp Fri Oct 08 17:47:00 2010 +0200 @@ -178,7 +178,7 @@ quint32 GameUIConfig::translateQuality() { quint32 rqNone = 0x00000000; // don't reduce quality - quint32 rqLowRes = 0x00000001; // use half land array + //quint32 rqLowRes = 0x00000001; // use half land array quint32 rqBlurryLand = 0x00000002; // downscaled terrain quint32 rqNoBackground = 0x00000004; // don't draw background quint32 rqSimpleRope = 0x00000008; // avoid drawing rope diff -r 0b982d340633 -r 494221b5950e QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/hwform.cpp Fri Oct 08 17:47:00 2010 +0200 @@ -83,7 +83,7 @@ ui.setupUi(this); setMinimumSize(760, 580); - + setFocusPolicy(Qt::StrongFocus); CustomizePalettes(); ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); @@ -93,13 +93,13 @@ namegen = new HWNamegen(); #ifdef __APPLE__ - panel = new M3Panel; + panel = new M3Panel; #ifdef SPARKLE_ENABLED - AutoUpdater* updater; - CocoaInitializer initializer; - updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); - if(updater && config->isAutoUpdateEnabled()) - updater->checkForUpdates(); + AutoUpdater* updater; + CocoaInitializer initializer; + updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); + if (updater && config->isAutoUpdateEnabled()) + updater->checkForUpdates(); #endif #endif @@ -274,6 +274,12 @@ } } +void HWForm::keyReleaseEvent(QKeyEvent *event) +{ + if (event->key() == Qt::Key_Escape || event->key() == Qt::Key_Backspace) + this->GoBack(); +} + void HWForm::CustomizePalettes() { QList allSBars = findChildren(); @@ -529,11 +535,11 @@ { if (eggTimer.elapsed() < 3000){ #ifdef __APPLE__ - panel->showInstallController(); + panel->showInstallController(); #endif close(); } - else + else { QPushButton * btn = findChild("imageButt"); if (btn) @@ -1127,3 +1133,4 @@ registry_hkcr.setValue("Hedgewars.Save/Shell/Open/Command/Default", "\"" + bindir->absolutePath().replace("/", "\\") + "\\hwengine.exe\" \"" + datadir->absolutePath().replace("/", "\\") + "\" \"%1\""); QMessageBox::information(0, "", QMessageBox::tr("All file associations have been set.")); } + diff -r 0b982d340633 -r 494221b5950e QTfrontend/hwform.h --- a/QTfrontend/hwform.h Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/hwform.h Fri Oct 08 17:47:00 2010 +0200 @@ -127,7 +127,8 @@ void closeEvent(QCloseEvent *event); void CustomizePalettes(); void resizeEvent(QResizeEvent * event); - + void keyReleaseEvent(QKeyEvent *event); + enum PageIDs { ID_PAGE_SETUP_TEAM = 0, ID_PAGE_SETUP = 1, diff -r 0b982d340633 -r 494221b5950e QTfrontend/pages.h --- a/QTfrontend/pages.h Thu Oct 07 16:02:28 2010 -0400 +++ b/QTfrontend/pages.h Fri Oct 08 17:47:00 2010 +0200 @@ -70,6 +70,7 @@ protected: AbstractPage(QWidget* parent = 0) { font14 = new QFont("MS Shell Dlg", 14); + setFocusPolicy(Qt::StrongFocus); } virtual ~AbstractPage() {};