QGIS API Documentation
2.10.1-Pisa
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#include <QSlider>
19
#include <QVariant>
20
21
class
QPaintEvent
;
22
23
class
GUI_EXPORT
QgsSlider
:
public
QSlider
24
{
25
Q_OBJECT
26
public
:
27
QgsSlider
(
QWidget
*parent = 0 );
28
QgsSlider
( Qt::Orientation orientation,
QWidget
* parent = 0 );
29
30
void
setMinimum
(
const
QVariant
&
min
);
31
void
setMaximum
(
const
QVariant
&
max
);
32
void
setSingleStep
(
const
QVariant
&step );
33
void
setValue
(
const
QVariant
&value );
34
QVariant
variantValue()
const
;
35
36
signals:
37
void
valueChanged
(
QVariant
);
38
39
protected
slots:
40
void
valueChanged
(
int
);
41
42
protected
:
43
virtual
void
paintEvent
(
QPaintEvent
* event )
override
;
44
45
private
:
46
void
update
();
47
48
QVariant
mMin, mMax, mStep, mValue;
49
};
QWidget
QSlider
QWidget::update
void update()
QgsSlider
Definition:
qgsslider.h:23
QSlider::paintEvent
virtual void paintEvent(QPaintEvent *ev)
QAbstractSlider::setMinimum
void setMinimum(int)
pal::min
int min(int a, int b)
Definition:
util.h:93
QAbstractSlider::setValue
void setValue(int)
QAbstractSlider::setSingleStep
void setSingleStep(int)
QAbstractSlider::valueChanged
void valueChanged(int value)
QPaintEvent
QAbstractSlider::setMaximum
void setMaximum(int)
pal::max
int max(int a, int b)
Definition:
util.h:87
QVariant
Generated on Sat Aug 22 2015 02:53:42 for QGIS API Documentation by
1.8.6