From 1e14ae6748f271265dd719ac0766a2da3501a21f Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Mar 2012 15:15:53 +0100 Subject: Add keyboard actions to PictureViewer2 Never, ever forget: QVariant() casts to a valid int! Again, this was a tough one, but maybe I shouldn't drink and program. PictureViewer2 reacts to Escape and Space. Escape hides it and stops the slide timer, Space activates the slide timer. --- pictureswidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pictureswidget.h') diff --git a/pictureswidget.h b/pictureswidget.h index 0239560..cdc40b5 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -74,6 +74,7 @@ class PictureView : public QTreeView { void refresh(); void setPVData(int replace = false); void setPVAll(); + void setHoverWinVisible(bool visible) const; protected: virtual void hideEvent(QHideEvent *); -- cgit v1.2.3-70-g09d2