From 297dcaaef5741dac5e10c886db1755829e4ed082 Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Fri, 2 Oct 2009 11:11:18 +1000 Subject: Use void return type for setter methods. --- examples/declarative/extending/extended/lineedit.cpp | 8 ++++---- examples/declarative/extending/extended/lineedit.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/declarative/extending/extended/lineedit.cpp b/examples/declarative/extending/extended/lineedit.cpp index f11d22e..0597540 100644 --- a/examples/declarative/extending/extended/lineedit.cpp +++ b/examples/declarative/extending/extended/lineedit.cpp @@ -13,7 +13,7 @@ int LineEditExtension::leftMargin() const return l; } -int LineEditExtension::setLeftMargin(int m) +void LineEditExtension::setLeftMargin(int m) { int l, r, t, b; m_lineedit->getTextMargins(&l, &t, &r, &b); @@ -27,7 +27,7 @@ int LineEditExtension::rightMargin() const return r; } -int LineEditExtension::setRightMargin(int m) +void LineEditExtension::setRightMargin(int m) { int l, r, t, b; m_lineedit->getTextMargins(&l, &t, &r, &b); @@ -41,7 +41,7 @@ int LineEditExtension::topMargin() const return t; } -int LineEditExtension::setTopMargin(int m) +void LineEditExtension::setTopMargin(int m) { int l, r, t, b; m_lineedit->getTextMargins(&l, &t, &r, &b); @@ -55,7 +55,7 @@ int LineEditExtension::bottomMargin() const return b; } -int LineEditExtension::setBottomMargin(int m) +void LineEditExtension::setBottomMargin(int m) { int l, r, t, b; m_lineedit->getTextMargins(&l, &t, &r, &b); diff --git a/examples/declarative/extending/extended/lineedit.h b/examples/declarative/extending/extended/lineedit.h index 860e042..79fe977 100644 --- a/examples/declarative/extending/extended/lineedit.h +++ b/examples/declarative/extending/extended/lineedit.h @@ -14,16 +14,16 @@ public: LineEditExtension(QObject *); int leftMargin() const; - int setLeftMargin(int); + void setLeftMargin(int); int rightMargin() const; - int setRightMargin(int); + void setRightMargin(int); int topMargin() const; - int setTopMargin(int); + void setTopMargin(int); int bottomMargin() const; - int setBottomMargin(int); + void setBottomMargin(int); signals: void marginsChanged(); -- cgit v0.12