mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-06 01:06:31 +08:00
Style
This commit is contained in:
@@ -255,13 +255,13 @@ namespace BlackCore
|
||||
|
||||
const QString &CApplication::getApplicationNameAndVersion() const
|
||||
{
|
||||
static const QString s(m_applicationName + " " + CBuildConfig::getVersionString());
|
||||
static const QString s(m_applicationName % QStringLiteral(" ") % CBuildConfig::getVersionString());
|
||||
return s;
|
||||
}
|
||||
|
||||
const QString &CApplication::getApplicationNameVersionDetailed() const
|
||||
{
|
||||
static const QString s(m_applicationName + " " + this->versionStringDetailed());
|
||||
static const QString s(m_applicationName % QStringLiteral(" ") % this->versionStringDetailed());
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace BlackGui
|
||||
CGuiApplication(const QString &applicationName = executable(), BlackMisc::CApplicationInfo::Application application = BlackMisc::CApplicationInfo::Unknown, const QPixmap &icon = BlackMisc::CIcons::swift64());
|
||||
|
||||
//! Destructor
|
||||
virtual ~CGuiApplication();
|
||||
virtual ~CGuiApplication() override;
|
||||
|
||||
//! CMD line arguments
|
||||
void addWindowStateOption();
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <Qt>
|
||||
|
||||
class QModelIndex;
|
||||
class QObject;
|
||||
|
||||
namespace BlackMisc { namespace Simulation { class CAircraftModel; } }
|
||||
namespace BlackGui
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace BlackGui
|
||||
void CPluginDetailsWindow::setPluginName(const QString &name)
|
||||
{
|
||||
ui->lbl_PluginName->setText(name);
|
||||
setWindowTitle(name);
|
||||
this->setWindowTitle(name);
|
||||
}
|
||||
|
||||
void CPluginDetailsWindow::setPluginIdentifier(const QString &id)
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
class QShowEvent;
|
||||
|
||||
namespace Ui { class CPluginDetailsWindow; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
/*!
|
||||
@@ -37,7 +36,7 @@ namespace BlackGui
|
||||
explicit CPluginDetailsWindow(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CPluginDetailsWindow();
|
||||
virtual ~CPluginDetailsWindow() override;
|
||||
|
||||
//! Sets the plugin name
|
||||
void setPluginName(const QString &name);
|
||||
|
||||
@@ -111,7 +111,7 @@ void CSwiftData::init()
|
||||
const CGlobalSetup s(sApp->getGlobalSetup());
|
||||
if (!s.getDbHomePageUrl().isEmpty())
|
||||
{
|
||||
this->setWindowTitle(QString("%1 %2").arg(this->windowTitle(), s.getDbHomePageUrl().toQString(true)));
|
||||
this->setWindowTitle(QStringLiteral("%1 %2").arg(this->windowTitle(), s.getDbHomePageUrl().toQString(true)));
|
||||
}
|
||||
|
||||
sGui->triggerNewVersionCheck(15 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user