summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/multiple/ax2.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/multiple/ax2.h')
-rw-r--r--examples/activeqt/multiple/ax2.h7
1 files changed, 2 insertions, 5 deletions
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]