forked from qt-creator/qt-creator
De-qobjectify BaseHoverHandler and derivatives
Change-Id: I9bc1d849349f85b5c7fd6013396b8b15b6cb1568 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -34,8 +34,6 @@ namespace Internal {
|
|||||||
|
|
||||||
class ResourcePreviewHoverHandler : public TextEditor::BaseHoverHandler
|
class ResourcePreviewHoverHandler : public TextEditor::BaseHoverHandler
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
|
void identifyMatch(TextEditor::TextEditorWidget *editorWidget, int pos) override;
|
||||||
void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point) override;
|
void operateTooltip(TextEditor::TextEditorWidget *editorWidget, const QPoint &point) override;
|
||||||
|
@@ -37,8 +37,6 @@ namespace Internal {
|
|||||||
|
|
||||||
class ProFileHoverHandler : public TextEditor::BaseHoverHandler
|
class ProFileHoverHandler : public TextEditor::BaseHoverHandler
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ProFileHoverHandler(const TextEditor::Keywords &keywords);
|
explicit ProFileHoverHandler(const TextEditor::Keywords &keywords);
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
#include <texteditor/basehoverhandler.h>
|
#include <texteditor/basehoverhandler.h>
|
||||||
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
#include <QCoreApplication>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
template <class> class QList;
|
template <class> class QList;
|
||||||
@@ -49,7 +50,7 @@ class QmlJSEditorWidget;
|
|||||||
|
|
||||||
class QmlJSHoverHandler : public TextEditor::BaseHoverHandler
|
class QmlJSHoverHandler : public TextEditor::BaseHoverHandler
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_DECLARE_TR_FUNCTIONS(QmlJSHoverHandler)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QmlJSHoverHandler();
|
QmlJSHoverHandler();
|
||||||
|
@@ -28,7 +28,9 @@
|
|||||||
#include "texteditor_global.h"
|
#include "texteditor_global.h"
|
||||||
#include "helpitem.h"
|
#include "helpitem.h"
|
||||||
|
|
||||||
#include <QObject>
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QPoint;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace Core { class IEditor; }
|
namespace Core { class IEditor; }
|
||||||
|
|
||||||
@@ -37,13 +39,11 @@ namespace TextEditor {
|
|||||||
class BaseTextEditor;
|
class BaseTextEditor;
|
||||||
class TextEditorWidget;
|
class TextEditorWidget;
|
||||||
|
|
||||||
class TEXTEDITOR_EXPORT BaseHoverHandler : public QObject
|
class TEXTEDITOR_EXPORT BaseHoverHandler
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseHoverHandler();
|
BaseHoverHandler();
|
||||||
~BaseHoverHandler();
|
virtual ~BaseHoverHandler();
|
||||||
|
|
||||||
QString contextHelpId(TextEditorWidget *widget, int pos);
|
QString contextHelpId(TextEditorWidget *widget, int pos);
|
||||||
int checkToolTip(TextEditorWidget *widget, int pos);
|
int checkToolTip(TextEditorWidget *widget, int pos);
|
||||||
|
@@ -38,9 +38,6 @@ class TextEditorWidget;
|
|||||||
|
|
||||||
class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler
|
class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void identifyMatch(TextEditorWidget *editorWidget, int pos) override;
|
void identifyMatch(TextEditorWidget *editorWidget, int pos) override;
|
||||||
void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override;
|
void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override;
|
||||||
|
Reference in New Issue
Block a user