summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/modelview/2_formatting/mymodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tutorials/modelview/2_formatting/mymodel.h')
-rw-r--r--examples/widgets/tutorials/modelview/2_formatting/mymodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/tutorials/modelview/2_formatting/mymodel.h b/examples/widgets/tutorials/modelview/2_formatting/mymodel.h
index 9c12f98ba9..e8ae673f62 100644
--- a/examples/widgets/tutorials/modelview/2_formatting/mymodel.h
+++ b/examples/widgets/tutorials/modelview/2_formatting/mymodel.h
@@ -57,8 +57,8 @@ class MyModel : public QAbstractTableModel
{
Q_OBJECT
public:
- MyModel(QObject *parent);
- int rowCount(const QModelIndex &parent = QModelIndex()) const override ;
+ MyModel(QObject *parent = nullptr);
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
};