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 bc9d0749 authored by Laurent Montel's avatar Laurent Montel 😁

Fix pedentic + use nullptr + override

parent 482071a6
......@@ -92,7 +92,7 @@ AbstractModel *AbstractModel::modelForRow(int row)
{
Q_UNUSED(row)
return 0;
return nullptr;
}
int AbstractModel::rowForModel(AbstractModel *model)
......
......@@ -36,7 +36,7 @@ class AbstractModel : public QAbstractListModel
Q_PROPERTY(AbstractModel* favoritesModel READ favoritesModel WRITE setFavoritesModel NOTIFY favoritesModelChanged)
public:
explicit AbstractModel(QObject *parent = 0);
explicit AbstractModel(QObject *parent = nullptr);
~AbstractModel();
QHash<int, QByteArray> roleNames() const override;
......
......@@ -50,8 +50,8 @@ class AppsModel : public AbstractModel, public QQmlParserStatus
public:
explicit AppsModel(const QString &entryPath = QString(), bool paginate = false, int pageSize = 24,
bool flat = false, bool sorted = true, bool separators = true, QObject *parent = 0);
explicit AppsModel(const QList<AbstractEntry *> entryList, bool deleteEntriesOnDestruction, QObject *parent = 0);
bool flat = false, bool sorted = true, bool separators = true, QObject *parent = nullptr);
explicit AppsModel(const QList<AbstractEntry *> entryList, bool deleteEntriesOnDestruction, QObject *parent = nullptr);
~AppsModel();
QString description() const override;
......
......@@ -40,7 +40,7 @@ class FilteredPlacesModel : public QSortFilterProxyModel
Q_OBJECT
public:
FilteredPlacesModel(QObject *parent = 0);
FilteredPlacesModel(QObject *parent = nullptr);
~FilteredPlacesModel();
QUrl url(const QModelIndex &index) const;
......@@ -60,7 +60,7 @@ class RunCommandModel : public AbstractModel
Q_OBJECT
public:
RunCommandModel(QObject *parent = 0);
RunCommandModel(QObject *parent = nullptr);
~RunCommandModel();
QString description() const override;
......@@ -81,7 +81,7 @@ class ComputerModel : public ForwardingModel
Q_PROPERTY(QStringList systemApplications READ systemApplications WRITE setSystemApplications NOTIFY systemApplicationsChanged)
public:
explicit ComputerModel(QObject *parent = 0);
explicit ComputerModel(QObject *parent = nullptr);
~ComputerModel();
QString description() const override;
......
......@@ -41,7 +41,7 @@ class ContainmentInterface : public QObject
Q_ENUM(Target)
ContainmentInterface(QObject *parent = 0);
ContainmentInterface(QObject *parent = nullptr);
~ContainmentInterface();
static Q_INVOKABLE bool mayAddLauncher(QObject *appletInterface, Target target, const QString &entryPath = QString());
......
......@@ -32,7 +32,7 @@ class DragHelper : public QObject
Q_PROPERTY(int dragIconSize READ dragIconSize WRITE setDragIconSize NOTIFY dragIconSizeChanged)
public:
DragHelper(QObject *parent = 0);
DragHelper(QObject *parent = nullptr);
~DragHelper();
int dragIconSize() const;
......
......@@ -28,10 +28,10 @@ class ForwardingModel : public AbstractModel
{
Q_OBJECT
Q_PROPERTY(QAbstractItemModel* sourceModel READ sourceModel WRITE setSourceModel NOTIFY sourceModelChanged);
Q_PROPERTY(QAbstractItemModel* sourceModel READ sourceModel WRITE setSourceModel NOTIFY sourceModelChanged)
public:
explicit ForwardingModel(QObject *parent = 0);
explicit ForwardingModel(QObject *parent = nullptr);
~ForwardingModel();
QString description() const override;
......
......@@ -27,7 +27,7 @@ class FunnelModel : public ForwardingModel
Q_OBJECT
public:
explicit FunnelModel(QObject *parent = 0);
explicit FunnelModel(QObject *parent = nullptr);
~FunnelModel();
void setSourceModel(QAbstractItemModel *model) override;
......
......@@ -51,7 +51,7 @@ class KAStatsFavoritesModel : public PlaceholderModel
Q_PROPERTY(QObject* activities READ activities CONSTANT)
public:
explicit KAStatsFavoritesModel(QObject *parent = 0);
explicit KAStatsFavoritesModel(QObject *parent = nullptr);
~KAStatsFavoritesModel();
QString description() const;
......
......@@ -27,7 +27,7 @@ class MenuEntryEditor : public QObject
Q_OBJECT
public:
MenuEntryEditor(QObject *parent = 0);
MenuEntryEditor(QObject *parent = nullptr);
~MenuEntryEditor();
bool canEdit(const QString &entryPath) const;
......
......@@ -34,7 +34,7 @@ class PlaceholderModel : public AbstractModel
Q_PROPERTY(int dropPlaceholderIndex READ dropPlaceholderIndex WRITE setDropPlaceholderIndex NOTIFY dropPlaceholderIndexChanged)
public:
explicit PlaceholderModel(QObject *parent = 0);
explicit PlaceholderModel(QObject *parent = nullptr);
~PlaceholderModel();
QString description() const;
......
......@@ -27,7 +27,7 @@ class ProcessRunner : public QObject
Q_OBJECT
public:
ProcessRunner(QObject *parent = 0);
ProcessRunner(QObject *parent = nullptr);
~ProcessRunner();
Q_INVOKABLE void runMenuEditor();
......
......@@ -32,7 +32,7 @@ class RecentContactsModel : public ForwardingModel
Q_OBJECT
public:
explicit RecentContactsModel(QObject *parent = 0);
explicit RecentContactsModel(QObject *parent = nullptr);
~RecentContactsModel();
QString description() const override;
......
......@@ -68,7 +68,7 @@ class RecentUsageModel : public ForwardingModel, public QQmlParserStatus
enum Ordering { Recent, Popular };
explicit RecentUsageModel(
QObject *parent = 0,
QObject *parent = nullptr,
IncludeUsage usage = AppsAndDocs,
int ordering = Recent);
~RecentUsageModel();
......
......@@ -60,7 +60,7 @@ class RootModel : public AppsModel
Q_PROPERTY(bool showPowerSession READ showPowerSession WRITE setShowPowerSession NOTIFY showPowerSessionChanged)
public:
explicit RootModel(QObject *parent = 0);
explicit RootModel(QObject *parent = nullptr);
~RootModel();
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -37,7 +37,7 @@ class RunnerMatchesModel : public AbstractModel
public:
explicit RunnerMatchesModel(const QString &runnerId, const QString &name,
Plasma::RunnerManager *manager, QObject *parent = 0);
Plasma::RunnerManager *manager, QObject *parent = nullptr);
QString description() const override;
......
......@@ -42,13 +42,13 @@ class RunnerModel : public QAbstractListModel
Q_PROPERTY(int count READ count NOTIFY countChanged)
Q_PROPERTY(AbstractModel* favoritesModel READ favoritesModel WRITE setFavoritesModel NOTIFY favoritesModelChanged)
Q_PROPERTY(QObject* appletInterface READ appletInterface WRITE setAppletInterface NOTIFY appletInterfaceChanged)
Q_PROPERTY(QStringList runners READ runners WRITE setRunners NOTIFY runnersChanged);
Q_PROPERTY(QString query READ query WRITE setQuery NOTIFY queryChanged);
Q_PROPERTY(QStringList runners READ runners WRITE setRunners NOTIFY runnersChanged)
Q_PROPERTY(QString query READ query WRITE setQuery NOTIFY queryChanged)
Q_PROPERTY(bool mergeResults READ mergeResults WRITE setMergeResults NOTIFY mergeResultsChanged)
Q_PROPERTY(bool deleteWhenEmpty READ deleteWhenEmpty WRITE setDeleteWhenEmpty NOTIFY deleteWhenEmptyChanged)
public:
explicit RunnerModel(QObject *parent = 0);
explicit RunnerModel(QObject *parent = nullptr);
~RunnerModel();
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
......
......@@ -36,7 +36,7 @@ class SimpleFavoritesModel : public AbstractModel
Q_PROPERTY(int dropPlaceholderIndex READ dropPlaceholderIndex WRITE setDropPlaceholderIndex NOTIFY dropPlaceholderIndexChanged)
public:
explicit SimpleFavoritesModel(QObject *parent = 0);
explicit SimpleFavoritesModel(QObject *parent = nullptr);
~SimpleFavoritesModel();
QString description() const override;
......
......@@ -33,7 +33,7 @@ class SubMenu : public PlasmaQuick::Dialog
Q_PROPERTY(bool facingLeft READ facingLeft NOTIFY facingLeftChanged)
public:
SubMenu(QQuickItem *parent = 0);
SubMenu(QQuickItem *parent = nullptr);
~SubMenu();
Q_INVOKABLE QRect availableScreenRectForItem(QQuickItem *item) const;
......
......@@ -29,7 +29,7 @@ class SystemModel : public AbstractModel
Q_OBJECT
public:
explicit SystemModel(QObject *parent = 0);
explicit SystemModel(QObject *parent = nullptr);
~SystemModel();
QString description() const override;
......
......@@ -27,7 +27,7 @@ class SystemSettings : public QObject
Q_OBJECT
public:
SystemSettings(QObject *parent = 0);
SystemSettings(QObject *parent = nullptr);
~SystemSettings();
Q_INVOKABLE QString picturesLocation() const;
......
......@@ -30,7 +30,7 @@ class WheelInterceptor : public QQuickItem
Q_PROPERTY(QQuickItem* destination READ destination WRITE setDestination NOTIFY destinationChanged)
public:
WheelInterceptor(QQuickItem *parent = 0);
WheelInterceptor(QQuickItem *parent = nullptr);
~WheelInterceptor();
QQuickItem *destination() const;
......
......@@ -1258,7 +1258,7 @@ int main(int argc, char *argv [])
KDE_signal(SIGINT, signalhandler);
KDE_signal(SIGHUP, signalhandler);
const char *p = qgetenv("DISPLAY");
const char *p = qgetenv("DISPLAY").constData();
if (p) display_name = String(p);
if (!initialize_panel_agent(config_name, display_name, should_resident)) {
......
......@@ -28,7 +28,7 @@ class Screen : public QObject
{
Q_OBJECT
public:
Screen(QObject* parent = 0);
Screen(QObject* parent = nullptr);
~Screen();
Q_INVOKABLE QRect geometryForPoint(int x, int y);
......
......@@ -56,7 +56,7 @@ class Backend : public QObject
Q_ENUM(MiddleClickAction);
Backend(QObject *parent = 0);
Backend(QObject *parent = nullptr);
~Backend();
QQuickItem *taskManagerItem() const;
......
......@@ -35,7 +35,7 @@ class PreviewWidget : public QQuickPaintedItem
public:
PreviewWidget(QQuickItem *parent = 0);
PreviewWidget(QQuickItem *parent = nullptr);
~PreviewWidget();
void setTheme(const CursorTheme *theme, const int size);
......
......@@ -36,7 +36,7 @@ class SortProxyModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
SortProxyModel(QObject *parent = 0) : QSortFilterProxyModel(parent) {}
SortProxyModel(QObject *parent = nullptr) : QSortFilterProxyModel(parent) {}
~SortProxyModel() {}
QHash<int, QByteArray> roleNames() const;
inline const CursorTheme *theme(const QModelIndex &index) const;
......
......@@ -60,14 +60,14 @@ class CursorThemeModel : public QAbstractTableModel
Q_OBJECT
public:
CursorThemeModel(QObject *parent = 0);
~CursorThemeModel();
QHash<int, QByteArray> roleNames() const;
explicit CursorThemeModel(QObject *parent = nullptr);
~CursorThemeModel() override;
QHash<int, QByteArray> roleNames() const override;
inline int columnCount(const QModelIndex &parent = QModelIndex()) const;
inline int rowCount(const QModelIndex &parent = QModelIndex()) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
QVariant data(const QModelIndex &index, int role) const;
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
QVariant data(const QModelIndex &index, int role) const override;
void sort(int column, Qt::SortOrder order = Qt::AscendingOrder) override;
/// Returns the CursorTheme at @p index.
const CursorTheme *theme(const QModelIndex &index);
......
......@@ -39,9 +39,9 @@ class FontAASettings : public QObject
Q_OBJECT
Q_PROPERTY(QAbstractItemModel *subPixelOptionsModel READ subPixelOptionsModel CONSTANT)
Q_PROPERTY(int subPixelCurrentIndex READ subPixelCurrentIndex WRITE setSubPixelCurrentIndex NOTIFY subPixelCurrentIndexChanged);
Q_PROPERTY(int subPixelCurrentIndex READ subPixelCurrentIndex WRITE setSubPixelCurrentIndex NOTIFY subPixelCurrentIndexChanged)
Q_PROPERTY(QAbstractItemModel *hintingOptionsModel READ hintingOptionsModel CONSTANT)
Q_PROPERTY(int hintingCurrentIndex READ hintingCurrentIndex WRITE setHintingCurrentIndex NOTIFY hintingCurrentIndexChanged);
Q_PROPERTY(int hintingCurrentIndex READ hintingCurrentIndex WRITE setHintingCurrentIndex NOTIFY hintingCurrentIndexChanged)
Q_PROPERTY(bool exclude READ exclude WRITE setExclude NOTIFY excludeChanged)
Q_PROPERTY(int excludeTo READ excludeTo WRITE setExcludeTo NOTIFY excludeToChanged)
......
......@@ -36,7 +36,7 @@ class KCMFormats : public KCModule
Q_OBJECT
public:
explicit KCMFormats(QWidget *parent = 0, const QVariantList &list = QVariantList());
explicit KCMFormats(QWidget *parent = nullptr, const QVariantList &list = QVariantList());
~KCMFormats();
void load() override;
......
......@@ -34,7 +34,7 @@ class Joystick: public KCModule
Q_OBJECT
public:
explicit Joystick(QWidget *parent = 0, const QVariantList &list = QVariantList());
explicit Joystick(QWidget *parent = nullptr, const QVariantList &list = QVariantList());
void load() override;
void defaults() override;
......
......@@ -41,7 +41,7 @@ class JoyWidget : public QWidget
Q_OBJECT
public:
JoyWidget(QWidget *parent = 0);
JoyWidget(QWidget *parent = nullptr);
~JoyWidget();
......
......@@ -33,7 +33,7 @@ class PosWidget : public QWidget
Q_OBJECT
public:
PosWidget(QWidget *parent = 0);
PosWidget(QWidget *parent = nullptr);
void changeX(int x);
void changeY(int y);
......
......@@ -35,7 +35,7 @@ class LayoutsTableModel : public QAbstractTableModel
Q_OBJECT
public:
LayoutsTableModel(Rules* rules, Flags *flags, KeyboardConfig* keyboardConfig, QObject *parent = 0);
LayoutsTableModel(Rules* rules, Flags *flags, KeyboardConfig* keyboardConfig, QObject *parent = nullptr);
int columnCount(const QModelIndex&) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
......@@ -71,7 +71,7 @@ class LabelEditDelegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit LabelEditDelegate(const KeyboardConfig* keyboardConfig, QObject *parent = 0);
explicit LabelEditDelegate(const KeyboardConfig* keyboardConfig, QObject *parent = nullptr);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
......@@ -90,7 +90,7 @@ class VariantComboDelegate : public QStyledItemDelegate
Q_OBJECT
public:
VariantComboDelegate(const KeyboardConfig* keyboardConfig, const Rules* rules, QObject *parent = 0);
VariantComboDelegate(const KeyboardConfig* keyboardConfig, const Rules* rules, QObject *parent = nullptr);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
......@@ -112,7 +112,7 @@ class KKeySequenceWidgetDelegate : public QStyledItemDelegate
Q_OBJECT
public:
KKeySequenceWidgetDelegate(const KeyboardConfig* keyboardConfig_, QObject *parent = 0);
KKeySequenceWidgetDelegate(const KeyboardConfig* keyboardConfig_, QObject *parent = nullptr);
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
const QModelIndex &index) const override;
......
......@@ -63,7 +63,7 @@ protected:
bool event(QEvent *event) override;
public:
explicit KbPreviewFrame(QWidget *parent = 0);
explicit KbPreviewFrame(QWidget *parent = nullptr);
~KbPreviewFrame() override;
void paintEvent(QPaintEvent *event) override;
void generateKeyboardLayout(const QString &layout, const QString &layoutVariant, const QString &model);
......
......@@ -31,7 +31,7 @@ class SelectSchemeDialog : public QDialog
{
Q_OBJECT
public:
SelectSchemeDialog(QWidget *parent = 0);
SelectSchemeDialog(QWidget *parent = nullptr);
~SelectSchemeDialog();
QUrl selectedScheme() const;
......
......@@ -36,7 +36,7 @@ public:
{ return "org.kde.fontinst"; }
public:
OrgKdeFontinstInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
OrgKdeFontinstInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);
~OrgKdeFontinstInterface();
......
......@@ -179,7 +179,7 @@ void CDuplicatesDialog::scanFinished()
top->setFont(COL_FILE, boldFont);
}
QTreeWidgetItem *item=0L;
QTreeWidgetItem *item= nullptr;
for(int i=0; (item=itsView->topLevelItem(i)); ++i)
item->setExpanded(true);
......
......@@ -842,7 +842,7 @@ CGroupListView::CGroupListView(QWidget *parent, CGroupList *model)
this, SIGNAL(print()));
}
else
itsPrintAct=0L;
itsPrintAct= nullptr;
itsMenu->addSeparator();
itsExportAct=itsMenu->addAction(QIcon::fromTheme("document-export"), i18n("Export..."),
this, SIGNAL(zip()));
......
......@@ -106,7 +106,7 @@ class CGroupList : public QAbstractItemModel
public:
CGroupList(QWidget *parent = 0);
CGroupList(QWidget *parent = nullptr);
~CGroupList();
QVariant data(const QModelIndex &index, int role) const override;
......
......@@ -204,7 +204,7 @@ CJobRunner::CJobRunner(QWidget *parent, int xid)
itsStack->insertWidget(PAGE_CANCEL, page);
if(KSharedConfig::openConfig(KFI_UI_CFG_FILE)->group(CFG_GROUP).readEntry(CFG_DONT_SHOW_FINISHED_MSG, false))
itsDontShowFinishedMsg=0L;
itsDontShowFinishedMsg= nullptr;
else
{
page=new QFrame(itsStack);
......@@ -383,7 +383,7 @@ int CJobRunner::exec(ECommand cmd, const ItemList &urls, bool destIsSystem)
if(itsTempDir)
{
delete itsTempDir;
itsTempDir=0L;
itsTempDir= nullptr;
}
return rv;
}
......
......@@ -37,7 +37,7 @@
namespace KFI
{
static CFcEngine * theFcEngine=0L;
static CFcEngine * theFcEngine= nullptr;
CPreviewList::CPreviewList(QObject *parent)
: QAbstractItemModel(parent)
......
......@@ -60,7 +60,7 @@ class CPreviewList : public QAbstractItemModel
public:
CPreviewList(QObject *parent = 0);
CPreviewList(QObject *parent = nullptr);
virtual ~CPreviewList() { clear(); }
QVariant data(const QModelIndex &index, int role) const override;
......
......@@ -136,7 +136,7 @@ static void closeFont(XftFont *&font)
{
if(font)
XftFontClose(QX11Info::display(), font);
font=0L;
font= nullptr;
}
class CFcEngine::Xft
......@@ -207,9 +207,9 @@ class CFcEngine::Xft
bool drawGlyph(XftFont *xftFont, FT_UInt i, int &x, int &y, int w, int h,
int fontHeight,bool oneLine, QRect &r) const;
bool drawAllGlyphs(XftFont *xftFont, int fontHeight, int &x, int &y, int w, int h,
bool oneLine=false, int max=-1, QRect *used=0L) const;
bool oneLine=false, int max=-1, QRect *used= nullptr) const;
bool drawAllChars(XftFont *xftFont, int fontHeight, int &x, int &y, int w, int h,
bool oneLine=false, int max=-1, QRect *used=0L) const;
bool oneLine=false, int max=-1, QRect *used= nullptr) const;
QImage toImage(int w, int h) const;
private:
......@@ -223,7 +223,7 @@ class CFcEngine::Xft
CFcEngine::Xft::Xft()
{
itsDraw=0L;
itsDraw= nullptr;
itsTxtColor.color.alpha=0x0000;
init(Qt::black, Qt::white, 64, 64);
}
......@@ -234,7 +234,7 @@ CFcEngine::Xft::~Xft()
if(itsDraw)
{
XftDrawDestroy(itsDraw);
itsDraw=0L;
itsDraw= nullptr;
}
}
......
......@@ -103,7 +103,7 @@ namespace Misc
{
return folder+file[0].toLower()+'/';
}
extern Q_DECL_EXPORT QString app(const QString &name, const char *path=0L);
extern Q_DECL_EXPORT QString app(const QString &name, const char *path= nullptr);
}
}
......
......@@ -32,7 +32,7 @@ class LaunchFeedback : public KQuickAddons::ConfigModule
Q_PROPERTY(int notificationTimeout READ notificationTimeout WRITE setNotificationTimeout NOTIFY notificationTimeoutChanged)
public:
explicit LaunchFeedback(QObject* parent = 0, const QVariantList &list = QVariantList());
explicit LaunchFeedback(QObject* parent = nullptr, const QVariantList &list = QVariantList());
~LaunchFeedback() override;
int busyCursorCurrentIndex() const;
......
......@@ -33,7 +33,7 @@ class KWinWaylandBackend : public InputBackend
Q_PROPERTY(int deviceCount READ deviceCount CONSTANT)
public:
explicit KWinWaylandBackend(QObject *parent = 0);
explicit KWinWaylandBackend(QObject *parent = nullptr);
~KWinWaylandBackend();
bool applyConfig() override;
......
......@@ -30,7 +30,7 @@ class X11LibinputBackend : public X11Backend
Q_PROPERTY(int deviceCount READ deviceCount CONSTANT)
public:
explicit X11LibinputBackend(QObject *parent = 0);
explicit X11LibinputBackend(QObject *parent = nullptr);
~X11LibinputBackend() = default;
void kcmInit() override;
......
......@@ -51,7 +51,7 @@ class BackendSelection : public QWidget, private Ui::BackendSelection
{
Q_OBJECT
public:
explicit BackendSelection(QWidget *parent = 0);
explicit BackendSelection(QWidget *parent = nullptr);
void load();
void save();
......
......@@ -39,7 +39,7 @@ class DevicePreference : public QWidget, private Ui::DevicePreference
{
Q_OBJECT
public:
explicit DevicePreference(QWidget *parent = 0);
explicit DevicePreference(QWidget *parent = nullptr);
~DevicePreference() override;
void load();
......
......@@ -35,7 +35,7 @@ class ActionItem: public QObject
Q_OBJECT
public:
ActionItem(const QString& pathToDesktop, const QString& action, QObject *parent = 0);
ActionItem(const QString& pathToDesktop, const QString& action, QObject *parent = nullptr);
~ActionItem();
bool isUserSupplied() const;
......
......@@ -29,7 +29,7 @@ class ActionModel : public QAbstractTableModel
Q_OBJECT
public:
explicit ActionModel( QObject *parent = 0 );
explicit ActionModel( QObject *parent = nullptr );
~ActionModel();
QVariant data( const QModelIndex &index, int role ) const override;
......
......@@ -31,7 +31,7 @@ class PredicateModel : public QAbstractItemModel
Q_OBJECT
public:
explicit PredicateModel( PredicateItem * menuRoot, QObject *parent = 0 );
explicit PredicateModel( PredicateItem * menuRoot, QObject *parent = nullptr );
~PredicateModel();
QVariant data( const QModelIndex &index, int role ) const override;
......
......@@ -109,7 +109,7 @@ extern "C"
class StylePreview : public QWidget, public Ui::StylePreview
{
public:
StylePreview(QWidget *parent = 0)
StylePreview(QWidget *parent = nullptr)
: QWidget(parent)
{
setupUi(this);
......
......@@ -38,7 +38,7 @@ class TouchpadJob : public Plasma::ServiceJob
public:
TouchpadJob(OrgKdeTouchpadInterface *daemon,
const QString &destination, const QString &operation,
const QMap<QString, QVariant> &parameters, QObject *parent = 0)
const QMap<QString, QVariant> &parameters, QObject *parent = nullptr)
: Plasma::ServiceJob(destination, operation, parameters, parent),
m_daemon(daemon)
{
......
......@@ -27,7 +27,7 @@ class TouchpadService : public Plasma::Service
Q_OBJECT