QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgstablewidgetbase.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstablewidgetbase.h
3
--------------------------------------
4
Date : 09.2016
5
Copyright : (C) 2016 Patrick Valsecchi
6
Email : patrick.valsecchi@camptocamp.com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSTABLEWIDGETBASE_H
17
#define QGSTABLEWIDGETBASE_H
18
19
#include "ui_qgstablewidgetuibase.h"
20
21
#include "qgis_gui.h"
22
23
#include <QAbstractTableModel>
24
#include <QVariant>
25
34
class
GUI_EXPORT
QgsTableWidgetBase
:
public
QWidget,
public
Ui::QgsTableWidgetUiBase
35
{
36
Q_OBJECT
37
public
:
41
explicit
QgsTableWidgetBase
( QWidget *parent );
42
49
bool
isReadOnly
()
const
{
return
mReadOnly; }
50
51
public
slots:
52
59
virtual
void
setReadOnly(
bool
readOnly );
60
61
protected
:
66
void
init( QAbstractTableModel *model );
67
68
signals:
69
73
void
valueChanged
();
74
75
private
slots:
76
80
void
addButton_clicked();
81
85
void
removeButton_clicked();
86
90
void
onSelectionChanged();
91
92
private
:
93
bool
mReadOnly =
false
;
94
95
friend
class
TestQgsKeyValueWidget
;
96
friend
class
TestQgsListWidget
;
97
};
98
99
100
#endif
// QGSTABLEWIDGETBASE_H
QgsTableWidgetBase::isReadOnly
bool isReadOnly() const
Returns true if the widget is shown in a read-only state.
Definition
qgstablewidgetbase.h:49
QgsTableWidgetBase::TestQgsKeyValueWidget
friend class TestQgsKeyValueWidget
Definition
qgstablewidgetbase.h:95
QgsTableWidgetBase::TestQgsListWidget
friend class TestQgsListWidget
Definition
qgstablewidgetbase.h:96
QgsTableWidgetBase::valueChanged
void valueChanged()
Emitted each time a key or a value is changed.
QgsTableWidgetBase::QgsTableWidgetBase
QgsTableWidgetBase(QWidget *parent)
Constructor.
Definition
qgstablewidgetbase.cpp:20
Generated on
for QGIS API Documentation by
1.17.0