CentralizedCheckBoxDelegate.h
Go to the documentation of this file.
1
/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3
This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5
TerraLib is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License,
8
or (at your option) any later version.
9
10
TerraLib is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TerraLib. See COPYING. If not, write to
17
TerraLib Team at <terralib-team@terralib.org>.
18
*/
19
20
/*!
21
\file CentralizedCheckBoxDelegate.h
22
23
\brief Just use a delegate to render checkboxes centralized on a view.
24
*/
25
#ifndef __TERRALIB_QT_WIDGETS_UTILS_INTERNAL_CENTRALIZEDCHECKBOXDELEGATE_H
26
#define __TERRALIB_QT_WIDGETS_UTILS_INTERNAL_CENTRALIZEDCHECKBOXDELEGATE_H
27
28
#include "../Config.h"
29
30
// Qt
31
#include <QStyledItemDelegate>
32
33
namespace
te
34
{
35
namespace
qt
36
{
37
namespace
widgets
38
{
39
class
TEQTWIDGETSEXPORT
CentralizedCheckBoxDelegate
:
public
QStyledItemDelegate
40
{
41
public
:
42
43
CentralizedCheckBoxDelegate
(QObject* parent=0);
44
45
~CentralizedCheckBoxDelegate
();
46
47
void
paint
( QPainter * painter,
const
QStyleOptionViewItem & option,
const
QModelIndex & index )
const
;
48
49
bool
editorEvent
(QEvent *event, QAbstractItemModel *model,
const
QStyleOptionViewItem &option,
const
QModelIndex &index);
50
};
51
}
52
}
53
}
54
55
#endif //__TERRALIB_QT_WIDGETS_UTILS_INTERNAL_CENTRALIZEDCHECKBOXDELEGATE_H
te
TerraLib.
Definition:
AddressGeocodingOp.h:52
TEQTWIDGETSEXPORT
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition:
Config.h:63
te::qt::widgets::CentralizedCheckBoxDelegate::CentralizedCheckBoxDelegate
CentralizedCheckBoxDelegate(QObject *parent=0)
te::qt::widgets::CentralizedCheckBoxDelegate::editorEvent
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index)
te::qt::widgets::CentralizedCheckBoxDelegate::~CentralizedCheckBoxDelegate
~CentralizedCheckBoxDelegate()
te::qt::widgets::CentralizedCheckBoxDelegate::paint
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
te::qt::widgets::CentralizedCheckBoxDelegate
Definition:
CentralizedCheckBoxDelegate.h:40
git_release
src
terralib
qt
widgets
utils
CentralizedCheckBoxDelegate.h
Generated on Fri Dec 4 2020 09:43:37 for TerraLib by
1.8.20