Loading [MathJax]/extensions/MathMenu.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
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
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
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-313-g117c23c1cd source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
Applications
►
ApplicationsLib
►
CLI
▼
DataExplorer
▼
Base
CheckboxDelegate.cpp
►
CheckboxDelegate.h
ColorPickerPushButton.cpp
►
ColorPickerPushButton.h
►
ImportFileTypes.h
►
LastSavedFileDirectory.h
OGSError.cpp
►
OGSError.h
QNonScalableGraphicsTextItem.cpp
►
QNonScalableGraphicsTextItem.h
QValueTooltipSlider.cpp
►
QValueTooltipSlider.h
RecentFiles.cpp
►
RecentFiles.h
►
StrictDoubleValidator.h
►
StrictIntValidator.h
TreeItem.cpp
►
TreeItem.h
TreeModel.cpp
►
TreeModel.h
TreeModelIterator.cpp
►
TreeModelIterator.h
►
Utils.cpp
►
Utils.h
►
DataView
►
VtkVis
►
main.cpp
mainwindow.cpp
►
mainwindow.h
►
DataHolderLib
►
FileIO
►
InSituLib
►
Python
►
Utils
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
ColorPickerPushButton.h
Go to the documentation of this file.
1
15
#pragma once
16
17
// ** INCLUDES **
18
#include <QPushButton>
19
20
class
QColor;
21
class
QMouseEvent;
22
28
class
ColorPickerPushButton
:
public
QPushButton
29
{
30
Q_OBJECT
31
32
public
:
33
explicit
ColorPickerPushButton
(QWidget* parent =
nullptr
);
34
35
public
slots:
37
void
mouseReleaseEvent
(QMouseEvent* e)
override
;
38
40
void
setColor
(QColor color);
41
void
setColor
(
double
* color);
42
43
private
:
44
QString
colorToCss
(QColor color);
45
QString
colorToString
(QColor color);
46
47
QColor
_color
;
48
49
signals:
51
void
colorPicked
(QColor);
52
};
28
class
ColorPickerPushButton
:
public
QPushButton {
…
};
ColorPickerPushButton
Definition
ColorPickerPushButton.h:29
ColorPickerPushButton::mouseReleaseEvent
void mouseReleaseEvent(QMouseEvent *e) override
Calls the QColorDialog.
Definition
ColorPickerPushButton.cpp:27
ColorPickerPushButton::colorPicked
void colorPicked(QColor)
Is emitted when a color was picked from the dialog.
ColorPickerPushButton::ColorPickerPushButton
ColorPickerPushButton(QWidget *parent=nullptr)
Definition
ColorPickerPushButton.cpp:20
ColorPickerPushButton::setColor
void setColor(QColor color)
Sets the color.
Definition
ColorPickerPushButton.cpp:62
ColorPickerPushButton::_color
QColor _color
Definition
ColorPickerPushButton.h:47
ColorPickerPushButton::colorToString
QString colorToString(QColor color)
Definition
ColorPickerPushButton.cpp:49
ColorPickerPushButton::colorToCss
QString colorToCss(QColor color)
Definition
ColorPickerPushButton.cpp:41
Applications
DataExplorer
Base
ColorPickerPushButton.h
Generated by
1.11.0