diff options
author | Arno <am@disconnect.de> | 2011-04-30 10:26:41 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-04-30 10:26:41 +0200 |
commit | 9b7075a7fbd3550dec0c98f6d0b4680830324085 (patch) | |
tree | 1874b4c5f9b03d371104c1411976eef041cd0adc /filestreewidget.cpp | |
parent | 41a06ed5bc736e4498b7a23714ee02e226455a0e (diff) | |
download | SheMov-9b7075a7fbd3550dec0c98f6d0b4680830324085.tar.gz SheMov-9b7075a7fbd3550dec0c98f6d0b4680830324085.tar.bz2 SheMov-9b7075a7fbd3550dec0c98f6d0b4680830324085.zip |
Fix Hotspot of X-Cursor when hovering
Made Y-Offset for the cursor configurable. After switching from
kwin to awesome WM the hotspot for hovering was way off.
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r-- | filestreewidget.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp index 4e2a196..f1d65c4 100644 --- a/filestreewidget.cpp +++ b/filestreewidget.cpp @@ -321,6 +321,7 @@ void FilesTreeView::readSettings(){ mHoverPics = s.value("ui/hoverpics", true).toBool(); mHoverWin->setWindowOpacity(s.value("ui/hoveropacity", 10).toFloat() / 10.0); mHoverMovies = s.value("ui/hovermovies", true).toBool(); + mCursorOffest = s.value("ui/cursoroffset").toInt(); } void FilesTreeView::readHeaderConfig(){ @@ -358,7 +359,7 @@ bool FilesTreeView::event(QEvent *e){ if(!hEvent){ return QTreeView::event(e); } - QPoint hotSpot(hEvent->pos().x(), hEvent->pos().y() - SmGlobals::instance()->cursorSize().height()); + QPoint hotSpot(hEvent->pos().x(), hEvent->pos().y() + mCursorOffest); QModelIndex curIdx = indexAt(hotSpot); /* The whole point of this if/then/else mess is to exit as early as possible |