X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=a95798cbade3841f6c20a690717baac069f00c5e;hb=82936b9c45a2dbf0c1742654f71c6c7e73d2f724;hp=8a7972d0193fb50e71908990a61ee842b9979296;hpb=213f241aaad270308a5ab556f9eb4ab01033b3f5;p=quassel.git diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 8a7972d0..a95798cb 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -33,7 +33,11 @@ public: protected: virtual void rowsInserted(const QModelIndex &parent, int start, int end); - virtual void customEvent(QEvent *event); + + //! This reimplementation ensures that the current index is first in list + virtual QModelIndexList selectedIndexes() const; + + void unanimatedExpandAll(); public slots: virtual void setModel(QAbstractItemModel *model); @@ -42,27 +46,11 @@ public slots: void showContextMenu(const QPoint & pos); void startQuery(const QModelIndex & modelIndex); -private: - -}; - -// ****************************** -// NickViewDelgate -// ****************************** -#include - -class NickViewDelegate : public QStyledItemDelegate { - Q_OBJECT - -public: - NickViewDelegate(QObject *parent = 0); - -protected: - virtual void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const; +signals: + void selectionUpdated(); private: - QColor _FgOnlineStatus; - QColor _FgAwayStatus; + friend class NickListWidget; // needs selectedIndexes() }; #endif