X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=b6bcee504655e155be2200c16afc34b262b5ff03;hp=cb263c4471f358026f8514d3bb4c948acb5d52c4;hb=662054e37e36bd5c69e814b5f9ae467598001203;hpb=89c07686d193fe31e1b3ea45735b3f5a0d1e6cfb diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index cb263c44..b6bcee50 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -29,8 +29,10 @@ class NickModel; +class LazySizeHint; class FilteredNickModel; class QSortFilterProxyModel; +class QResizeEvent; class NickView : public QTreeView { Q_OBJECT @@ -52,13 +54,11 @@ public slots: void startQuery(const QModelIndex & modelIndex); private: - QSize _sizeHint; - - void updateSizeHint(); + LazySizeHint *_sizeHint; + BufferInfo bufferInfoFromModelIndex(const QModelIndex & index); QString nickFromModelIndex(const QModelIndex & index); void executeCommand(const BufferInfo & bufferInfo, const QString & command); - };