From 19674f64699ba883f24a97a04505ca2c7f12634e Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Oct 2010 12:48:20 +0200 Subject: Implemented hovering in FilesystemWidget 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... --- hoverwindow.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hoverwindow.h') diff --git a/hoverwindow.h b/hoverwindow.h index 4223f9a..49aec40 100644 --- a/hoverwindow.h +++ b/hoverwindow.h @@ -9,6 +9,8 @@ #define HOVERWINDOW_H #include +#include +#include class QLabel; @@ -18,6 +20,7 @@ class HoverWindow : public QWidget { explicit HoverWindow(QWidget *parent = 0, Qt::WindowFlags f = Qt::FramelessWindowHint); void setContent(const QString &parent, const QStringList &children); void setPixmap(const QPixmap &pm); + void setData(const QList &data); int pixmapHeight() const; void setPos(const QPoint &cursorPos); -- cgit v1.2.3-70-g09d2