aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/colorpreviewhoverhandler.h
blob: 3efedc91d193dd3825e2823c1fa94cf7f800d5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include "texteditor_global.h"
#include "basehoverhandler.h"

#include <QColor>

namespace Core { class IEditor; }

namespace TextEditor {

class TextEditorWidget;

class TEXTEDITOR_EXPORT ColorPreviewHoverHandler : public BaseHoverHandler
{
private:
    void identifyMatch(TextEditorWidget *editorWidget, int pos, ReportPriority report) override;
    void operateTooltip(TextEditorWidget *editorWidget, const QPoint &point) override;

    QColor m_colorTip;
};

} // namespace TextEditor