summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qabstracttextdocumentlayout.h
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2022-04-29 17:20:42 +0200
committerDavid Faure <david.faure@kdab.com>2022-05-10 15:20:57 +0200
commit3bc80195dfc683387ae438ad0bdfdd19b3adb037 (patch)
treee72384391ba9af43b163f1e6aae36d181e98aeb4 /src/gui/text/qabstracttextdocumentlayout.h
parentb51712f136a6dd0ee60e99b203a0cb14d9272538 (diff)
QWidgetTextControl: port to new-style connects (faster)
This speeds up creating a QGraphicsTextItem by 14% in an optimized build Before: 0.070 msecs per iteration After: 0.060 msecs per iteration Those connects were showing up when profiling, because of the string parsing that is necessary when using SIGNAL/SLOT macros. The stacktrace was connect() => decodeMethodSignature() => argumentTypesFromString() => QArgumentType constructor => qMetaTypeInternal(const char*). Pick-to: 6.3 6.2 5.15 Change-Id: I3cf5655c5450f121005140bdb587fafa083cce6a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/text/qabstracttextdocumentlayout.h')
-rw-r--r--src/gui/text/qabstracttextdocumentlayout.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/text/qabstracttextdocumentlayout.h b/src/gui/text/qabstracttextdocumentlayout.h
index 4dd3e16160..d34a1cc504 100644
--- a/src/gui/text/qabstracttextdocumentlayout.h
+++ b/src/gui/text/qabstracttextdocumentlayout.h
@@ -129,7 +129,6 @@ private:
friend class QTextEngine;
friend class QTextLayout;
friend class QTextLine;
- Q_PRIVATE_SLOT(d_func(), void _q_handlerDestroyed(QObject *obj))
Q_PRIVATE_SLOT(d_func(), int _q_dynamicPageCountSlot())
Q_PRIVATE_SLOT(d_func(), QSizeF _q_dynamicDocumentSizeSlot())
};