summaryrefslogtreecommitdiffstats
path: root/examples/activeqt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt')
-rw-r--r--examples/activeqt/multiple/ax1.h4
-rw-r--r--examples/activeqt/multiple/ax2.h7
2 files changed, 4 insertions, 7 deletions
diff --git a/examples/activeqt/multiple/ax1.h b/examples/activeqt/multiple/ax1.h
index cbcc9e8..ba2a7f5 100644
--- a/examples/activeqt/multiple/ax1.h
+++ b/examples/activeqt/multiple/ax1.h
@@ -65,7 +65,7 @@ class QAxWidget1 : public QWidget
Q_PROPERTY(QColor fillColor READ fillColor WRITE setFillColor)
public:
explicit QAxWidget1(QWidget *parent = nullptr)
- : QWidget(parent), m_fillColor(Qt::red)
+ : QWidget(parent)
{
}
@@ -90,7 +90,7 @@ protected:
}
private:
- QColor m_fillColor;
+ QColor m_fillColor = Qt::red;
};
//! [0]
diff --git a/examples/activeqt/multiple/ax2.h b/examples/activeqt/multiple/ax2.h
index 1e1b312..13e011b 100644
--- a/examples/activeqt/multiple/ax2.h
+++ b/examples/activeqt/multiple/ax2.h
@@ -67,10 +67,7 @@ class QAxWidget2 : public QWidget
Q_PROPERTY(int lineWidth READ lineWidth WRITE setLineWidth)
public:
- explicit QAxWidget2(QWidget *parent = nullptr)
- : QWidget(parent), m_lineWidth(1)
- {
- }
+ using QWidget::QWidget;
int lineWidth() const
{
@@ -97,7 +94,7 @@ protected:
}
private:
- int m_lineWidth;
+ int m_lineWidth = 1;
};
//! [0]