mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #485, Restricted<T>
This commit is contained in:
committed by
Mathew Sutcliffe
parent
18a907086d
commit
c36028ca9c
@@ -13,6 +13,7 @@
|
||||
#define BLACKGUI_STYLESHEETUTILITY_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackmisc/restricted.h"
|
||||
#include <QMap>
|
||||
#include <QObject>
|
||||
#include <QFont>
|
||||
@@ -29,9 +30,11 @@ namespace BlackGui
|
||||
class BLACKGUI_EXPORT CStyleSheetUtility : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class CGuiApplication;
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CStyleSheetUtility(BlackMisc::Restricted<CGuiApplication>, QObject *parent = nullptr);
|
||||
|
||||
//! Style for given file name
|
||||
QString style(const QString &fileName) const;
|
||||
|
||||
@@ -137,10 +140,6 @@ namespace BlackGui
|
||||
private:
|
||||
QMap<QString, QString> m_styleSheets; //!< filename, stylesheet
|
||||
QScopedPointer<QSettings> m_iniFile;
|
||||
|
||||
//! Constructor
|
||||
explicit CStyleSheetUtility(QObject *parent = nullptr);
|
||||
};
|
||||
|
||||
}
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user