Commit 64e6a654 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use nullptr

parent d25b9622
......@@ -36,7 +36,7 @@ class MILOU_EXPORT DragHelper : public QObject
Q_PROPERTY(int dragIconSize READ dragIconSize WRITE setDragIconSize NOTIFY dragIconSizeChanged)
public:
DragHelper(QObject *parent = 0);
DragHelper(QObject *parent = nullptr);
~DragHelper() override;
int dragIconSize() const;
......
......@@ -36,8 +36,8 @@ using namespace Milou;
Preview::Preview(QQuickItem* parent)
: QQuickItem(parent)
, m_loaded(false)
, m_declarativeItem(0)
, m_filePlugin(0)
, m_declarativeItem(nullptr)
, m_filePlugin(nullptr)
{
//setFlag(QGraphicsItem::ItemHasNoContents, false);
......@@ -118,7 +118,7 @@ void Preview::clear()
{
if (m_declarativeItem) {
m_declarativeItem->deleteLater();
m_declarativeItem = 0;
m_declarativeItem = nullptr;
}
}
......
......@@ -39,7 +39,7 @@ class MILOU_EXPORT Preview : public QQuickItem
Q_PROPERTY(bool loaded READ loaded)
public:
Preview(QQuickItem* parent = 0);
Preview(QQuickItem* parent = nullptr);
~Preview() override;
QString mimetype() const;
......
......@@ -29,7 +29,7 @@ using namespace Milou;
PreviewPlugin::PreviewPlugin(QObject* parent)
: QObject(parent)
, m_context(0)
, m_context(nullptr)
{
}
......
......@@ -84,7 +84,7 @@ Plasma::QueryMatch SourcesModel::fetchMatch(int row) const
}
}
return Plasma::QueryMatch(0);
return Plasma::QueryMatch(nullptr);
}
QVariant SourcesModel::data(const QModelIndex& index, int role) const
......@@ -371,7 +371,7 @@ bool SourcesModel::run(int index)
if (!info.isEmpty()) {
// FIXME: pretty lame way to decide if this is a query prototype
// Copied from kde4 krunner interface.cpp
if (match.runner() == 0) {
if (match.runner() == nullptr) {
// lame way of checking to see if this is a Help Button generated match!
int index = info.indexOf(QStringLiteral(":q:"));
......
......@@ -44,7 +44,7 @@ class MILOU_EXPORT SourcesModel : public QAbstractListModel
Q_PROPERTY(QIcon runnerIcon READ runnerIcon NOTIFY runnerChanged)
public:
explicit SourcesModel(QObject* parent = 0);
explicit SourcesModel(QObject* parent = nullptr);
~SourcesModel() override;
enum Roles {
......
......@@ -52,7 +52,7 @@ class ModelTest : public QObject
Q_OBJECT
public:
ModelTest( QAbstractItemModel *model, QObject *parent = 0 );
ModelTest( QAbstractItemModel *model, QObject *parent = nullptr );
private Q_SLOTS:
void nonDestructiveBasicTest();
......
......@@ -38,7 +38,7 @@ public slots:
void main();
public:
explicit TestObject(QWidget* parent = 0, Qt::WindowFlags f = 0)
explicit TestObject(QWidget* parent = nullptr, Qt::WindowFlags f = {})
: QWidget(parent, f)
{
QTimer::singleShot(0, this, SLOT(main()));
......
Supports Markdown
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