~neon/libkdegames/master

« back to all changes in this revision

Viewing changes to libkdegamesprivate/kgame/kgamenetwork.cpp

  • Committer: Friedrich W. H. Kossebau
  • Date: 2020-06-18 15:08:41 UTC
  • Revision ID: git-v1:a98250f6bdd6306d338ac0ed509b4379a6d4f7bc
Use Q_EMIT instead of emit

GIT_SILENT

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
 
232
232
 qCDebug(GAMES_PRIVATE_KGAME) << "    about to set server";
233
233
 d->mMessageClient->setServer(connection);
234
 
 emit signalAdminStatusChanged(false); // as we delete the connection above isAdmin() is always false now!
 
234
 Q_EMIT signalAdminStatusChanged(false); // as we delete the connection above isAdmin() is always false now!
235
235
 
236
236
 // OK: We say that we already have connected, but this isn't so yet!
237
237
 // If the connection cannot be established, it will look as being disconnected
488
488
   qCDebug(GAMES_PRIVATE_KGAME) << "Got IdError" << error;
489
489
   text = KGameError::errorText(error, stream);
490
490
   qCDebug(GAMES_PRIVATE_KGAME) << "Error text:" << text.toLatin1();
491
 
   emit signalNetworkErrorMessage((int)error,text);
 
491
   Q_EMIT signalNetworkErrorMessage((int)error,text);
492
492
 }
493
493
 else
494
494
 {
499
499
// -------------- slots for the signals of the client
500
500
void KGameNetwork::slotAdminStatusChanged(bool isAdmin)
501
501
{
502
 
 emit signalAdminStatusChanged(isAdmin);
 
502
 Q_EMIT signalAdminStatusChanged(isAdmin);
503
503
 
504
504
// TODO: I'm pretty sure there are a lot of things that should be done here...
505
505
}