Delete QWhatsThis() and QToolTip()

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>
This commit is contained in:
Marc Mutz 2012-10-22 08:20:23 +02:00 committed by The Qt Project
parent 500ed6b628
commit 33d9b9f326
3 changed files with 2 additions and 7 deletions

View File

@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE
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);

View File

@ -521,11 +521,6 @@ void QWhatsThisAction::actionTriggered()
}
}
QWhatsThis::QWhatsThis()
{
}
/*!
This function switches the user interface into "What's This?"
mode. The user interface can be switched back into normal mode by

View File

@ -56,7 +56,7 @@ class QAction;
class Q_WIDGETS_EXPORT QWhatsThis
{
QWhatsThis();
QWhatsThis() Q_DECL_EQ_DELETE;
public:
static void enterWhatsThisMode();