Fix a crash when showing tooltips

Looks like we have omitter Q_OBJECT declaration in
subclasses of TipLabel. This probably confuses
accessibility support in Qt 6, as it reads the classname
of the object. Apparently, the classname wasn't set
properly.

Task-number: QTCREATORBUG-24839
Change-Id: I5085e924fb3fa3a0f06d17372c7dc339db30226c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Jarek Kobus
2020-11-12 15:16:24 +01:00
parent aa67aa8b2a
commit 3167d23a36

View File

@@ -61,6 +61,7 @@ using TextItem = std::pair<QString, Qt::TextFormat>;
class TextTip : public TipLabel class TextTip : public TipLabel
{ {
Q_OBJECT
public: public:
TextTip(QWidget *parent); TextTip(QWidget *parent);
@@ -80,6 +81,7 @@ private:
class ColorTip : public TipLabel class ColorTip : public TipLabel
{ {
Q_OBJECT
public: public:
ColorTip(QWidget *parent); ColorTip(QWidget *parent);