#include <YACSWidgets.hxx>
|
QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
|
bool | event (QEvent *e) |
|
Definition at line 30 of file YACSWidgets.hxx.
YTableView::YTableView |
( |
QWidget * |
parent = 0 | ) |
|
bool YTableView::event |
( |
QEvent * |
e | ) |
|
|
protected |
Definition at line 34 of file YACSWidgets.cxx.
36 if (e->type() == QEvent::ShortcutOverride)
41 return QTableView::event(e);
QModelIndex YTableView::moveCursor |
( |
CursorAction |
cursorAction, |
|
|
Qt::KeyboardModifiers |
modifiers |
|
) |
| |
|
protected |
Definition at line 44 of file YACSWidgets.cxx.
46 QModelIndex ix = currentIndex();
49 return QTableView::moveCursor(cursorAction, modifiers);
51 if(cursorAction==QAbstractItemView::MoveNext || cursorAction==QAbstractItemView::MovePrevious)
54 QModelIndex parent=ix.parent();
55 int rowCount=model()->rowCount(parent);
59 if(cursorAction==QAbstractItemView::MoveNext)
74 return model()->index(row, ix.column(), parent);
76 return QTableView::moveCursor(cursorAction, modifiers);
The documentation for this class was generated from the following files: