X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.h;h=ae1bb37ad0dd147bf4181ec3d5094aaeefed2552;hb=b5385b3ddf6f0e8df8f0af7275b59dcc1fcd0ed1;hp=6e674126eda3f863e90070b9980206ed6f12ea7a;hpb=d6b056e936ec441258d291b7a8af7b83f9f53016;p=quassel.git diff --git a/src/uisupport/bufferview.h b/src/uisupport/bufferview.h index 6e674126..ae1bb37a 100644 --- a/src/uisupport/bufferview.h +++ b/src/uisupport/bufferview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -36,15 +36,23 @@ public: BufferView(QWidget *parent = 0); void init(); void setModel(QAbstractItemModel *model); - void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QList nets); + void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QList nets); signals: void removeBuffer(const QModelIndex &); - + +protected: + virtual void keyPressEvent(QKeyEvent *); + virtual void rowsInserted (const QModelIndex & parent, int start, int end); + virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); + virtual void wheelEvent(QWheelEvent *); + virtual QSize sizeHint() const; + private slots: void joinChannel(const QModelIndex &index); - void keyPressEvent(QKeyEvent *); - void rowsInserted (const QModelIndex & parent, int start, int end); + void toggleHeader(bool checked); + void showContextMenu(const QPoint &); + };