• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • SessionListModel
Public Member Functions | Protected Member Functions | List of all members
Konsole::SessionListModel Class Reference

#include <SessionListModel.h>

Inheritance diagram for Konsole::SessionListModel:
Inheritance graph
[legend]

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

SessionListModel::SessionListModel ( QObject *  parent = 0)
explicit

Definition at line 35 of file SessionListModel.cpp.

Member Function Documentation

int SessionListModel::columnCount ( const QModelIndex &  parent) const
virtual

Definition at line 108 of file SessionListModel.cpp.

QVariant SessionListModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

Reimplemented in Konsole::CheckableSessionModel.

Definition at line 51 of file SessionListModel.cpp.

QVariant SessionListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Definition at line 88 of file SessionListModel.cpp.

QModelIndex SessionListModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
virtual

Definition at line 136 of file SessionListModel.cpp.

QModelIndex SessionListModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 118 of file SessionListModel.cpp.

int SessionListModel::rowCount ( const QModelIndex &  parent) const
virtual

Definition at line 113 of file SessionListModel.cpp.

virtual void Konsole::SessionListModel::sessionRemoved ( Session *  )
inlineprotectedvirtual

Reimplemented in Konsole::CheckableSessionModel.

Definition at line 66 of file SessionListModel.h.

void SessionListModel::setSessions ( const QList< Session * > &  sessions)

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:
  • SessionListModel.h
  • SessionListModel.cpp
This file is part of the KDE documentation.
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.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal