From 7e0abc7cde4a9c02fabc27cc2b6506bd41f0588d Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 23 Oct 2010 15:09:49 +0200 Subject: Fix hover issues Hopefully this commit fixes all issues with hovering over items. First, only use QCursor::pos() to determine the position of the hover window and fix position calculation accordingly. For that SmGlobals now return a QSize of the actual cursor size. Introduced a hoverOffeset to HoverWindow defaulting to SmGlobals::cursorSize() + 30 to prevent a HoverLeave event on showing the HoverWindow. Also fixed Qt::WindowFlags of HoverWindow. We don't want the HoverWindow to show in the taskbar or get sent to background when clicking on an item. --- seriestreewidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'seriestreewidget.h') diff --git a/seriestreewidget.h b/seriestreewidget.h index 774120a..b8d89e6 100644 --- a/seriestreewidget.h +++ b/seriestreewidget.h @@ -79,6 +79,7 @@ class SeriesTreeView : public QTreeView { virtual bool event(QEvent *event); private: + bool exitHover(bool exitVal = true); QStringList children(const QModelIndex &idx) const; QModelIndex mCurHover; HoverWindow *mHoverWin; -- cgit v1.2.3-70-g09d2