diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-10-02 01:11:18 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-10-02 01:11:18 (GMT) |
commit | 297dcaaef5741dac5e10c886db1755829e4ed082 (patch) | |
tree | e28c37746cda815866bd4033a649f11f1b5a0dc8 /examples/declarative/extending/extended | |
parent | 27e89da6ec97020a7a664be5be0b474aba323712 (diff) | |
download | Qt-297dcaaef5741dac5e10c886db1755829e4ed082.zip Qt-297dcaaef5741dac5e10c886db1755829e4ed082.tar.gz Qt-297dcaaef5741dac5e10c886db1755829e4ed082.tar.bz2 |
Use void return type for setter methods.
Diffstat (limited to 'examples/declarative/extending/extended')
-rw-r--r-- | examples/declarative/extending/extended/lineedit.cpp | 8 | ||||
-rw-r--r-- | 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(); |