Konsole
#include <SessionListModel.h>
Public Member Functions | |
SessionListModel (QObject *parent=0) | |
virtual int | columnCount (const QModelIndex &parent) const |
virtual QVariant | data (const QModelIndex &index, int role) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent) const |
void | setSessions (const QList< Session * > &sessions) |
Protected Member Functions | |
virtual void | sessionRemoved (Session *) |
Detailed Description
Item-view model which contains a flat list of sessions.
After constructing the model, call setSessions() to set the sessions displayed in the list. When a session ends (after emitting the finished() signal) it is automatically removed from the list.
The internal pointer for each item in the model (index.internalPointer()) is the associated Session*
Definition at line 42 of file SessionListModel.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 35 of file SessionListModel.cpp.
Member Function Documentation
|
virtual |
Definition at line 108 of file SessionListModel.cpp.
|
virtual |
Reimplemented in Konsole::CheckableSessionModel.
Definition at line 51 of file SessionListModel.cpp.
|
virtual |
Definition at line 88 of file SessionListModel.cpp.
|
virtual |
Definition at line 136 of file SessionListModel.cpp.
|
virtual |
Definition at line 118 of file SessionListModel.cpp.
|
virtual |
Definition at line 113 of file SessionListModel.cpp.
|
inlineprotectedvirtual |
Reimplemented in Konsole::CheckableSessionModel.
Definition at line 66 of file SessionListModel.h.
Sets the list of sessions displayed in the model.
To display all sessions that are currently running in the list, call setSessions(SessionManager::instance()->sessions())
Definition at line 40 of file SessionListModel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.