mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Rename CApplication member function to be better readable
The combination of the method's name 'signalStartupAutomatically' and the default argument, I completely misunderstood the purpose of the method in case the argument was skipped. 'a.signalStartupAutomatically()' actually disabled automatic signaling.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
fcac3b8137
commit
3603bbabe2
@@ -342,9 +342,9 @@ namespace BlackCore
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CApplication::signalStartupAutomatically(bool signal)
|
void CApplication::setSignalStartupAutomatically(bool enabled)
|
||||||
{
|
{
|
||||||
this->m_signalStartup = signal;
|
this->m_signalStartup = enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString CApplication::getEnvironmentInfoString(const QString &separator) const
|
QString CApplication::getEnvironmentInfoString(const QString &separator) const
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ namespace BlackCore
|
|||||||
bool isRunningInDeveloperEnvironment() const { return this->m_devEnv; }
|
bool isRunningInDeveloperEnvironment() const { return this->m_devEnv; }
|
||||||
|
|
||||||
//! Signal startup automatically or individually
|
//! Signal startup automatically or individually
|
||||||
void signalStartupAutomatically(bool signal = false);
|
void setSignalStartupAutomatically(bool enabled);
|
||||||
|
|
||||||
//! Info string
|
//! Info string
|
||||||
QString getEnvironmentInfoString(const QString &separator) const;
|
QString getEnvironmentInfoString(const QString &separator) const;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ int main(int argc, char *argv[])
|
|||||||
CGuiApplication::highDpiScreenSupport();
|
CGuiApplication::highDpiScreenSupport();
|
||||||
QApplication qa(argc, argv);
|
QApplication qa(argc, argv);
|
||||||
CSwiftGuiStdApplication a;
|
CSwiftGuiStdApplication a;
|
||||||
a.signalStartupAutomatically(); // application will signal startup on its own
|
a.setSignalStartupAutomatically(false); // application will signal startup on its own
|
||||||
a.splashScreen(":/own/icons/own/swift/swiftCirclePilotClient1024.png");
|
a.splashScreen(":/own/icons/own/swift/swiftCirclePilotClient1024.png");
|
||||||
if (!a.start())
|
if (!a.start())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user