QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgslocaleawarenumericlineeditdelegate.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslocaleawarenumericlineeditdelegate.h - QgsLocaleAwareNumericLineEditDelegate
3
4
---------------------
5
begin : 5.11.2020
6
copyright : (C) 2020 by Alessandro Pasotti
7
email : elpaso at itopen dot it
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSLOCALEAWARENUMERICLINEEDITDELEGATE_H
17
#define QGSLOCALEAWARENUMERICLINEEDITDELEGATE_H
18
19
#include "
qgis.h
"
20
21
#include <QStyledItemDelegate>
22
23
#define SIP_NO_FILE
24
26
36
class
QgsLocaleAwareNumericLineEditDelegate :
public
QStyledItemDelegate
37
{
38
Q_OBJECT
39
40
public
:
46
QgsLocaleAwareNumericLineEditDelegate(
Qgis::DataType
dataType, QWidget *parent =
nullptr
);
47
48
QWidget *createEditor( QWidget *parent,
const
QStyleOptionViewItem &option,
const
QModelIndex &index )
const override
;
49
50
// QAbstractItemDelegate interface
51
public
:
52
void
setEditorData( QWidget *editor,
const
QModelIndex &index )
const override
;
53
void
setModelData( QWidget *editor, QAbstractItemModel *model,
const
QModelIndex &index )
const override
;
54
QString displayText(
const
QVariant &value,
const
QLocale &locale )
const override
;
55
59
void
setDataType(
const
Qgis::DataType
&dataType );
60
61
private
:
62
Qgis::DataType
mDataType;
63
};
64
66
67
#endif
// QGSLOCALEAWARENUMERICLINEEDITDELEGATE_H
Qgis::DataType
DataType
Raster data types.
Definition
qgis.h:413
qgis.h
Generated on
for QGIS API Documentation by
1.17.0