mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Fixed clazy warning: signal CLineReader::quit hides signal QThread::quit.
This commit is contained in:
@@ -39,7 +39,7 @@ int main(int argc, char *argv[])
|
|||||||
CLineReader lineReader(&a);
|
CLineReader lineReader(&a);
|
||||||
CWeatherDataPrinter printer(&a);
|
CWeatherDataPrinter printer(&a);
|
||||||
QObject::connect(&lineReader, &CLineReader::weatherDataRequest, &printer, &CWeatherDataPrinter::fetchAndPrintWetherData);
|
QObject::connect(&lineReader, &CLineReader::weatherDataRequest, &printer, &CWeatherDataPrinter::fetchAndPrintWetherData);
|
||||||
QObject::connect(&lineReader, &CLineReader::quit, &lineReader, &CLineReader::terminate);
|
QObject::connect(&lineReader, &CLineReader::wantsToQuit, &lineReader, &CLineReader::terminate);
|
||||||
QObject::connect(&lineReader, &CLineReader::finished, &a, &QCoreApplication::quit);
|
QObject::connect(&lineReader, &CLineReader::finished, &a, &QCoreApplication::quit);
|
||||||
|
|
||||||
QTextStream qtout(stdout);
|
QTextStream qtout(stdout);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ void CLineReader::run()
|
|||||||
|
|
||||||
if (line == "x")
|
if (line == "x")
|
||||||
{
|
{
|
||||||
emit quit();
|
emit wantsToQuit();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ signals:
|
|||||||
void weatherDataRequest(const BlackMisc::Geo::CCoordinateGeodetic &position);
|
void weatherDataRequest(const BlackMisc::Geo::CCoordinateGeodetic &position);
|
||||||
|
|
||||||
//! User is asking to quit
|
//! User is asking to quit
|
||||||
void quit();
|
void wantsToQuit();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
Reference in New Issue
Block a user