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:
parent
500ed6b628
commit
33d9b9f326
@ -53,7 +53,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
class Q_WIDGETS_EXPORT QToolTip
|
class Q_WIDGETS_EXPORT QToolTip
|
||||||
{
|
{
|
||||||
QToolTip();
|
QToolTip() Q_DECL_EQ_DELETE;
|
||||||
public:
|
public:
|
||||||
static void showText(const QPoint &pos, const QString &text, QWidget *w = 0);
|
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);
|
static void showText(const QPoint &pos, const QString &text, QWidget *w, const QRect &rect);
|
||||||
|
@ -521,11 +521,6 @@ void QWhatsThisAction::actionTriggered()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QWhatsThis::QWhatsThis()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
This function switches the user interface into "What's This?"
|
This function switches the user interface into "What's This?"
|
||||||
mode. The user interface can be switched back into normal mode by
|
mode. The user interface can be switched back into normal mode by
|
||||||
|
@ -56,7 +56,7 @@ class QAction;
|
|||||||
|
|
||||||
class Q_WIDGETS_EXPORT QWhatsThis
|
class Q_WIDGETS_EXPORT QWhatsThis
|
||||||
{
|
{
|
||||||
QWhatsThis();
|
QWhatsThis() Q_DECL_EQ_DELETE;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void enterWhatsThisMode();
|
static void enterWhatsThisMode();
|
||||||
|
Loading…
Reference in New Issue
Block a user