Commit 3d4b5570 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Normalize signals/slots

svn path=/trunk/KDE/kdegames/ktron/; revision=1244155
parent 8e95365f
......@@ -132,7 +132,7 @@ KTron::KTron(QWidget *parent) : KXmlGuiWindow(parent, KDE_DEFAULT_WINDOWFLAGS) {
m_pauseButton = KStandardGameAction::pause(m_tron, SLOT(togglePause()), actionCollection());
m_pauseButton->setEnabled(false);
// New
KStandardGameAction::gameNew(m_tron, SLOT( newGame() ), actionCollection());
KStandardGameAction::gameNew(m_tron, SLOT(newGame()), actionCollection());
// Quit
KStandardGameAction::quit(kapp, SLOT(quit()), actionCollection());
// Settings
......@@ -275,8 +275,8 @@ void KTron::showSettings(){
KConfigDialog *dialog = new KConfigDialog(this, QLatin1String( "settings" ), Settings::self());
dialog->addPage(m_generalConfigDialog, i18n("General"), QLatin1String( "games-config-options" ));
dialog->addPage(new KGameThemeSelector(dialog, Settings::self(), KGameThemeSelector::NewStuffEnableDownload), i18n("Theme"), QLatin1String( "games-config-theme" ));
connect(dialog, SIGNAL(settingsChanged(const QString &)), this, SLOT(loadSettings()));
connect(dialog, SIGNAL(settingsChanged(const QString &)), m_tron, SLOT(loadSettings()));
connect(dialog, SIGNAL(settingsChanged(QString)), this, SLOT(loadSettings()));
connect(dialog, SIGNAL(settingsChanged(QString)), m_tron, SLOT(loadSettings()));
dialog->show();
}
......
......@@ -53,8 +53,8 @@ Tron::Tron(QWidget *parent) : QWidget(parent)
players[0] = new Player(pf, 0);
players[1] = new Player(pf, 1);
connect(players[0], SIGNAL(fetchedItem(int, int, int)), SLOT(itemHit(int, int, int)));
connect(players[1], SIGNAL(fetchedItem(int, int, int)), SLOT(itemHit(int, int, int)));
connect(players[0], SIGNAL(fetchedItem(int,int,int)), SLOT(itemHit(int,int,int)));
connect(players[1], SIGNAL(fetchedItem(int,int,int)), SLOT(itemHit(int,int,int)));
intelligence.referenceTron(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment