These classes are not supposed to be instantiated.
QToolTip() already was declared, but not implemented.
This patch just adds Q_DECL_EQ_DELETE for better
diagnostics on C++11.
QWhatsThis() was implemented, but appears to be unused.
Since it was private to begin with, successfully compiling
QtWidgets is a sufficient test.
Change-Id: I698ece8f0eebbcdac7be98456dd42197b758a825
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
class Q_WIDGETS_EXPORT QToolTip
{
- QToolTip();
+ QToolTip() Q_DECL_EQ_DELETE;
public:
static void showText(const QPoint &pos, const QString &text, QWidget *w = 0);
static void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect);
}
}
-QWhatsThis::QWhatsThis()
-{
-}
-
-
/*!
This function switches the user interface into "What's This?"
mode. The user interface can be switched back into normal mode by
class Q_WIDGETS_EXPORT QWhatsThis
{
- QWhatsThis();
+ QWhatsThis() Q_DECL_EQ_DELETE;
public:
static void enterWhatsThisMode();