Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit bf1081a8 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Fix all 'explicit constructor' krazy warnings

parent cef4d96c
......@@ -32,7 +32,7 @@ class DolphinPartBrowserExtension : public KParts::BrowserExtension
{
Q_OBJECT
public:
DolphinPartBrowserExtension( DolphinPart* part );
explicit DolphinPartBrowserExtension( DolphinPart* part );
void restoreState(QDataStream &stream) override;
void saveState(QDataStream &stream) override;
......@@ -52,7 +52,7 @@ class DolphinPartFileInfoExtension : public KParts::FileInfoExtension
Q_OBJECT
public:
DolphinPartFileInfoExtension(DolphinPart* part);
explicit DolphinPartFileInfoExtension(DolphinPart* part);
QueryModes supportedQueryModes() const override;
bool hasSelection() const override;
......@@ -68,7 +68,7 @@ class DolphinPartListingFilterExtension : public KParts::ListingFilterExtension
Q_OBJECT
public:
DolphinPartListingFilterExtension(DolphinPart* part);
explicit DolphinPartListingFilterExtension(DolphinPart* part);
FilterModes supportedFilterModes() const override;
bool supportsMultipleFilters(FilterMode mode) const override;
QVariant filter(FilterMode mode) const override;
......@@ -83,7 +83,7 @@ class DolphinPartListingNotificationExtension : public KParts::ListingNotificati
Q_OBJECT
public:
DolphinPartListingNotificationExtension(DolphinPart* part);
explicit DolphinPartListingNotificationExtension(DolphinPart* part);
NotificationEventTypes supportedNotificationEventTypes() const override;
public Q_SLOTS:
......
......@@ -41,7 +41,7 @@ class DOLPHIN_EXPORT KFileItemListView : public KStandardItemListView
Q_OBJECT
public:
KFileItemListView(QGraphicsWidget* parent = nullptr);
explicit KFileItemListView(QGraphicsWidget* parent = nullptr);
~KFileItemListView() override;
void setPreviewsShown(bool show);
......
......@@ -42,7 +42,7 @@ class DOLPHIN_EXPORT KItemListGroupHeader : public QGraphicsWidget
Q_OBJECT
public:
KItemListGroupHeader(QGraphicsWidget* parent = nullptr);
explicit KItemListGroupHeader(QGraphicsWidget* parent = nullptr);
~KItemListGroupHeader() override;
void setRole(const QByteArray& role);
......
......@@ -87,7 +87,7 @@ signals:
qreal currentWidth);
private:
KItemListHeader(KItemListView* listView);
explicit KItemListHeader(KItemListView* listView);
private:
KItemListView* m_view;
......
......@@ -51,7 +51,7 @@ public:
Toggle
};
KItemListSelectionManager(QObject* parent = nullptr);
explicit KItemListSelectionManager(QObject* parent = nullptr);
~KItemListSelectionManager() override;
void setCurrentItem(int current);
......
......@@ -67,7 +67,7 @@ class DOLPHIN_EXPORT KItemListView : public QGraphicsWidget
Q_PROPERTY(qreal itemOffset READ itemOffset WRITE setItemOffset)
public:
KItemListView(QGraphicsWidget* parent = nullptr);
explicit KItemListView(QGraphicsWidget* parent = nullptr);
~KItemListView() override;
/**
......
......@@ -55,7 +55,7 @@ class DOLPHIN_EXPORT KItemModelBase : public QObject
Q_OBJECT
public:
KItemModelBase(QObject* parent = nullptr);
explicit KItemModelBase(QObject* parent = nullptr);
explicit KItemModelBase(const QByteArray& sortRole, QObject* parent = nullptr);
~KItemModelBase() override;
......
......@@ -51,7 +51,7 @@ class KItemRangeList : public QList<KItemRange>
{
public:
KItemRangeList() : QList<KItemRange>() {}
KItemRangeList(const QList<KItemRange>& list) : QList<KItemRange>(list) {}
explicit KItemRangeList(const QList<KItemRange>& list) : QList<KItemRange>(list) {}
template<class Container>
static KItemRangeList fromSortedContainer(const Container& container);
......
......@@ -163,7 +163,7 @@ public:
{
}
const_iterator(const iterator& other) :
explicit const_iterator(const iterator& other) :
m_rangeIt(other.m_rangeIt),
m_offset(other.m_offset)
{
......
......@@ -32,7 +32,7 @@ class DOLPHIN_EXPORT KStandardItemListGroupHeader : public KItemListGroupHeader
Q_OBJECT
public:
KStandardItemListGroupHeader(QGraphicsWidget* parent = nullptr);
explicit KStandardItemListGroupHeader(QGraphicsWidget* parent = nullptr);
~KStandardItemListGroupHeader() override;
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr) override;
......
......@@ -52,7 +52,7 @@ public:
DetailsLayout
};
KStandardItemListView(QGraphicsWidget* parent = nullptr);
explicit KStandardItemListView(QGraphicsWidget* parent = nullptr);
~KStandardItemListView() override;
void setItemLayout(ItemLayout layout);
......
......@@ -34,7 +34,7 @@ class DOLPHIN_EXPORT KFileItemModelDirLister : public KDirLister
Q_OBJECT
public:
KFileItemModelDirLister(QObject* parent = nullptr);
explicit KFileItemModelDirLister(QObject* parent = nullptr);
~KFileItemModelDirLister() override;
signals:
......
......@@ -38,7 +38,7 @@ class DOLPHIN_EXPORT KItemListHeaderWidget : public QGraphicsWidget
Q_OBJECT
public:
KItemListHeaderWidget(QGraphicsWidget* parent = nullptr);
explicit KItemListHeaderWidget(QGraphicsWidget* parent = nullptr);
~KItemListHeaderWidget() override;
void setModel(KItemModelBase* model);
......
......@@ -41,7 +41,7 @@ class DOLPHIN_EXPORT KItemListKeyboardSearchManager : public QObject
public:
KItemListKeyboardSearchManager(QObject* parent = nullptr);
explicit KItemListKeyboardSearchManager(QObject* parent = nullptr);
~KItemListKeyboardSearchManager() override;
/**
......
......@@ -34,7 +34,7 @@ class DOLPHIN_EXPORT KItemListSelectionToggle : public QGraphicsWidget
Q_OBJECT
public:
KItemListSelectionToggle(QGraphicsItem* parent);
explicit KItemListSelectionToggle(QGraphicsItem* parent);
~KItemListSelectionToggle() override;
void setChecked(bool checked);
......
......@@ -34,7 +34,7 @@ class KItemListView;
class DOLPHIN_EXPORT KItemListSizeHintResolver
{
public:
KItemListSizeHintResolver(const KItemListView* itemListView);
explicit KItemListSizeHintResolver(const KItemListView* itemListView);
virtual ~KItemListSizeHintResolver();
QSizeF maxSizeHint();
QSizeF minSizeHint();
......
......@@ -48,7 +48,7 @@ public:
ResizeAnimation
};
KItemListViewAnimation(QObject* parent = nullptr);
explicit KItemListViewAnimation(QObject* parent = nullptr);
~KItemListViewAnimation() override;
void setScrollOrientation(Qt::Orientation orientation);
......
......@@ -50,7 +50,7 @@ class DOLPHIN_EXPORT KItemListViewLayouter : public QObject
Q_OBJECT
public:
KItemListViewLayouter(KItemListSizeHintResolver* sizeHintResolver, QObject* parent = nullptr);
explicit KItemListViewLayouter(KItemListSizeHintResolver* sizeHintResolver, QObject* parent = nullptr);
~KItemListViewLayouter() override;
void setScrollOrientation(Qt::Orientation orientation);
......
......@@ -35,7 +35,7 @@ class DOLPHIN_EXPORT MiddleClickActionEventFilter : public QObject
Q_OBJECT
public:
MiddleClickActionEventFilter(QObject *parent);
explicit MiddleClickActionEventFilter(QObject *parent);
~MiddleClickActionEventFilter() override;
signals:
......
......@@ -43,7 +43,7 @@ class PhononWidget : public QWidget
{
Q_OBJECT
public:
PhononWidget(QWidget *parent = nullptr);
explicit PhononWidget(QWidget *parent = nullptr);
void setUrl(const QUrl &url);
QUrl url() const;
......
......@@ -27,7 +27,7 @@ class PlacesItemListGroupHeader : public KStandardItemListGroupHeader
Q_OBJECT
public:
PlacesItemListGroupHeader(QGraphicsWidget* parent = nullptr);
explicit PlacesItemListGroupHeader(QGraphicsWidget* parent = nullptr);
~PlacesItemListGroupHeader() override;
protected:
......
......@@ -31,7 +31,7 @@ class ConfirmationsSettingsPage : public SettingsPageBase
Q_OBJECT
public:
ConfirmationsSettingsPage(QWidget* parent);
explicit ConfirmationsSettingsPage(QWidget* parent);
~ConfirmationsSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -34,7 +34,7 @@ class PreviewsSettingsPage : public SettingsPageBase
Q_OBJECT
public:
PreviewsSettingsPage(QWidget* parent);
explicit PreviewsSettingsPage(QWidget* parent);
~PreviewsSettingsPage() override;
/**
......
......@@ -31,7 +31,7 @@ class StatusBarSettingsPage : public SettingsPageBase
Q_OBJECT
public:
StatusBarSettingsPage(QWidget* parent);
explicit StatusBarSettingsPage(QWidget* parent);
~StatusBarSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -31,7 +31,7 @@ class NavigationSettingsPage : public SettingsPageBase
Q_OBJECT
public:
NavigationSettingsPage(QWidget* parent);
explicit NavigationSettingsPage(QWidget* parent);
~NavigationSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -35,7 +35,7 @@ class ServicesSettingsPage : public SettingsPageBase
Q_OBJECT
public:
ServicesSettingsPage(QWidget* parent);
explicit ServicesSettingsPage(QWidget* parent);
~ServicesSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -30,7 +30,7 @@ class TrashSettingsPage : public SettingsPageBase
Q_OBJECT
public:
TrashSettingsPage(QWidget* parent);
explicit TrashSettingsPage(QWidget* parent);
~TrashSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -40,7 +40,7 @@ public:
CustomFont = 1
};
DolphinFontRequester(QWidget* parent);
explicit DolphinFontRequester(QWidget* parent);
~DolphinFontRequester() override;
void setMode(Mode mode);
......
......@@ -36,7 +36,7 @@ public:
DetailsMode
};
ViewModeSettings(ViewMode mode);
explicit ViewModeSettings(ViewMode mode);
virtual ~ViewModeSettings();
void setIconSize(int size) const;
......
......@@ -36,7 +36,7 @@ class ViewSettingsPage : public SettingsPageBase
Q_OBJECT
public:
ViewSettingsPage(QWidget* parent);
explicit ViewSettingsPage(QWidget* parent);
~ViewSettingsPage() override;
/** @see SettingsPageBase::applySettings() */
......
......@@ -43,7 +43,7 @@ class DolphinStatusBar : public QWidget
Q_OBJECT
public:
DolphinStatusBar(QWidget* parent);
explicit DolphinStatusBar(QWidget* parent);
~DolphinStatusBar() override;
QString text() const;
......
......@@ -45,7 +45,7 @@ class DolphinFileMetaDataWidget : public QWidget
Q_OBJECT
public:
DolphinFileMetaDataWidget(QWidget* parent = nullptr);
explicit DolphinFileMetaDataWidget(QWidget* parent = nullptr);
~DolphinFileMetaDataWidget() override;
void setPreview(const QPixmap& pixmap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment