equal
deleted
inserted
replaced
41 |
41 |
42 #ifndef QFONTMETRICS_H |
42 #ifndef QFONTMETRICS_H |
43 #define QFONTMETRICS_H |
43 #define QFONTMETRICS_H |
44 |
44 |
45 #include <QtGui/qfont.h> |
45 #include <QtGui/qfont.h> |
|
46 #include <QtCore/qsharedpointer.h> |
46 #ifndef QT_INCLUDE_COMPAT |
47 #ifndef QT_INCLUDE_COMPAT |
47 #include <QtCore/qrect.h> |
48 #include <QtCore/qrect.h> |
48 #endif |
49 #endif |
49 |
50 |
50 QT_BEGIN_HEADER |
51 QT_BEGIN_HEADER |
129 friend class QFontPrivate; |
130 friend class QFontPrivate; |
130 #endif |
131 #endif |
131 friend class QFontMetricsF; |
132 friend class QFontMetricsF; |
132 friend class QStackTextEngine; |
133 friend class QStackTextEngine; |
133 |
134 |
134 QFontPrivate *d; |
135 QExplicitlySharedDataPointer<QFontPrivate> d; |
135 }; |
136 }; |
136 |
137 |
137 |
138 |
138 class Q_GUI_EXPORT QFontMetricsF |
139 class Q_GUI_EXPORT QFontMetricsF |
139 { |
140 { |
185 bool operator==(const QFontMetricsF &other) const; |
186 bool operator==(const QFontMetricsF &other) const; |
186 inline bool operator !=(const QFontMetricsF &other) { return !operator==(other); } // 5.0 - remove me |
187 inline bool operator !=(const QFontMetricsF &other) { return !operator==(other); } // 5.0 - remove me |
187 inline bool operator !=(const QFontMetricsF &other) const { return !operator==(other); } |
188 inline bool operator !=(const QFontMetricsF &other) const { return !operator==(other); } |
188 |
189 |
189 private: |
190 private: |
190 QFontPrivate *d; |
191 QExplicitlySharedDataPointer<QFontPrivate> d; |
191 }; |
192 }; |
192 |
193 |
193 QT_END_NAMESPACE |
194 QT_END_NAMESPACE |
194 |
195 |
195 QT_END_HEADER |
196 QT_END_HEADER |