diff options
author | Arno <am@disconnect.de> | 2013-03-17 10:08:14 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-03-17 10:08:14 +0100 |
commit | a1a30fbb8ba987b586ff6c8cd80a4215e311da4d (patch) | |
tree | 20142d07e28fa38431b23e916ed7b7b7bcca1796 | |
parent | 4969cdba731671df80df951543dc47c4e52d70de (diff) | |
download | SheMov-a1a30fbb8ba987b586ff6c8cd80a4215e311da4d.tar.gz SheMov-a1a30fbb8ba987b586ff6c8cd80a4215e311da4d.tar.bz2 SheMov-a1a30fbb8ba987b586ff6c8cd80a4215e311da4d.zip |
Another QFileSystemModel::FilePathRole fix
Make hovering work again...
-rw-r--r-- | fileview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |