QTfrontend/hwform.cpp
changeset 10307 e13d3147f15b
parent 10108 c68cf030eded
child 10392 5012e1f9e893
equal deleted inserted replaced
10306:4fca8bcfaff0 10307:e13d3147f15b
  1673 {
  1673 {
  1674     game = new HWGame(config, gamecfg, ammo, pTeamSelWidget);
  1674     game = new HWGame(config, gamecfg, ammo, pTeamSelWidget);
  1675     connect(game, SIGNAL(CampStateChanged(int)), this, SLOT(UpdateCampaignPageProgress(int)));
  1675     connect(game, SIGNAL(CampStateChanged(int)), this, SLOT(UpdateCampaignPageProgress(int)));
  1676     connect(game, SIGNAL(GameStateChanged(GameState)), this, SLOT(GameStateChanged(GameState)));
  1676     connect(game, SIGNAL(GameStateChanged(GameState)), this, SLOT(GameStateChanged(GameState)));
  1677     connect(game, SIGNAL(GameStats(char, const QString &)), ui.pageGameStats, SLOT(GameStats(char, const QString &)));
  1677     connect(game, SIGNAL(GameStats(char, const QString &)), ui.pageGameStats, SLOT(GameStats(char, const QString &)));
  1678     connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowErrorMessage(const QString &)), Qt::QueuedConnection);
  1678     connect(game, SIGNAL(ErrorMessage(const QString &)), this, SLOT(ShowFatalErrorMessage(const QString &)), Qt::QueuedConnection);
  1679     connect(game, SIGNAL(HaveRecord(RecordType, const QByteArray &)), this, SLOT(GetRecord(RecordType, const QByteArray &)));
  1679     connect(game, SIGNAL(HaveRecord(RecordType, const QByteArray &)), this, SLOT(GetRecord(RecordType, const QByteArray &)));
  1680     m_lastDemo = QByteArray();
  1680     m_lastDemo = QByteArray();
  1681 }
  1681 }
  1682 
  1682 
  1683 void HWForm::GetRecord(RecordType type, const QByteArray & record)
  1683 void HWForm::GetRecord(RecordType type, const QByteArray & record)
  2092     default:
  2092     default:
  2093         break;
  2093         break;
  2094     }
  2094     }
  2095 }
  2095 }
  2096 
  2096 
  2097 void HWForm::ShowErrorMessage(const QString & msg)
  2097 void HWForm::ShowFatalErrorMessage(const QString & msg)
  2098 {
  2098 {
  2099     MessageDialog::ShowErrorMessage(msg, this);
  2099     MessageDialog::ShowFatalMessage(msg, this);
  2100 }
  2100 }
  2101 
  2101 
  2102 void HWForm::showFeedbackDialog()
  2102 void HWForm::showFeedbackDialog()
  2103 {
  2103 {
  2104     QNetworkRequest newRequest(QUrl("http://www.hedgewars.org"));
  2104     QNetworkRequest newRequest(QUrl("http://www.hedgewars.org"));