Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
TitleSetter Class Reference

#include </tmp/quassel/src/qtui/titlesetter.h>

Inheritance diagram for TitleSetter:
Collaboration diagram for TitleSetter:

Public Member Functions

 TitleSetter (MainWin *parent)
QAbstractItemModel * model ()
void setModel (QAbstractItemModel *model)
QItemSelectionModel * selectionModel () const
void setSelectionModel (QItemSelectionModel *selectionModel)
QModelIndex currentIndex () const

Protected Slots

virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void closeEditor (QWidget *, QAbstractItemDelegate::EndEditHint)
virtual void commitData (QWidget *)
virtual void editorDestroyed (QObject *)
virtual void rowsAboutToBeRemoved (const QModelIndex &, int, int)
virtual void rowsInserted (const QModelIndex &, int, int)
virtual void selectionChanged (const QItemSelection &, const QItemSelection &)

Protected Attributes

QPointer< QAbstractItemModel > _model
QPointer< QItemSelectionModel > _selectionModel

Private Member Functions

void changeWindowTitle (const QModelIndex &index)

Private Attributes

MainWin_mainWin

Detailed Description

Definition at line 28 of file titlesetter.h.

Constructor & Destructor Documentation

TitleSetter ( MainWin parent)

Definition at line 27 of file titlesetter.cpp.

Member Function Documentation

void currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedvirtualslot

Definition at line 34 of file titlesetter.cpp.

References changeWindowTitle().

void dataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
protectedvirtualslot
void changeWindowTitle ( const QModelIndex &  index)
private
virtual void closeEditor ( QWidget *  ,
QAbstractItemDelegate::EndEditHint   
)
inlineprotectedvirtualslotinherited

Definition at line 48 of file abstractitemview.h.

virtual void commitData ( QWidget *  )
inlineprotectedvirtualslotinherited

Definition at line 49 of file abstractitemview.h.

virtual void editorDestroyed ( QObject *  )
inlineprotectedvirtualslotinherited

Definition at line 52 of file abstractitemview.h.

virtual void rowsAboutToBeRemoved ( const QModelIndex &  ,
int  ,
int   
)
inlineprotectedvirtualslotinherited

Definition at line 53 of file abstractitemview.h.

Referenced by AbstractItemView::setModel().

virtual void rowsInserted ( const QModelIndex &  ,
int  ,
int   
)
inlineprotectedvirtualslotinherited

Definition at line 54 of file abstractitemview.h.

Referenced by AbstractItemView::setModel().

virtual void selectionChanged ( const QItemSelection &  ,
const QItemSelection &   
)
inlineprotectedvirtualslotinherited

Definition at line 55 of file abstractitemview.h.

Referenced by AbstractItemView::setSelectionModel().

Member Data Documentation

MainWin* _mainWin
private

Definition at line 40 of file titlesetter.h.

Referenced by changeWindowTitle().

QPointer<QAbstractItemModel> _model
protectedinherited

Definition at line 55 of file abstractitemview.h.

Referenced by AbstractItemView::model(), and AbstractItemView::setModel().

QPointer<QItemSelectionModel> _selectionModel
protectedinherited

The documentation for this class was generated from the following files: