QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
3
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
gui
qgsoptionsdialoghighlightwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsoptionsdialoghighlightwidget.h
3
-------------------------------
4
Date : February 2018
5
Copyright : (C) 2018 Denis Rouzaud
6
Email : denis.rouzaud@gmail.com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSOPTIONSDIALOGHIGHLIGHTWIDGET_H
17
#define QGSOPTIONSDIALOGHIGHLIGHTWIDGET_H
18
19
#include <QObject>
20
#include <QPointer>
21
#include <QWidget>
22
23
#include "qgis_gui.h"
24
#include "
qgis_sip.h
"
25
35
class
GUI_EXPORT
QgsOptionsDialogHighlightWidget
:
public
QObject
36
{
37
38
Q_OBJECT
39
public
:
40
47
static
QgsOptionsDialogHighlightWidget
*createWidget( QWidget *widget )
SIP_FACTORY
;
48
52
bool
isValid
() {
return
!mWidget.isNull(); }
53
58
bool
searchHighlight(
const
QString &text );
59
63
QWidget *
widget
() {
return
mWidget;}
64
65
66
bool
eventFilter( QObject *obj, QEvent *event )
override
;
67
68
69
protected
:
70
74
virtual
bool
searchText
(
const
QString &text ) = 0;
75
80
virtual
bool
highlightText
(
const
QString &text ) = 0;
81
85
virtual
void
reset
() = 0;
86
91
explicit
QgsOptionsDialogHighlightWidget
( QWidget *widget =
nullptr
);
92
94
QPointer< QWidget >
mWidget
;
95
96
private
:
97
QString mSearchText = QString();
98
bool
mChangedStyle =
false
;
99
bool
mInstalledFilter =
false
;
100
};
101
102
#endif // QGSOPTIONSDIALOGHIGHLIGHTWIDGET_H
QgsOptionsDialogHighlightWidget::searchText
virtual bool searchText(const QString &text)=0
Search for the text in the widget and return true if it was found.
QgsOptionsDialogHighlightWidget
Container for a widget to be used to search text in the option dialog If the widget type is handled,...
Definition:
qgsoptionsdialoghighlightwidget.h:36
QgsOptionsDialogHighlightWidget::widget
QWidget * widget()
Returns the widget.
Definition:
qgsoptionsdialoghighlightwidget.h:63
SIP_FACTORY
#define SIP_FACTORY
Definition:
qgis_sip.h:76
QgsOptionsDialogHighlightWidget::highlightText
virtual bool highlightText(const QString &text)=0
Highlight the text in the widget.
qgis_sip.h
QgsOptionsDialogHighlightWidget::isValid
bool isValid()
Returns if it valid: if the widget type is handled and if the widget is not still available.
Definition:
qgsoptionsdialoghighlightwidget.h:52
QgsOptionsDialogHighlightWidget::mWidget
QPointer< QWidget > mWidget
Pointer to the widget.
Definition:
qgsoptionsdialoghighlightwidget.h:94
QgsOptionsDialogHighlightWidget::reset
virtual void reset()=0
reset the style of the widgets to its original state
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20