TextEditor: Allow explicitly passing the text format for tool tips

Change-Id: I6e592a73fa6a3229cda9e76a4ab33f2c0ca330c5
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2019-11-04 17:14:25 +01:00
parent 177f14b115
commit 8e4fb05532
6 changed files with 63 additions and 11 deletions

View File

@@ -74,8 +74,17 @@ public:
static void show(const QPoint &pos, const QString &content, QWidget *w = nullptr,
const QVariant &contextHelp = {}, const QRect &rect = QRect());
static void show(const QPoint &pos, const QColor &color, QWidget *w = nullptr,
const QVariant &contextHelp = {}, const QRect &rect = QRect());
static void show(const QPoint &pos,
const QString &content,
Qt::TextFormat format,
QWidget *w = nullptr,
const QVariant &contextHelp = {},
const QRect &rect = QRect());
static void show(const QPoint &pos,
const QColor &color,
QWidget *w = nullptr,
const QVariant &contextHelp = {},
const QRect &rect = QRect());
static void show(const QPoint &pos, QWidget *content, QWidget *w = nullptr,
const QVariant &contextHelp = {}, const QRect &rect = QRect());
static void show(const QPoint &pos, QLayout *content, QWidget *w = nullptr,