Konsole
Konsole::CheckableSessionModel Class Reference
A list of sessions with a checkbox next to each one which allows the user to select a subset of the available sessions to perform some action on them. More...
#include <CopyInputDialog.h>
Inheritance diagram for Konsole::CheckableSessionModel:

Public Member Functions | |
CheckableSessionModel (QObject *parent) | |
int | checkColumn () const |
QSet< Session * > | checkedSessions () const |
virtual QVariant | data (const QModelIndex &index, int role) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
void | setCheckable (Session *session, bool checkable) |
void | setCheckColumn (int column) |
void | setCheckedSessions (const QSet< Session * > sessions) |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
Protected Member Functions | |
virtual void | sessionRemoved (Session *) |
Detailed Description
A list of sessions with a checkbox next to each one which allows the user to select a subset of the available sessions to perform some action on them.Definition at line 89 of file CopyInputDialog.h.
Constructor & Destructor Documentation
CheckableSessionModel::CheckableSessionModel | ( | QObject * | parent | ) |
Definition at line 115 of file CopyInputDialog.cpp.
Member Function Documentation
int Konsole::CheckableSessionModel::checkColumn | ( | ) | const [inline] |
Definition at line 123 of file CopyInputDialog.h.
QVariant CheckableSessionModel::data | ( | const QModelIndex & | index, | |
int | role | |||
) | const [virtual] |
Qt::ItemFlags CheckableSessionModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 125 of file CopyInputDialog.cpp.
void CheckableSessionModel::sessionRemoved | ( | Session * | session | ) | [protected, virtual] |
void CheckableSessionModel::setCheckable | ( | Session * | session, | |
bool | checkable | |||
) |
Sets whether a session can be checked or un-checked.
Non-checkable items have the Qt::ItemIsEnabled flag unset.
Definition at line 177 of file CopyInputDialog.cpp.
void CheckableSessionModel::setCheckColumn | ( | int | column | ) |
Definition at line 120 of file CopyInputDialog.cpp.
Sets the list of sessions which are currently checked.
Definition at line 168 of file CopyInputDialog.cpp.
bool CheckableSessionModel::setData | ( | const QModelIndex & | index, | |
const QVariant & | value, | |||
int | role | |||
) | [virtual] |
Definition at line 148 of file CopyInputDialog.cpp.
The documentation for this class was generated from the following files: