De-qobjectify BaseHoverHandler and derivatives

Change-Id: I9bc1d849349f85b5c7fd6013396b8b15b6cb1568
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-06-28 14:26:52 +02:00
parent 7bc88000d9
commit 3afbd1e5cc
5 changed files with 7 additions and 13 deletions

View File

@@ -34,8 +34,6 @@ namespace Internal {
class ResourcePreviewHoverHandler : public TextEditor::BaseHoverHandler
{
public:
private:
void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point) override;

View File

@@ -37,8 +37,6 @@ namespace Internal {
class ProFileHoverHandler : public TextEditor::BaseHoverHandler
{
Q_OBJECT
public:
explicit ProFileHoverHandler(const TextEditor::Keywords &keywords);

View File

@@ -29,6 +29,7 @@
#include <texteditor/basehoverhandler.h>
#include <QColor>
#include <QCoreApplication>
QT_BEGIN_NAMESPACE
template <class> class QList;
@@ -49,7 +50,7 @@ class QmlJSEditorWidget;
class QmlJSHoverHandler : public TextEditor::BaseHoverHandler
{
Q_OBJECT
Q_DECLARE_TR_FUNCTIONS(QmlJSHoverHandler)
public:
QmlJSHoverHandler();

View File

@@ -28,7 +28,9 @@
#include "texteditor_global.h"
#include "helpitem.h"
#include <QObject>
QT_BEGIN_NAMESPACE
class QPoint;
QT_END_NAMESPACE
namespace Core { class IEditor; }
@@ -37,13 +39,11 @@ namespace TextEditor {
class BaseTextEditor;
class TextEditorWidget;
class TEXTEDITOR_EXPORT BaseHoverHandler : public QObject
class TEXTEDITOR_EXPORT BaseHoverHandler
{
Q_OBJECT
public:
BaseHoverHandler();
~BaseHoverHandler();
virtual ~BaseHoverHandler();
QString contextHelpId(TextEditorWidget *widget, int pos);
int checkToolTip(TextEditorWidget *widget, int pos);

View File

@@ -38,9 +38,6 @@ class TextEditorWidget;
class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler
{
Q_OBJECT
public:
private:
void identifyMatch(TextEditorWidget *editorWidget, int pos) override;
void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override;