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

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

Inheritance diagram for NickListWidget:
Collaboration diagram for NickListWidget:

Public Slots

void showWidget (bool visible)

Signals

void nickSelectionChanged (const QModelIndexList &)

Public Member Functions

 NickListWidget (QWidget *parent=0)
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 rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
virtual void closeEditor (QWidget *, QAbstractItemDelegate::EndEditHint)
virtual void commitData (QWidget *)
virtual void dataChanged (const QModelIndex &, const QModelIndex &)
virtual void editorDestroyed (QObject *)
virtual void rowsInserted (const QModelIndex &, int, int)
virtual void selectionChanged (const QItemSelection &, const QItemSelection &)

Protected Member Functions

virtual QSize sizeHint () const
virtual void hideEvent (QHideEvent *)
virtual void showEvent (QShowEvent *)

Protected Attributes

QPointer< QAbstractItemModel > _model
QPointer< QItemSelectionModel > _selectionModel

Private Slots

void removeBuffer (BufferId bufferId)
void nickSelectionChanged ()

Private Member Functions

QDockWidget * dock () const

Private Attributes

Ui::NickListWidget ui
QHash< BufferId, NickView * > nickViews

Detailed Description

Definition at line 37 of file nicklistwidget.h.

Constructor & Destructor Documentation

NickListWidget ( QWidget *  parent = 0)

Definition at line 35 of file nicklistwidget.cpp.

References ui.

Member Function Documentation

void nickSelectionChanged ( const QModelIndexList &  )
signal
QSize sizeHint ( ) const
protectedvirtual

Definition at line 201 of file nicklistwidget.cpp.

References ui.

void hideEvent ( QHideEvent *  event)
protectedvirtual

Definition at line 52 of file nicklistwidget.cpp.

References nickSelectionChanged().

void showEvent ( QShowEvent *  event)
protectedvirtual

Definition at line 59 of file nicklistwidget.cpp.

References nickSelectionChanged(), NickView::selectedIndexes(), and ui.

void currentChanged ( const QModelIndex &  current,
const QModelIndex &  previous 
)
protectedvirtualslot
void rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
protectedvirtualslot
void removeBuffer ( BufferId  bufferId)
privateslot

Definition at line 185 of file nicklistwidget.cpp.

References AbstractItemView::model(), nickViews, NickView::setModel(), and ui.

Referenced by rowsAboutToBeRemoved().

void nickSelectionChanged ( )
privateslot

Definition at line 138 of file nicklistwidget.cpp.

References NickView::selectedIndexes(), and ui.

Referenced by currentChanged(), hideEvent(), and showEvent().

QDockWidget * dock ( ) const
private

Definition at line 42 of file nicklistwidget.cpp.

Referenced by showWidget().

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 dataChanged ( const QModelIndex &  ,
const QModelIndex &   
)
inlineprotectedvirtualslotinherited

Definition at line 51 of file abstractitemview.h.

Referenced by AbstractItemView::setModel().

virtual void editorDestroyed ( QObject *  )
inlineprotectedvirtualslotinherited

Definition at line 52 of file abstractitemview.h.

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

Ui::NickListWidget ui
private
QHash<BufferId, NickView *> nickViews
private

Definition at line 65 of file nicklistwidget.h.

Referenced by currentChanged(), removeBuffer(), and rowsAboutToBeRemoved().

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: