From ec297d583857f72bf3d38c14992ab2641aeb4a24 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 29 Mar 2017 22:09:48 +0200 Subject: [PATCH] Formatting, typos --- src/blackcore/application.h | 1 + src/blackcore/setupreader.cpp | 2 +- src/blackgui/components/dbcountrycomponent.h | 3 +-- src/blackgui/loadindicator.h | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/blackcore/application.h b/src/blackcore/application.h index d3f06df3b..a182aad9b 100644 --- a/src/blackcore/application.h +++ b/src/blackcore/application.h @@ -121,6 +121,7 @@ namespace BlackCore bool isAlreadyRunning() const; //! Is application shutting down? + //! \threadsafe bool isShuttingDown() const; //! Application name and version diff --git a/src/blackcore/setupreader.cpp b/src/blackcore/setupreader.cpp index 0979718de..7848b2498 100644 --- a/src/blackcore/setupreader.cpp +++ b/src/blackcore/setupreader.cpp @@ -158,7 +158,7 @@ namespace BlackCore if (url.isLocalFile()) { this->m_localSetupFileValue = url.toLocalFile(); - QFile f(this->m_localSetupFileValue); + const QFile f(this->m_localSetupFileValue); if (!f.exists()) { sApp->cmdLineErrorMessage(QString("File '%1' does not exist)").arg(this->m_localSetupFileValue)); diff --git a/src/blackgui/components/dbcountrycomponent.h b/src/blackgui/components/dbcountrycomponent.h index f05390235..7b40f8ecf 100644 --- a/src/blackgui/components/dbcountrycomponent.h +++ b/src/blackgui/components/dbcountrycomponent.h @@ -24,7 +24,6 @@ class QWidget; namespace Ui { class CDbCountryComponent; } - namespace BlackGui { namespace Components @@ -44,7 +43,7 @@ namespace BlackGui explicit CDbCountryComponent(QWidget *parent = nullptr); //! Destructor - ~CDbCountryComponent(); + virtual ~CDbCountryComponent(); private slots: //! Countries have been read diff --git a/src/blackgui/loadindicator.h b/src/blackgui/loadindicator.h index 7c8f99fa6..e485ef48e 100644 --- a/src/blackgui/loadindicator.h +++ b/src/blackgui/loadindicator.h @@ -29,7 +29,7 @@ class QTimerEvent; namespace BlackGui { - /** + /*! * The QProgressIndicator class lets an application display a progress indicator to show that a lengthy task is under way. * Progress indicators are indeterminate and do nothing more than spin to show that the application is busy. * \note based on https://github.com/mojocorp/QProgressIndicator under MIT license @@ -121,8 +121,8 @@ namespace BlackGui QColor m_color = Qt::blue; }; - /** - * Enable widgte class for load indicator + /*! + * Enable widget class for load indicator */ class BLACKGUI_EXPORT CLoadIndicatorEnabled { @@ -148,7 +148,7 @@ namespace BlackGui //! Indicator timed out //! \remark override for usage - void virtual indicatorTimedOut(); + virtual void indicatorTimedOut(); QWidget *m_usingWidget = nullptr; //!< widget which uses load indicator CLoadIndicator *m_loadIndicator = nullptr; //!< indicator itself