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

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

Inheritance diagram for TopicWidget:
Collaboration diagram for TopicWidget:

Signals

void switchedPlain ()

Public Member Functions

 TopicWidget (QWidget *parent=0)
void setTopic (const QModelIndex &index)
void setCustomFont (const QFont &)
void setReadOnly (const bool &readonly)
virtual bool eventFilter (QObject *obj, QEvent *event)
bool isReadOnly () const
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 Slots

void on_topicLineEdit_textEntered ()
void on_topicEditButton_clicked ()
void switchEditable ()
void switchPlain ()
void clickableActivated (const Clickable &)
void updateResizeMode ()
void setCustomFont (const QVariant &)
void setUseCustomFont (const QVariant &)

Private Member Functions

QString sanitizeTopic (const QString &topic)

Private Attributes

Ui::TopicWidget ui
QString _topic
bool _mouseEntered
bool _readonly

Detailed Description

Definition at line 28 of file topicwidget.h.

Constructor & Destructor Documentation

Member Function Documentation

void setCustomFont ( const QFont &  f)

Definition at line 94 of file topicwidget.cpp.

References ui.

Referenced by setCustomFont(), setUseCustomFont(), and TopicWidget().

void setReadOnly ( const bool &  readonly)

Definition at line 178 of file topicwidget.cpp.

References _readonly.

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
virtual

Definition at line 249 of file topicwidget.cpp.

References _mouseEntered, and switchPlain().

bool isReadOnly ( ) const
inline

Definition at line 40 of file topicwidget.h.

References _readonly.

void switchedPlain ( )
signal

Referenced by switchPlain().

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

Definition at line 58 of file topicwidget.cpp.

References setTopic().

void dataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
protectedvirtualslot
void on_topicEditButton_clicked ( )
privateslot

Definition at line 224 of file topicwidget.cpp.

References switchEditable().

void switchEditable ( )
privateslot

Definition at line 230 of file topicwidget.cpp.

References ui.

Referenced by on_topicEditButton_clicked().

void switchPlain ( )
privateslot

Definition at line 239 of file topicwidget.cpp.

References _topic, switchedPlain(), and ui.

Referenced by eventFilter(), on_topicLineEdit_textEntered(), and setTopic().

void clickableActivated ( const Clickable click)
privateslot
void updateResizeMode ( )
privateslot
void setCustomFont ( const QVariant &  v)
privateslot

Definition at line 84 of file topicwidget.cpp.

References setCustomFont(), and UiSettings::value().

void setUseCustomFont ( const QVariant &  v)
privateslot

Definition at line 73 of file topicwidget.cpp.

References setCustomFont(), and UiSettings::value().

Referenced by TopicWidget().

QString sanitizeTopic ( const QString &  topic)
private

Definition at line 277 of file topicwidget.cpp.

Referenced by setTopic().

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

Ui::TopicWidget ui
private
QString _topic
private

Definition at line 64 of file topicwidget.h.

Referenced by clickableActivated(), setTopic(), and switchPlain().

bool _mouseEntered
private

Definition at line 65 of file topicwidget.h.

Referenced by eventFilter(), and TopicWidget().

bool _readonly
private

Definition at line 66 of file topicwidget.h.

Referenced by isReadOnly(), setReadOnly(), setTopic(), and TopicWidget().

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: