summaryrefslogtreecommitdiffstats
path: root/examples/declarative/extending/extended
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-02 01:11:18 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-02 01:11:18 (GMT)
commit297dcaaef5741dac5e10c886db1755829e4ed082 (patch)
treee28c37746cda815866bd4033a649f11f1b5a0dc8 /examples/declarative/extending/extended
parent27e89da6ec97020a7a664be5be0b474aba323712 (diff)
downloadQt-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.cpp8
-rw-r--r--examples/declarative/extending/extended/lineedit.h8
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();