QGIS API Documentation
2.8.6-Wien
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
qgsdial.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsdial.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 <QDial>
19
#include <QVariant>
20
21
class
QPaintEvent;
22
23
class
GUI_EXPORT
QgsDial
:
public
QDial
24
{
25
Q_OBJECT
26
public
:
27
QgsDial
( QWidget *parent = 0 );
28
29
void
setMinimum(
const
QVariant &
min
);
30
void
setMaximum(
const
QVariant &
max
);
31
void
setSingleStep(
const
QVariant &step );
32
void
setValue(
const
QVariant &value );
33
QVariant variantValue()
const
;
34
35
signals:
36
void
valueChanged( QVariant );
37
38
protected
slots:
39
void
valueChanged(
int
);
40
41
protected
:
42
virtual
void
paintEvent( QPaintEvent * event )
override
;
43
44
private
:
45
void
update();
46
47
QVariant mMin, mMax, mStep, mValue;
48
};
pal::min
int min(int a, int b)
Definition:
util.h:93
QgsDial
Definition:
qgsdial.h:23
pal::max
int max(int a, int b)
Definition:
util.h:87
Generated on Wed Mar 30 2016 18:49:01 for QGIS API Documentation by
1.8.11