summaryrefslogtreecommitdiffstats
path: root/hoverwindow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix display of caption when hoveringArno2012-10-271-17/+13
| | | | | Well, centering and sizing text is a bitch when operating with QPixmaps and QImages...
* Fix FrameCache and HoverWindowArno2012-03-181-0/+2
| | | | | | Another commit that should be two. While fixing FrameCache to delete invalid Pixmaps, I ventured into the depths of HoverWindow. Now it hides when focus leaves the widget we're hovering over.
* Set caption for HoverWindowArno2010-12-131-0/+30
| | | | | Implement a caption for HoverWindow. Used to show the filename when hovering.
* Buxfixes for HoverWindowArno2010-12-131-1/+9
| | | | | | | Resize widget to content when switching from pixmap to text content. To get the size let QTextDocument render the HTML and then get the size. Also set the initial opacity to the configured value in the constructor.
* Hover fixArno2010-12-121-6/+8
| | | | | | | When hovering over movies in local mode both the ToolTip and the hover image was shown. Fixed by only showing the ToolTip when the movie is not available, eg. archive mode. In any other case incorporate the ToolTip info into the hover image.
* Fix hover issuesArno2010-10-231-15/+28
| | | | | | | | | | | | | | 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.
* Implemented hovering in FilesystemWidgetArno2010-10-171-0/+18
| | | | | | | | | | | Hovering over dirs and pictures show either the content of the directory or a scaled image of the picture. This is a strange commit, though. When the archive was the last opened tab the program crashes when changing to FilesystemView. I don't have the slightest clue, why, so I simply removed setting the last opened tab on startup. Also there is some strange behavior regarding the position of the HoverWindow and what Qt thinks the global position is...
* Revert "Revert "Let HoverWindow always stay on screen""Arno2010-10-171-0/+16
| | | | | | This reverts commit 20df1c43f5b7425810b5d16e3658f0772aae9b6c. revert the revert... I actually wanted to check out something...
* Revert "Let HoverWindow always stay on screen"Arno2010-10-171-16/+0
| | | | This reverts commit a3a556cc8af3433de1f8d5e22a4ba62cc029f145.
* Let HoverWindow always stay on screenArno2010-10-171-0/+16
| | | | Fixed HoverWindow so it always stays completely on screeen.
* Hover for FilesTreeWidgetArno2010-10-161-1/+13
| | | | | Hovering over a cover item in FilesTreeWidget shows a HoverWindow with the scaled image under the cursor.
* Created general purpose HoverWidgetArno2010-10-161-0/+41
This commit outsources the HoverWindow to a seperate file and makes it possible to set a pixmap to the window. Also the cursor offset is only calculated once in SmGlobals.