Commit 1345312e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use Q_EMIT instead of emit

GIT_SILENT
parent d9c5eff8
......@@ -53,11 +53,11 @@ namespace KCDDB
state_ = Idle;
if ( error == QAbstractSocket::HostNotFoundError )
emit finished( HostNotFound );
Q_EMIT finished( HostNotFound );
else if ( error == QAbstractSocket::SocketTimeoutError )
emit finished( NoResponse );
Q_EMIT finished( NoResponse );
else
emit finished( UnknownError );
Q_EMIT finished( UnknownError );
}
void
......@@ -189,7 +189,7 @@ namespace KCDDB
close();
emit finished( result_ );
Q_EMIT finished( result_ );
break;
......
......@@ -62,7 +62,7 @@ namespace KCDDB
if ( Success != result_ )
{
emit finished( result_ );
Q_EMIT finished( result_ );
return;
}
......@@ -75,7 +75,7 @@ namespace KCDDB
if ( matchList_.isEmpty() )
{
result_ = cdInfoList_.isEmpty()? NoRecordFound : Success;
emit finished( result_ );
Q_EMIT finished( result_ );
return;
}
......@@ -87,7 +87,7 @@ namespace KCDDB
result_ = sendRead( match );
if ( Success != result_ )
emit finished( result_ );
Q_EMIT finished( result_ );
}
void
......@@ -104,7 +104,7 @@ namespace KCDDB
{
result_ = ServerError;
if ( !block_ )
emit queryReady();
Q_EMIT queryReady();
return;
}
......
......@@ -34,9 +34,9 @@ namespace KCDDB
qDebug() << "Finished";
if ( job->error()==0 )
emit finished( Success );
Q_EMIT finished( Success );
else
emit finished( UnknownError );
Q_EMIT finished( UnknownError );
}
}
......@@ -37,9 +37,9 @@ namespace KCDDB
{
qCDebug(LIBKCDDB) ;
if ( job->error()==0 )
emit finished( Success );
Q_EMIT finished( Success );
else
emit finished( UnknownError );
Q_EMIT finished( UnknownError );
}
}
......@@ -111,7 +111,7 @@ namespace KCDDB
if ( !d->cdInfoList.isEmpty() )
{
if ( !blockingMode() )
emit finished( Success );
Q_EMIT finished( Success );
return Success;
}
......@@ -231,7 +231,7 @@ namespace KCDDB
if ( Success == r )
{
emit finished( r );
Q_EMIT finished( r );
qDeleteAll( d->pendingLookups );
d->pendingLookups.clear();
}
......@@ -244,7 +244,7 @@ namespace KCDDB
void
Client::slotSubmitFinished( Result r )
{
emit finished( r );
Q_EMIT finished( r );
d->cdInfoSubmit->deleteLater();
d->cdInfoSubmit=nullptr;
......@@ -347,7 +347,7 @@ namespace KCDDB
}
else
{
emit finished( NoRecordFound );
Q_EMIT finished( NoRecordFound );
return NoRecordFound;
}
}
......
......@@ -102,7 +102,7 @@ namespace KCDDB
case Success:
if ( !block_ )
emit queryReady();
Q_EMIT queryReady();
break;
case MultipleRecordFound:
......@@ -117,7 +117,7 @@ namespace KCDDB
result_ = Success;
if ( !block_ )
emit queryReady();
Q_EMIT queryReady();
break;
}
......@@ -130,7 +130,7 @@ namespace KCDDB
case ServerError:
case NoRecordFound:
if ( !block_ )
emit queryReady();
Q_EMIT queryReady();
return;
break;
......@@ -158,7 +158,7 @@ namespace KCDDB
}
if ( !block_ )
emit readReady();
Q_EMIT readReady();
}
return;
......
......@@ -58,7 +58,7 @@ namespace KCDDB
cdInfoList_ = m_lookupThread->m_lookupResponse;
emit finished(m_lookupThread->m_result);
Q_EMIT finished(m_lookupThread->m_result);
}
}
......
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