From a1a30fbb8ba987b586ff6c8cd80a4215e311da4d Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Mar 2013 10:08:14 +0100 Subject: Another QFileSystemModel::FilePathRole fix Make hovering work again... --- fileview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileview.cpp b/fileview.cpp index 8f50330..ad0bdf6 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -151,7 +151,7 @@ bool FileView::event(QEvent *e){ QPoint hotSpot(hEvent->pos().x(), hEvent->pos().y() + mCursorOffset); QModelIndex curIdx = indexAt(hotSpot); HoverFileType ft = None; - QFileInfo curIdxInfo(curIdx.data(QFileSystemModel::FilePathRole).toString()); + QFileInfo curIdxInfo(curIdx.data(SmDirModel::FullPathRole).toString()); if((e->type() == QEvent::HoverEnter) || (e->type() == QEvent::HoverMove)){ if(!curIdx.isValid() || (!curIdx.column() == 0)){ return exitHover(); -- cgit v1.2.3-70-g09d2