From c90f920ebc2dd3386d4f84df3ad25480fbaf616b Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 8 Sep 2012 11:38:09 +0200 Subject: Implement copy file from PictureViewer2 Add an action to PictureViewer2 for copying the current pic to another directory. When I tried to add the QAction to the context menu, I realized that I chose the variable names picView and picViewer in shemov.cpp very poorly. Took some time to sift though it. Eventually I shifted some code around to make it more readable. While at it I replaced the individual separators with createSeparator(). Other than adding the Copy To action no functional changes. --- pictureviewer2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pictureviewer2.h') diff --git a/pictureviewer2.h b/pictureviewer2.h index 95f4824..d9fec03 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -49,6 +49,7 @@ class PictureViewer2 : public QGraphicsView { void writeSettings(); void shuffle(); void initActions(); + void copyCurrent(); protected: virtual void wheelEvent(QWheelEvent *event); -- cgit v1.2.3-70-g09d2