Commit 016209c3 authored by Kurt Hindenburg's avatar Kurt Hindenburg

modernize use nullptr

parent bfd05ef4
......@@ -29,7 +29,7 @@ class FileLocationSettings : public QWidget, private Ui::FileLocationSettings
Q_OBJECT
public:
explicit FileLocationSettings(QWidget *aParent = 0);
explicit FileLocationSettings(QWidget *aParent = nullptr);
~FileLocationSettings() Q_DECL_OVERRIDE;
};
}
......
......@@ -29,7 +29,7 @@ class GeneralSettings : public QWidget, private Ui::GeneralSettings
Q_OBJECT
public:
explicit GeneralSettings(QWidget *aParent = 0);
explicit GeneralSettings(QWidget *aParent = nullptr);
~GeneralSettings() Q_DECL_OVERRIDE;
public Q_SLOTS:
......
......@@ -29,7 +29,7 @@ class PartInfoSettings : public QWidget, private Ui::PartInfoSettings
Q_OBJECT
public:
explicit PartInfoSettings(QWidget *parent = 0);
explicit PartInfoSettings(QWidget *parent = nullptr);
~PartInfoSettings() Q_DECL_OVERRIDE;
};
}
......
......@@ -319,7 +319,7 @@ void ProfileSettings::editSelected()
foreach (Session* session, SessionManager::instance()->sessions()) {
foreach (TerminalDisplay* terminal, session->views()) {
// Searching for opened profiles
if (terminal->sessionController()->profileDialogPointer() != NULL) {
if (terminal->sessionController()->profileDialogPointer() != nullptr) {
foreach (const Profile::Ptr & profile, profiles) {
if (profile->name() == terminal->sessionController()->profileDialogPointer()->lookupProfile()->name()
&& terminal->sessionController()->profileDialogPointer()->isVisible()) {
......@@ -403,7 +403,7 @@ void StyledBackgroundPainter::drawBackground(QPainter* painter, const QStyleOpti
const QModelIndex&)
{
const QStyleOptionViewItemV3* v3option = qstyleoption_cast<const QStyleOptionViewItemV3*>(&option);
const QWidget* widget = v3option != nullptr ? v3option->widget : 0;
const QWidget* widget = v3option != nullptr ? v3option->widget : nullptr;
QStyle* style = widget != nullptr ? widget->style() : QApplication::style();
......
......@@ -50,7 +50,7 @@ class ProfileSettings : public QWidget, private Ui::ProfileSettings
public:
/** Constructs a new profile type with the specified parent. */
explicit ProfileSettings(QWidget *parent = 0);
explicit ProfileSettings(QWidget *parent = nullptr);
~ProfileSettings() Q_DECL_OVERRIDE;
/**
......@@ -122,7 +122,7 @@ class FavoriteItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit FavoriteItemDelegate(QObject *parent = 0);
explicit FavoriteItemDelegate(QObject *parent = nullptr);
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
const QModelIndex &index) Q_DECL_OVERRIDE;
......@@ -135,7 +135,7 @@ class ShortcutItemDelegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit ShortcutItemDelegate(QObject *parent = 0);
explicit ShortcutItemDelegate(QObject *parent = nullptr);
void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index) const Q_DECL_OVERRIDE;
......
......@@ -29,7 +29,7 @@ class TabBarSettings : public QWidget, private Ui::TabBarSettings
Q_OBJECT
public:
explicit TabBarSettings(QWidget *parent = 0);
explicit TabBarSettings(QWidget *parent = nullptr);
~TabBarSettings() Q_DECL_OVERRIDE;
};
}
......
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