use nullptr instead of Q_NULLPTR (#2246)

This commit is contained in:
otakuto 2018-10-12 16:05:14 +09:00 committed by shun-iwasawa
parent c834f180d8
commit fb35734678
3 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@
class GLWidgetForHighDpi : public QOpenGLWidget, protected QOpenGLFunctions {
public:
GLWidgetForHighDpi(QWidget *parent = Q_NULLPTR,
GLWidgetForHighDpi(QWidget *parent = nullptr,
Qt::WindowFlags f = Qt::WindowFlags())
: QOpenGLWidget(parent, f) {}

View file

@ -24,7 +24,7 @@ class NewWordDialog : public QDialog {
QLineEdit *m_lineEdit;
public:
NewWordDialog(QWidget *parent = Q_NULLPTR);
NewWordDialog(QWidget *parent = nullptr);
QString getName();
};
@ -33,7 +33,7 @@ public:
class WordButton : public QPushButton {
Q_OBJECT
public:
WordButton(const QString &text, QWidget *parent = Q_NULLPTR);
WordButton(const QString &text, QWidget *parent = nullptr);
protected:
void contextMenuEvent(QContextMenuEvent *) override;
@ -54,7 +54,7 @@ class AddWordButton final : public WordButton {
int m_column;
public:
AddWordButton(const int col, QWidget *parent = Q_NULLPTR);
AddWordButton(const int col, QWidget *parent = nullptr);
protected slots:
void onClicked() override;

View file

@ -603,7 +603,7 @@ protected:
void mouseReleaseEvent(QMouseEvent *) override;
public:
ClickableLabel(const QString &text, QWidget *parent = Q_NULLPTR,
ClickableLabel(const QString &text, QWidget *parent = nullptr,
Qt::WindowFlags f = Qt::WindowFlags());
~ClickableLabel();