Add more explicit
This commit is contained in:
parent
7f0c023d3f
commit
d14d50a668
@ -87,7 +87,7 @@ class ColorScope : public QQuickItem
|
||||
|
||||
public:
|
||||
/// @cond INTERNAL_DOCS
|
||||
explicit ColorScope(QQuickItem *parent = nullptr, QObject *parentObject = 0);
|
||||
explicit ColorScope(QQuickItem *parent = nullptr, QObject *parentObject = nullptr);
|
||||
~ColorScope();
|
||||
|
||||
void setColorGroup(Plasma::Theme::ColorGroup group);
|
||||
|
@ -90,7 +90,7 @@ class SortFilterModel : public QSortFilterProxyModel
|
||||
friend class DataModel;
|
||||
|
||||
public:
|
||||
SortFilterModel(QObject *parent = nullptr);
|
||||
explicit SortFilterModel(QObject *parent = nullptr);
|
||||
~SortFilterModel();
|
||||
|
||||
void setModel(QAbstractItemModel *source);
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
|
||||
typedef QMap<QString, QVariant> Data;
|
||||
|
||||
DataSource(QObject *parent = nullptr);
|
||||
explicit DataSource(QObject *parent = nullptr);
|
||||
|
||||
void classBegin() Q_DECL_OVERRIDE;
|
||||
void componentComplete() Q_DECL_OVERRIDE;
|
||||
|
@ -68,7 +68,7 @@ class SvgItem : public QQuickItem
|
||||
public:
|
||||
/// @cond INTERNAL_DOCS
|
||||
|
||||
SvgItem(QQuickItem *parent = nullptr);
|
||||
explicit SvgItem(QQuickItem *parent = nullptr);
|
||||
~SvgItem();
|
||||
|
||||
void setElementId(const QString &elementID);
|
||||
|
@ -48,7 +48,7 @@ class FallbackComponent : public QObject
|
||||
Q_PROPERTY(QStringList candidates READ candidates WRITE setCandidates NOTIFY candidatesChanged)
|
||||
|
||||
public:
|
||||
FallbackComponent(QObject *parent = nullptr);
|
||||
explicit FallbackComponent(QObject *parent = nullptr);
|
||||
|
||||
/**
|
||||
* This method must be called after the the basePath and the candidates property
|
||||
|
@ -34,7 +34,7 @@ class EffectWatcher: public QObject, public QAbstractNativeEventFilter
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
EffectWatcher(const QString &property, QObject *parent = nullptr);
|
||||
explicit EffectWatcher(const QString &property, QObject *parent = nullptr);
|
||||
|
||||
protected:
|
||||
bool isEffectActive() const;
|
||||
|
@ -33,7 +33,7 @@ class StorageThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
StorageThread(QObject *parent = nullptr);
|
||||
explicit StorageThread(QObject *parent = nullptr);
|
||||
~StorageThread();
|
||||
|
||||
void run() Q_DECL_OVERRIDE;
|
||||
|
@ -37,7 +37,7 @@ class SharedSvgRenderer : public QSvgRenderer, public QSharedData
|
||||
public:
|
||||
typedef QExplicitlySharedDataPointer<SharedSvgRenderer> Ptr;
|
||||
|
||||
SharedSvgRenderer(QObject *parent = nullptr);
|
||||
explicit SharedSvgRenderer(QObject *parent = nullptr);
|
||||
SharedSvgRenderer(
|
||||
const QString &filename,
|
||||
const QString &styleSheet,
|
||||
|
@ -63,7 +63,7 @@ class ThemePrivate : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ThemePrivate(QObject *parent = nullptr);
|
||||
explicit ThemePrivate(QObject *parent = nullptr);
|
||||
~ThemePrivate();
|
||||
|
||||
KConfigGroup &config();
|
||||
|
@ -60,7 +60,7 @@ class PLASMA_EXPORT TimeTracker : QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TimeTracker(QObject* applet);
|
||||
explicit TimeTracker(QObject* applet);
|
||||
virtual ~TimeTracker();
|
||||
|
||||
private Q_SLOTS:
|
||||
|
@ -51,7 +51,7 @@ class WallpaperInterface : public QQuickItem
|
||||
Q_PROPERTY(KDeclarative::ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
|
||||
|
||||
public:
|
||||
WallpaperInterface(ContainmentInterface *parent = nullptr);
|
||||
explicit WallpaperInterface(ContainmentInterface *parent = nullptr);
|
||||
~WallpaperInterface();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user