Commit 3afbd1e5 authored by Nikolai Kosjar's avatar Nikolai Kosjar

De-qobjectify BaseHoverHandler and derivatives

Change-Id: I9bc1d849349f85b5c7fd6013396b8b15b6cb1568
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 7bc88000
......@@ -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;
......
......@@ -37,8 +37,6 @@ namespace Internal {
class ProFileHoverHandler : public TextEditor::BaseHoverHandler
{
Q_OBJECT
public:
explicit ProFileHoverHandler(const TextEditor::Keywords &keywords);
......
......@@ -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();
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment