summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/text/qstatictext.h')
-rw-r--r--src/gui/text/qstatictext.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/text/qstatictext.h b/src/gui/text/qstatictext.h
index 8eeb068..652bb84 100644
--- a/src/gui/text/qstatictext.h
+++ b/src/gui/text/qstatictext.h
@@ -60,6 +60,11 @@ class QStaticTextPrivate;
class Q_GUI_EXPORT QStaticText
{
public:
+ enum PerformanceHint {
+ ModerateCaching,
+ AggressiveCaching
+ };
+
QStaticText();
QStaticText(const QString &text, const QSizeF &maximumSize = QSizeF());
QStaticText(const QStaticText &other);
@@ -78,8 +83,8 @@ public:
void prepare(const QTransform &matrix, const QFont &font);
- void setUseBackendOptimizations(bool on);
- bool useBackendOptimizations() const;
+ void setPerformanceHint(PerformanceHint performanceHint);
+ PerformanceHint performanceHint() const;
QStaticText &operator=(const QStaticText &);
bool operator==(const QStaticText &) const;