QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
gui
qgsslider.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsslider.h
3
-------------------
4
begin : July 2013
5
copyright : (C) 2013 by Daniel Vaz
6
email : danielvaz at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSSLIDER_H
19
#define QGSSLIDER_H
20
21
#include <QSlider>
22
#include "
qgis_sip.h
"
23
#include <QVariant>
24
#include "qgis_gui.h"
25
26
class
QPaintEvent;
27
32
class
GUI_EXPORT
QgsSlider
:
public
QSlider
33
{
34
Q_OBJECT
35
public
:
36
38
QgsSlider
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
39
41
QgsSlider
( Qt::Orientation orientation, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
42
43
void
setMinimum(
const
QVariant &min );
44
void
setMaximum(
const
QVariant &max );
45
void
setSingleStep(
const
QVariant &step );
46
void
setValue(
const
QVariant &value );
47
QVariant variantValue()
const
;
48
49
signals:
50
void
valueChanged
(
const
QVariant & );
51
52
private
slots:
53
void
onValueChanged(
int
);
54
55
protected
:
56
void
paintEvent( QPaintEvent *event )
override
;
57
58
private
:
59
void
update();
60
61
QVariant mMin, mMax, mStep, mValue;
62
};
63
64
#endif
// QGSSLIDER_H
QgsSlider
Definition
qgsslider.h:33
QgsSlider::valueChanged
void valueChanged(const QVariant &)
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8