Provides a table view of features of a QgsVectorLayer.
More...
#include <qgsattributetableview.h>
Signals |
void | willShowContextMenu (QMenu *menu, QModelIndex atIndex) |
| Is emitted, in order to provide a hook to add aditional menu entries to the context menu.
|
void | finished () |
Protected Member Functions |
void | mousePressEvent (QMouseEvent *event) |
| Called for mouse press events on a table cell.
|
void | mouseReleaseEvent (QMouseEvent *event) |
| Called for mouse release events on a table cell.
|
void | mouseMoveEvent (QMouseEvent *event) |
| Called for mouse move events on a table cell.
|
void | keyPressEvent (QKeyEvent *event) |
| Called for key press events Disables selection change by only pressing an arrow key.
|
void | contextMenuEvent (QContextMenuEvent *event) |
| Is called when the context menu will be shown.
|
void | closeEvent (QCloseEvent *event) |
| Saves geometry to the settings on close.
|
Detailed Description
Provides a table view of features of a QgsVectorLayer.
This can either be used as a standalone widget. QgsBrowser features a reference implementation. Or this can be used within the QgsDualView stacked widget.
Constructor & Destructor Documentation
QgsAttributeTableView::QgsAttributeTableView |
( |
QWidget * |
parent = 0 | ) |
|
QgsAttributeTableView::~QgsAttributeTableView |
( |
| ) |
|
|
virtual |
Member Function Documentation
void QgsAttributeTableView::_q_selectRow |
( |
int |
row | ) |
|
|
virtualslot |
void QgsAttributeTableView::closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
protected |
Saves geometry to the settings on close.
- Parameters
-
void QgsAttributeTableView::contextMenuEvent |
( |
QContextMenuEvent * |
event | ) |
|
|
protected |
Is called when the context menu will be shown.
Emits a willShowContextMenu signal, so the menu can be populated by other parts of the application.
- Parameters
-
event | The associated event object. |
bool QgsAttributeTableView::eventFilter |
( |
QObject * |
object, |
|
|
QEvent * |
event |
|
) |
| |
|
virtual |
This event filter is installed on the verticalHeader to intercept mouse press and release events.
These are used to disable / enable live synchronisation with the map canvas selection which can be slow due to recurring canvas repaints. Updating the
- Parameters
-
object | The object which is the target of the event. |
event | The intercepted event |
- Returns
- Returns always false, so the event gets processed
void QgsAttributeTableView::finished |
( |
| ) |
|
|
signal |
void QgsAttributeTableView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
protected |
Called for key press events Disables selection change by only pressing an arrow key.
- Parameters
-
void QgsAttributeTableView::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Called for mouse move events on a table cell.
Disables selection change for these events.
- Parameters
-
void QgsAttributeTableView::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Called for mouse press events on a table cell.
Disables selection change for these events.
- Parameters
-
void QgsAttributeTableView::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protected |
Called for mouse release events on a table cell.
Disables selection change for these events.
- Parameters
-
void QgsAttributeTableView::repaintRequested |
( |
QModelIndexList |
indexes | ) |
|
|
slot |
void QgsAttributeTableView::repaintRequested |
( |
| ) |
|
|
slot |
void QgsAttributeTableView::selectAll |
( |
| ) |
|
|
virtualslot |
void QgsAttributeTableView::selectRow |
( |
int |
row | ) |
|
|
virtualslot |
setFeatureSelectionManager
- Parameters
-
featureSelectionManager | We will take ownership |
void QgsAttributeTableView::willShowContextMenu |
( |
QMenu * |
menu, |
|
|
QModelIndex |
atIndex |
|
) |
| |
|
signal |
Is emitted, in order to provide a hook to add aditional menu entries to the context menu.
- Parameters
-
menu | If additional QMenuItems are added, they will show up in the context menu. |
atIndex | The QModelIndex, to which the context menu belongs. Relative to the source model. In most cases, this will be a QgsAttributeTableFilterModel |
The documentation for this class was generated from the following files: