Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
csshighlighter_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4
//
5
// W A R N I N G
6
// -------------
7
//
8
// This file is not part of the Qt API. It exists for the convenience
9
// of Qt Designer. This header
10
// file may change from version to version without notice, or even be removed.
11
//
12
// We mean it.
13
//
14
15
#
ifndef
CSSHIGHLIGHTER_H
16
#
define
CSSHIGHLIGHTER_H
17
18
#
include
<
QtGui
/
qsyntaxhighlighter
.
h
>
19
#
include
<
QtGui
/
qcolor
.
h
>
20
#
include
"shared_global_p.h"
21
22
QT_BEGIN_NAMESPACE
23
24
namespace
qdesigner_internal
{
25
26
struct
CssHighlightColors
27
{
28
QColor
selector
;
29
QColor
property
;
30
QColor
value
;
31
QColor
pseudo1
;
32
QColor
pseudo2
;
33
QColor
quote
;
34
QColor
comment
;
35
};
36
37
class
QDESIGNER_SHARED_EXPORT
CssHighlighter
:
public
QSyntaxHighlighter
38
{
39
Q_OBJECT
40
public
:
41
explicit
CssHighlighter
(
const
CssHighlightColors
&
colors
,
42
QTextDocument
*
document
);
43
44
protected
:
45
void
highlightBlock
(
const
QString
&)
override
;
46
void
highlight
(
const
QString
&,
int
,
int
,
int
/*State*/
);
47
48
private
:
49
enum
State
{
Selector
,
Property
,
Value
,
Pseudo
,
Pseudo1
,
Pseudo2
,
Quote
,
50
MaybeComment
,
Comment
,
MaybeCommentEnd
};
51
52
const
CssHighlightColors
m_colors
;
53
};
54
55
}
// namespace qdesigner_internal
56
57
QT_END_NAMESPACE
58
59
#
endif
// CSSHIGHLIGHTER_H
qdesigner_internal::CssHighlighter
Definition
csshighlighter_p.h:38
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:66
QDESIGNER_SHARED_EXPORT
#define QDESIGNER_SHARED_EXPORT
Definition
shared_global_p.h:32
qdesigner_internal::CssHighlightColors
Definition
csshighlighter_p.h:27
qdesigner_internal::CssHighlightColors::pseudo1
QColor pseudo1
Definition
csshighlighter_p.h:31
qdesigner_internal::CssHighlightColors::selector
QColor selector
Definition
csshighlighter_p.h:28
qdesigner_internal::CssHighlightColors::pseudo2
QColor pseudo2
Definition
csshighlighter_p.h:32
qdesigner_internal::CssHighlightColors::comment
QColor comment
Definition
csshighlighter_p.h:34
qdesigner_internal::CssHighlightColors::quote
QColor quote
Definition
csshighlighter_p.h:33
qdesigner_internal::CssHighlightColors::property
QColor property
Definition
csshighlighter_p.h:29
qdesigner_internal::CssHighlightColors::value
QColor value
Definition
csshighlighter_p.h:30
qttools
src
designer
src
lib
shared
csshighlighter_p.h
Generated on Sat Sep 21 2024 00:50:31 for Qt by
1.12.0