Commit fea852d7 authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Port to categorized logging most of ksirk

Not ported:
- the Jabber directory; a separate category will be used, to minimize
  the change with the original version from Kopete;
- the ksirk/iris directory, to minimize the diversion; those files use
  qDebug anyway, not kDebug.
- bump the version of ECM to match the Frameworks one, which would make
  sense in itself, but also to have get a version which provides
  the ecm_qt_declare_logging_category macro.
parent 2558c370
......@@ -3,7 +3,7 @@ cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.2.0")
set (KF5_MIN_VERSION "5.15.0")
find_package(ECM 1.7.0 REQUIRED CONFIG)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
......@@ -39,6 +39,7 @@ include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMQtDeclareLoggingCategory)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
......
......@@ -93,6 +93,11 @@ set(ksirk_SRCS
Jabber/privacymanager.cpp
)
ecm_qt_declare_logging_category(ksirk_SRCS
HEADER ksirk_debug.h
IDENTIFIER KSIRK_LOG
CATEGORY_NAME org.kde.ksirk)
set(ksirk_UI
Dialogs/qplayersetupdialog.ui
Dialogs/newGameDialog.ui
......
......@@ -70,7 +70,7 @@
#include <kactioncollection.h>
#include <kstandarddirs.h>
#include <kmenubar.h>
#include <kdebug.h>
#include "ksirk_debug.h"
#include <ktextedit.h>
#include <phonon/mediaobject.h>
#include <QPushButton>
......@@ -190,7 +190,7 @@ InvasionSlider::InvasionSlider(KGameWindow* game, GameLogic::Country * attack, G
void InvasionSlider::slideMove(int v)
{
kDebug() << v;
qCDebug(KSIRK_LOG) << v;
m_nbLArmy = m_nbLArmy-(v-m_currentSlideValue);
m_nbRArmy = m_nbRArmy+(v-m_currentSlideValue);
m_nbLArmies->setText(QString::number(m_nbLArmy));
......@@ -203,12 +203,12 @@ void InvasionSlider::slideMove(int v)
void InvasionSlider::slideReleased()
{
kDebug() << "do nothing";
qCDebug(KSIRK_LOG) << "do nothing";
}
void InvasionSlider::slideClose()
{
kDebug() << m_currentSlideValue;
qCDebug(KSIRK_LOG) << m_currentSlideValue;
QByteArray buffer;
QDataStream stream(&buffer, QIODevice::WriteOnly);
......@@ -225,7 +225,7 @@ void InvasionSlider::slideClose()
void InvasionSlider::slideCancel()
{
kDebug() << "Move cancel";
qCDebug(KSIRK_LOG) << "Move cancel";
reject();
}
......
......@@ -21,7 +21,7 @@
#include "GameLogic/gameautomaton.h"
#include "ksirksettings.h"
#include <KDebug>
#include "ksirk_debug.h"
#include <KStringHandler>
#include <kwallet.h>
......@@ -35,7 +35,7 @@ KsirkJabberGameWidget::KsirkJabberGameWidget(QWidget* parent) :
m_automaton(0),
m_previousGuiIndex(-1)
{
kDebug();
qCDebug(KSIRK_LOG);
setupUi(this);
stackedWidget->setCurrentIndex(0);
......@@ -82,7 +82,7 @@ KsirkJabberGameWidget::KsirkJabberGameWidget(QWidget* parent) :
void KsirkJabberGameWidget::init(GameAutomaton* automaton)
{
kDebug();
qCDebug(KSIRK_LOG);
m_automaton = automaton;
jabberstateled->setState(
(m_automaton->game()->jabberClient()->isConnected())
......@@ -105,7 +105,7 @@ void KsirkJabberGameWidget::init(GameAutomaton* automaton)
void KsirkJabberGameWidget::slotJabberConnectButtonClicked()
{
kDebug();
qCDebug(KSIRK_LOG);
KsirkSettings::setJabberId(jabberid->text());
XMPP::Jid jid(jabberid->text()+'/'+jabberid->text());
......@@ -134,67 +134,67 @@ void KsirkJabberGameWidget::slotJabberConnectButtonClicked()
switch (res)
{
case JabberClient::Ok:
kDebug() << "Succesfull connexion";
qCDebug(KSIRK_LOG) << "Succesfull connexion";
m_automaton->game()->jabberClient()->requestRoster ();
break;
case JabberClient::InvalidPassword:
kError() << "Password used to connect to the server was incorrect.";
qCCritical(KSIRK_LOG) << "Password used to connect to the server was incorrect.";
break;
case JabberClient::AlreadyConnected:
kError() << "A new connection was attempted while the previous one hasn't been closed.";
qCCritical(KSIRK_LOG) << "A new connection was attempted while the previous one hasn't been closed.";
break;
case JabberClient::NoTLS:
kError() << "Use of TLS has been forced (see @ref forceTLS) but TLS is not available, either server- or client-side.";
qCCritical(KSIRK_LOG) << "Use of TLS has been forced (see @ref forceTLS) but TLS is not available, either server- or client-side.";
break;
case JabberClient::InvalidPasswordForMUC:
kError() << "A password is require to enter on this Multi-User Chat";
qCCritical(KSIRK_LOG) << "A password is require to enter on this Multi-User Chat";
break;
case JabberClient::NicknameConflict:
kError() << "There is already someone with that nick connected to the Multi-User Chat";
qCCritical(KSIRK_LOG) << "There is already someone with that nick connected to the Multi-User Chat";
break;
case JabberClient::BannedFromThisMUC:
kError() << "You can't join this Multi-User Chat because you were bannished";
qCCritical(KSIRK_LOG) << "You can't join this Multi-User Chat because you were bannished";
break;
case JabberClient::MaxUsersReachedForThisMuc:
kError() << "You can't join this Multi-User Chat because it is full";
qCCritical(KSIRK_LOG) << "You can't join this Multi-User Chat because it is full";
break;
default:
kError() << "Unknown error";
qCCritical(KSIRK_LOG) << "Unknown error";
}
}
void KsirkJabberGameWidget::slotJabberDisconnected()
{
kDebug();
qCDebug(KSIRK_LOG);
stackedWidget->setCurrentIndex(0);
jabberstateled->setState(KLed::Off);
}
void KsirkJabberGameWidget::slotJabberError(int error)
{
kDebug() << error;
qCDebug(KSIRK_LOG) << error;
}
void KsirkJabberGameWidget::slotHandleTLSWarning(QCA::TLS::IdentityResult result, QCA::Validity validity)
{
kDebug() << result << validity;
qCDebug(KSIRK_LOG) << result << validity;
}
void KsirkJabberGameWidget::slotJabberConnected()
{
kDebug () << "Connected to Jabber server.";
qCDebug(KSIRK_LOG) << "Connected to Jabber server.";
jabberstateled->setState(KLed::On);
}
void KsirkJabberGameWidget::slotJabberClientError(JabberClient::ErrorCode error)
{
kDebug() << error;
qCDebug(KSIRK_LOG) << error;
}
void KsirkJabberGameWidget::slotRosterRequestFinished ( bool success )
{
kDebug() << success;
qCDebug(KSIRK_LOG) << success;
if ( success )
{
stackedWidget->setCurrentIndex(1);
......@@ -203,7 +203,7 @@ void KsirkJabberGameWidget::slotRosterRequestFinished ( bool success )
void KsirkJabberGameWidget::slotJoinRoom()
{
kDebug () << "Joining group chat...";
qCDebug(KSIRK_LOG) << "Joining group chat...";
XMPP::Jid roomJid(roomjid->text());
QString groupchatHost = roomJid.domain();
m_automaton->game()->setGroupchatHost(groupchatHost);
......@@ -239,10 +239,10 @@ void KsirkJabberGameWidget::slotJoinRoom()
void KsirkJabberGameWidget::slotGroupChatJoined(const XMPP::Jid & jid)
{
kDebug() << jid.full();
qCDebug(KSIRK_LOG) << jid.full();
chatroomstateled->setState(KLed::On);
kDebug () << "Joined groupchat " << jid.full ();
qCDebug(KSIRK_LOG) << "Joined groupchat " << jid.full ();
startnewgamebutton->setEnabled(true);
joingamebutton->setEnabled(true);
......@@ -251,7 +251,7 @@ void KsirkJabberGameWidget::slotGroupChatJoined(const XMPP::Jid & jid)
void KsirkJabberGameWidget::slotGroupChatLeft (const XMPP::Jid & jid)
{
kDebug();
qCDebug(KSIRK_LOG);
Q_UNUSED(jid);
chatroomstateled->setState(KLed::Off);
......@@ -262,7 +262,7 @@ void KsirkJabberGameWidget::slotGroupChatLeft (const XMPP::Jid & jid)
void KsirkJabberGameWidget::slotGroupChatPresence (const XMPP::Jid & jid, const XMPP::Status & status)
{
kDebug() << jid.full() << status.isAvailable();
qCDebug(KSIRK_LOG) << jid.full() << status.isAvailable();
if (!status.isAvailable())
{
int i = 0;
......@@ -282,7 +282,7 @@ void KsirkJabberGameWidget::slotGroupChatPresence (const XMPP::Jid & jid, const
void KsirkJabberGameWidget::slotGroupChatError (const XMPP::Jid & jid, int error, const QString & reason)
{
kDebug() << jid.full() << error << reason;
qCDebug(KSIRK_LOG) << jid.full() << error << reason;
}
void KsirkJabberGameWidget::slotNewJabberGame(const QString& nick,
......@@ -290,12 +290,12 @@ void KsirkJabberGameWidget::slotNewJabberGame(const QString& nick,
const QString& skin
)
{
kDebug() << nick << nbPlayers << skin;
qCDebug(KSIRK_LOG) << nick << nbPlayers << skin;
for (int i = 0; i < jabberTable->rowCount(); i++)
{
if (jabberTable->itemAt(0,i)->text() == nick)
{
kDebug() << "This game is already listed";
qCDebug(KSIRK_LOG) << "This game is already listed";
return;
}
}
......@@ -315,21 +315,21 @@ void KsirkJabberGameWidget::slotNewJabberGame(const QString& nick,
void KsirkJabberGameWidget::slotCellClicked(int row, int column)
{
Q_UNUSED(column);
kDebug() << row;
qCDebug(KSIRK_LOG) << row;
m_nick = jabberTable->item(row,0)->text();
m_nbPlayers = jabberTable->item(row,2)->text().toInt();
kDebug() << m_nick << m_nbPlayers;
qCDebug(KSIRK_LOG) << m_nick << m_nbPlayers;
}
void KsirkJabberGameWidget::slotJoinJabberGame()
{
kDebug();
qCDebug(KSIRK_LOG);
m_automaton->joinJabberGame(m_nick);
}
void KsirkJabberGameWidget::slotCancel()
{
kDebug();
qCDebug(KSIRK_LOG);
emit cancelled(m_previousGuiIndex);
}
......
......@@ -25,7 +25,7 @@
#include <QLineEdit>
#include <KLocalizedString>
#include <KDebug>
#include "ksirk_debug.h"
namespace Ksirk
{
......@@ -36,7 +36,7 @@ namespace Ksirk
m_host(host),
m_port(port)
{
kDebug();
qCDebug(KSIRK_LOG);
setupUi(this);
hostEdit-> setText(m_host);
portEdit-> setText(QString::number(m_port));
......@@ -50,7 +50,7 @@ JoinGameDialog::~JoinGameDialog(){
void JoinGameDialog::accept()
{
kDebug();
qCDebug(KSIRK_LOG);
m_host = hostEdit->text();
m_port = hostEdit->text().toInt();
......@@ -58,7 +58,7 @@ void JoinGameDialog::accept()
}
void JoinGameDialog::reject() {
// kDebug() << "I not allow to close the dialog!" << endl;
// qCDebug(KSIRK_LOG) << "I not allow to close the dialog!" << endl;
QDialog::reject();
}
......
......@@ -38,7 +38,7 @@
#include <QPainter>
#include <KLocalizedString>
#include <kdebug.h>
#include "ksirk_debug.h"
#define _XOPEN_SOURCE_
// #include <unistd.h>
......@@ -49,7 +49,7 @@ namespace Ksirk
KPlayerSetupWidget::KPlayerSetupWidget(QWidget *parent) :
QWidget(parent), Ui::QPlayerSetupWidget()
{
kDebug();
qCDebug(KSIRK_LOG);
setupUi(this);
connect(nationCombo, SIGNAL(activated(int)), this, SLOT(slotNationChanged()));
......@@ -78,7 +78,7 @@ void KPlayerSetupWidget::init(GameLogic::GameAutomaton* automaton,
NewGameSetup* newGameSetup)
{
kDebug() << playerName << nationName;
qCDebug(KSIRK_LOG) << playerName << nationName;
m_automaton = automaton;
m_name = playerName;
......@@ -90,21 +90,21 @@ void KPlayerSetupWidget::init(GameLogic::GameAutomaton* automaton,
m_password = password;
m_newGameSetup = newGameSetup;
kDebug() << "connecting to playerJoinedGame";
qCDebug(KSIRK_LOG) << "connecting to playerJoinedGame";
connect(automaton,SIGNAL(signalPlayerJoinedGame(KPlayer*)), this, SLOT(slotPlayerJoinedGame(KPlayer*)));
init();
kDebug() << "constructor done";
qCDebug(KSIRK_LOG) << "constructor done";
}
void KPlayerSetupWidget::slotNext()
{
kDebug() << m_newGameSetup->players().size() << m_newGameSetup->nbPlayers();
qCDebug(KSIRK_LOG) << m_newGameSetup->players().size() << m_newGameSetup->nbPlayers();
m_name = nameLineEdit-> text().trimmed();
// kDebug() << "Got name " << name;
// qCDebug(KSIRK_LOG) << "Got name " << name;
m_computer = (isComputerCheckBox-> checkState() == Qt::Checked);
// kDebug() << "computer? : " << computer;
// qCDebug(KSIRK_LOG) << "computer? : " << computer;
m_nationName = m_nationsNames[nationCombo->currentText()];
// @toport
// m_password = QString(crypt(passwordEdit->password(),"T6"));
......@@ -112,7 +112,7 @@ void KPlayerSetupWidget::slotNext()
// accept();
if (m_newGameSetup->players().size() < m_newGameSetup->nbPlayers())
{
kDebug() << "Add new player";
qCDebug(KSIRK_LOG) << "Add new player";
NewPlayerData* newPlayer = new NewPlayerData(m_name, m_nationName, m_password, m_computer, false);
m_newGameSetup->players().push_back(newPlayer);
fillNationsCombo();
......@@ -127,7 +127,7 @@ void KPlayerSetupWidget::slotNext()
void KPlayerSetupWidget::slotPrevious()
{
kDebug();
qCDebug(KSIRK_LOG);
if (m_newGameSetup->players().empty())
{
emit previous();
......@@ -148,14 +148,14 @@ void KPlayerSetupWidget::slotPrevious()
void KPlayerSetupWidget::slotCancel()
{
kDebug();
qCDebug(KSIRK_LOG);
emit cancel();
}
void KPlayerSetupWidget::fillNationsCombo()
{
kDebug();
qCDebug(KSIRK_LOG);
nationCombo->clear();
GameLogic::Nationality* nation = m_onu->nationNamed(*m_nations.keys().begin());
......@@ -168,7 +168,7 @@ void KPlayerSetupWidget::fillNationsCombo()
continue;
}
const QString& v =m_nations[k];
kDebug() << "Adding nation " << I18N_NOOP(k) << " / " << v;
qCDebug(KSIRK_LOG) << "Adding nation " << I18N_NOOP(k) << " / " << v;
// load image
FlagSprite flagsprite(v,
......@@ -186,12 +186,12 @@ void KPlayerSetupWidget::fillNationsCombo()
nationCombo->addItem(QIcon(flag),name);
}
kDebug() << "Nations combo filled";
qCDebug(KSIRK_LOG) << "Nations combo filled";
}
void KPlayerSetupWidget::slotPlayerJoinedGame(KPlayer* player)
{
kDebug() << "KPlayerSetupWidget::slotPlayerJoinedGame: " << player->name()
qCDebug(KSIRK_LOG) << "KPlayerSetupWidget::slotPlayerJoinedGame: " << player->name()
<< " from " << ((GameLogic::Player*)player)->getNation()->name();
for (int i = 0 ; i < nationCombo->count(); i++)
{
......@@ -206,13 +206,13 @@ void KPlayerSetupWidget::slotPlayerJoinedGame(KPlayer* player)
void KPlayerSetupWidget::slotNationChanged()
{
kDebug() << "KPlayerSetupWidget::slotNationChanged " << nationCombo->currentText();
qCDebug(KSIRK_LOG) << "KPlayerSetupWidget::slotNationChanged " << nationCombo->currentText();
if (nationCombo->currentText().isEmpty())
{
return;
}
GameLogic::Nationality* nation = m_onu->nationNamed(m_nationsNames[nationCombo->currentText()]);
// kDebug() << "nation = " << nation;
// qCDebug(KSIRK_LOG) << "nation = " << nation;
nameLineEdit-> setText(nation->leaderName());
slotNameEdited(nameLineEdit->text());
}
......@@ -231,7 +231,7 @@ bool KPlayerSetupWidget::isAvailable(QString nationName)
void KPlayerSetupWidget::slotNameEdited(const QString& text)
{
kDebug() << text.trimmed();
qCDebug(KSIRK_LOG) << text.trimmed();
bool found = false;
foreach (NewPlayerData* player, m_newGameSetup->players())
{
......@@ -261,7 +261,7 @@ void KPlayerSetupWidget::slotNameEdited(const QString& text)
void KPlayerSetupWidget::init(NewPlayerData* player)
{
kDebug() << (void*)player;
qCDebug(KSIRK_LOG) << (void*)player;
setLabelText();
/// @TODO set the correct nation and password and computer state
......@@ -274,7 +274,7 @@ void KPlayerSetupWidget::init(NewPlayerData* player)
}
if (player != 0)
{
kDebug() << player->name();
qCDebug(KSIRK_LOG) << player->name();
nationCombo->setCurrentIndex(nationCombo->findText(player->nation()));
slotNationChanged();
nameLineEdit->setText(player->name());
......
......@@ -34,7 +34,7 @@
#include <QPixmap>
#include <KLocalizedString>
#include <kdebug.h>
#include "ksirk_debug.h"
#define _XOPEN_SOURCE_
#include <unistd.h>
......@@ -53,7 +53,7 @@ KWaitedPlayerSetupDialog::KWaitedPlayerSetupDialog(
m_password(password), m_result(result)
{
setupUi(this);
kDebug() << "KWaitedPlayerSetupDialog constructor" << endl;
qCDebug(KSIRK_LOG) << "KWaitedPlayerSetupDialog constructor" << endl;
fillWaitedPlayersCombo();
QObject::connect((const QObject *)PushButton1, SIGNAL(clicked()), this, SLOT(slotOK()) );
......@@ -65,7 +65,7 @@ KWaitedPlayerSetupDialog::~KWaitedPlayerSetupDialog(){
void KWaitedPlayerSetupDialog::slotOK()
{
kDebug() << "slotOk" << endl;
qCDebug(KSIRK_LOG) << "slotOk" << endl;
// toport
// m_password = QString(crypt(passwordEdit->password(),"T6"));
m_result = waitedPlayersCombo->currentIndex();
......@@ -74,14 +74,14 @@ void KWaitedPlayerSetupDialog::slotOK()
void KWaitedPlayerSetupDialog::fillWaitedPlayersCombo()
{
kDebug() << "Filling nations combo" << endl;
qCDebug(KSIRK_LOG) << "Filling nations combo" << endl;
QList<PlayerMatrix>::iterator it, it_end;
it = m_automaton->game()->waitedPlayers().begin();
it_end = m_automaton->game()->waitedPlayers().end();
for (; it != it_end; it++)
{
kDebug() << "Adding waited player " << (*it).name << endl;
qCDebug(KSIRK_LOG) << "Adding waited player " << (*it).name << endl;
QString imgName = m_automaton->game()->theWorld()->nationNamed((*it).nation)->flagFileName();
// load image
QPixmap flag;
......
......@@ -23,7 +23,7 @@
#include "GameLogic/onu.h"
#include <KLocalizedString>
#include <KDebug>
#include "ksirk_debug.h"
#include <KStandardDirs>
#include <KMessageBox>
#include <KConfigDialog>
......@@ -43,7 +43,7 @@ NewGameWidget::NewGameWidget(NewGameSetup* newGameSetup, QWidget *parent) :
Ui::NewGameDialog(),
m_newGameSetup(newGameSetup)
{
kDebug();
qCDebug(KSIRK_LOG);
setupUi(this);
QObject::connect(nextButton, SIGNAL(clicked()), this, SLOT(slotOK()) );
......@@ -55,7 +55,7 @@ NewGameWidget::NewGameWidget(NewGameSetup* newGameSetup, QWidget *parent) :
void NewGameWidget::init(const QString& skin, GameAutomaton::NetworkGameType netGameType)
{
kDebug() << "Skin got: " << skin << " ; network=" << netGameType;
qCDebug(KSIRK_LOG) << "Skin got: " << skin << " ; network=" << netGameType;
m_newGameSetup->setSkin(skin);
if (netGameType != GameAutomaton::None)
{
......@@ -96,7 +96,7 @@ NewGameWidget::~NewGameWidget()
void NewGameWidget::slotOK()
{
kDebug() << " skin is " << m_newGameSetup->worlds()[skinCombo->currentText()]->skin();
qCDebug(KSIRK_LOG) << " skin is " << m_newGameSetup->worlds()[skinCombo->currentText()]->skin();
// m_networkGame = networkGameCheckBox->isChecked();
m_newGameSetup->setSkin(m_newGameSetup->worlds()[skinCombo->currentText()]->skin());
m_newGameSetup->setNbPlayers(playersNumberEntry->value());
......@@ -107,20 +107,20 @@ void NewGameWidget::slotOK()
void NewGameWidget::slotCancel()
{
kDebug();
qCDebug(KSIRK_LOG);
emit newGameKO();
}
void NewGameWidget::fillSkinsCombo()
{
kDebug() << "Filling skins combo";
qCDebug(KSIRK_LOG) << "Filling skins combo";
skinCombo->clear();
qDeleteAll(m_newGameSetup->worlds());
KStandardDirs *m_dirs = KGlobal::dirs();
QStringList skinsDirs = m_dirs->findDirs("appdata","skins");
kDebug() << skinsDirs;
qCDebug(KSIRK_LOG) << skinsDirs;
uint skinNum = 0;
uint currentSkinNum = 0;
foreach (const QString &skinsDirName, skinsDirs)
......@@ -133,17 +133,17 @@ void NewGameWidget::fillSkinsCombo()
i18n("Fatal Error!"));
exit(2);
}
kDebug() << "Got skins dir name: " << skinsDirName;
qCDebug(KSIRK_LOG) << "Got skins dir name: " << skinsDirName;
QDir skinsDir(skinsDirName);
QStringList skinsDirsNames = skinsDir.entryList(QStringList("[a-zA-Z]*"), QDir::Dirs);
foreach (const QString& name, skinsDirsNames)
{
kDebug() << "Got skin dir name: " << name;
qCDebug(KSIRK_LOG) << "Got skin dir name: " << name;
QDir skinDir(skinsDirName + name);
if (skinDir.exists())
{
kDebug() << "Got skin dir: " << skinDir.dirName();
qCDebug(KSIRK_LOG) << "Got skin dir: " << skinDir.dirName();
GameLogic::ONU* world = new GameLogic::ONU(m_newGameSetup->automaton(),skinsDirName + skinDir.dirName() + "/Data/world.desktop");
if (!world->skin().isEmpty())
{
......@@ -151,7 +151,7 @@ void NewGameWidget::fillSkinsCombo()
m_newGameSetup->worlds()[i18n(world->name().toUtf8().data())] = world;
if (QString(QLatin1String("skins/")+skinDir.dirName()) == m_newGameSetup->skin())
{
kDebug() << "Setting currentSkinNum to " << skinNum;
qCDebug(KSIRK_LOG) << "Setting currentSkinNum to " << skinNum;
currentSkinNum = skinNum;
}
}
......@@ -168,7 +168,7 @@ void NewGameWidget::fillSkinsCombo()
void NewGameWidget::slotSkinChanged(int skinNum)
{
kDebug() << "NewGameDialogImpl::slotSkinChanged "
qCDebug(KSIRK_LOG) << "NewGameDialogImpl::slotSkinChanged "
<< skinNum << " ; " << skinCombo->currentText()
<< " ; " << m_newGameSetup->worlds()[skinCombo->currentText()]->name() << " ; "
<< m_newGameSetup->worlds()[skinCombo->currentText()]->description();
......@@ -189,7 +189,7 @@ void NewGameWidget::slotGHNS()
// {
// return;
// }
kDebug();
qCDebug(KSIRK_LOG);
KNS3::DownloadDialog dialog(this);
dialog.exec();
......