A QTableView subclass which adds buttons to edit the underlying model.
More...
#include <editabletablewidget.h>
Inherits QTableView.
|
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) override |
|
virtual void | rowsInserted (const QModelIndex &parent, int start, int end) override |
|
|
typedef void(EditableTableWidget::* | Signal )(const QVariant &data) |
|
|
void | installButtons (int row) noexcept |
|
QToolButton * | createButton (const QString &objectName, const QIcon &icon, const QString &text, const QString &toolTip, int width, int height, Signal clickedSignal, const QPersistentModelIndex &index) noexcept |
|
void | buttonClickedHandler (Signal clickedSignal, const QPersistentModelIndex &index) noexcept |
|
A QTableView subclass which adds buttons to edit the underlying model.
typedef void(EditableTableWidget::* Signal)(const QVariant &data) |
|
private |
void setShowCopyButton |
( |
bool |
show | ) |
|
|
inlinenoexcept |
void setShowEditButton |
( |
bool |
show | ) |
|
|
inlinenoexcept |
void setShowMoveButtons |
( |
bool |
show | ) |
|
|
inlinenoexcept |
void setBrowseButtonColumn |
( |
int |
col | ) |
|
|
inlinenoexcept |
void currentChanged |
( |
const QModelIndex & |
current, |
|
|
const QModelIndex & |
previous |
|
) |
| |
|
overrideprotectedvirtual |
void rowsInserted |
( |
const QModelIndex & |
parent, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
overrideprotectedvirtual |
void currentRowChanged |
( |
int |
row | ) |
|
|
signal |
void btnAddClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnRemoveClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnCopyClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnEditClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnMoveUpClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnMoveDownClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void btnBrowseClicked |
( |
const QVariant & |
data | ) |
|
|
signal |
void installButtons |
( |
int |
row | ) |
|
|
privatenoexcept |
QToolButton * createButton |
( |
const QString & |
objectName, |
|
|
const QIcon & |
icon, |
|
|
const QString & |
text, |
|
|
const QString & |
toolTip, |
|
|
int |
width, |
|
|
int |
height, |
|
|
Signal |
clickedSignal, |
|
|
const QPersistentModelIndex & |
index |
|
) |
| |
|
privatenoexcept |
void buttonClickedHandler |
( |
Signal |
clickedSignal, |
|
|
const QPersistentModelIndex & |
index |
|
) |
| |
|
privatenoexcept |
The documentation for this class was generated from the following files: