summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-06-26 11:28:35 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:47:33 (GMT)
commitb5e265cbbfd809a405664800654f66d5eb3e5367 (patch)
tree6e9a8b4888255780f022cc535c3b699cf8d847d1
parent9e4bf3772c808d8bf0016ae6674610bae2272613 (diff)
downloadQt-b5e265cbbfd809a405664800654f66d5eb3e5367.zip
Qt-b5e265cbbfd809a405664800654f66d5eb3e5367.tar.gz
Qt-b5e265cbbfd809a405664800654f66d5eb3e5367.tar.bz2
Compile
Q_DECLARE_PRIVATE requires d_ptr to be a QFooPointer<>-object.
-rw-r--r--src/gui/text/qstatictext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h
index 4976039..d7771e0 100644
--- a/src/gui/text/qstatictext.h
+++ b/src/gui/text/qstatictext.h
@@ -53,8 +53,7 @@ QT_MODULE(Gui)
class QStaticTextPrivate;
class Q_GUI_EXPORT QStaticText
-{
- Q_DECLARE_PRIVATE(QStaticText);
+{
public:
QStaticText();
QStaticText(const QString &text, const QFont &font = QFont(), const QSizeF &maximumSize = QSizeF());
@@ -80,6 +79,7 @@ private:
void detach();
QStaticTextPrivate *d_ptr;
+ friend class QStaticTextPrivate;
};
QT_END_NAMESPACE