diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2014-01-15 22:17:52 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-20 13:10:01 +0100 |
commit | b29f51357b4d18f33f5d522994aeff149737b358 (patch) | |
tree | 4c71185e39afc5a30b483b56cc1c96136196396f /examples/activeqt/multiple/ax2.h | |
parent | 6e55d96d899b78d17de022f2e1d93f210ff7a1d0 (diff) |
whitespace fixes
expand tabs, fix indentation, remove trailing whitespace.
Change-Id: Ibec1bbad9e8faff81671ce9d1c7bb4fb9b340bb9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'examples/activeqt/multiple/ax2.h')
-rw-r--r-- | examples/activeqt/multiple/ax2.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/activeqt/multiple/ax2.h b/examples/activeqt/multiple/ax2.h index 5efeee9..239e93e 100644 --- a/examples/activeqt/multiple/ax2.h +++ b/examples/activeqt/multiple/ax2.h @@ -58,31 +58,31 @@ class QAxWidget2 : public QWidget Q_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth ) public: QAxWidget2(QWidget *parent = 0) - : QWidget(parent), line_width( 1 ) + : QWidget(parent), line_width( 1 ) { } int lineWidth() const { - return line_width; + return line_width; } void setLineWidth( int lw ) { - line_width = lw; - repaint(); + line_width = lw; + repaint(); } protected: void paintEvent( QPaintEvent *e ) { - QPainter paint( this ); - QPen pen = paint.pen(); - pen.setWidth( line_width ); - paint.setPen( pen ); + QPainter paint( this ); + QPen pen = paint.pen(); + pen.setWidth( line_width ); + paint.setPen( pen ); - QRect r = rect(); - r.adjust( 10, 10, -10, -10 ); - paint.drawEllipse( r ); + QRect r = rect(); + r.adjust( 10, 10, -10, -10 ); + paint.drawEllipse( r ); } private: |