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

Konsole

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

#include <CopyInputDialog.h>

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

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)
 
- Public Member Functions inherited from Konsole::SessionListModel
 SessionListModel (QObject *parent=0)
 
virtual int columnCount (const QModelIndex &parent) 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

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 95 of file CopyInputDialog.h.

Constructor & Destructor Documentation

CheckableSessionModel::CheckableSessionModel ( QObject *  parent)
explicit

Definition at line 120 of file CopyInputDialog.cpp.

Member Function Documentation

int Konsole::CheckableSessionModel::checkColumn ( ) const
inline

Definition at line 130 of file CopyInputDialog.h.

QSet< Session * > CheckableSessionModel::checkedSessions ( ) const

Returns the set of checked sessions.

Definition at line 176 of file CopyInputDialog.cpp.

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

Reimplemented from Konsole::SessionListModel.

Definition at line 139 of file CopyInputDialog.cpp.

Qt::ItemFlags CheckableSessionModel::flags ( const QModelIndex &  index) const
virtual

Definition at line 130 of file CopyInputDialog.cpp.

void CheckableSessionModel::sessionRemoved ( Session *  session)
protectedvirtual

Reimplemented from Konsole::SessionListModel.

Definition at line 189 of file CopyInputDialog.cpp.

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 180 of file CopyInputDialog.cpp.

void CheckableSessionModel::setCheckColumn ( int  column)

Definition at line 125 of file CopyInputDialog.cpp.

void CheckableSessionModel::setCheckedSessions ( const QSet< Session * >  sessions)

Sets the list of sessions which are currently checked.

Definition at line 171 of file CopyInputDialog.cpp.

bool CheckableSessionModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
virtual

Definition at line 152 of file CopyInputDialog.cpp.


The documentation for this class was generated from the following files:
  • CopyInputDialog.h
  • CopyInputDialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:24 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