summaryrefslogtreecommitdiffstats
path: root/hoverwindow.h
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of HoverWindowArno2019-11-221-38/+0
| | | | | | | It depended on X11, because the hover center wasn't where it was supposed to be, so I worked around it with Xfixes.h, which unfortunately isn't even available in MSYS2. So another fix for compiling this under Windows.
* Various clang warning fixesArno2019-01-121-1/+1
| | | | | Mostly nullptr, one missing include that wasn't really missed, and a stray ;
* Port to Qt5Arno2013-03-031-1/+1
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Fix display of caption when hoveringArno2012-10-271-1/+0
| | | | | Well, centering and sizing text is a bitch when operating with QPixmaps and QImages...
* Code cleanupArno2012-03-161-1/+0
| | | | | How the heck did listitem.h survive for so long? Remove it. And an unused Q_PROPERTY from hoverwindow.h. I guess there's much more...
* Set caption for HoverWindowArno2010-12-131-0/+1
| | | | | Implement a caption for HoverWindow. Used to show the filename when hovering.
* Hover fixArno2010-12-121-1/+1
| | | | | | | 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-2/+10
| | | | | | | | | | | | | | 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/+3
| | | | | | | | | | | 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/+1
| | | | | | This reverts commit 20df1c43f5b7425810b5d16e3658f0772aae9b6c. revert the revert... I actually wanted to check out something...
* Revert "Let HoverWindow always stay on screen"Arno2010-10-171-1/+0
| | | | This reverts commit a3a556cc8af3433de1f8d5e22a4ba62cc029f145.
* Let HoverWindow always stay on screenArno2010-10-171-0/+1
| | | | Fixed HoverWindow so it always stays completely on screeen.
* Hover for FilesTreeWidgetArno2010-10-161-0/+1
| | | | | Hovering over a cover item in FilesTreeWidget shows a HoverWindow with the scaled image under the cursor.
* Created general purpose HoverWidgetArno2010-10-161-0/+26
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.