summaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgets/imageviewer/imageviewer.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-06-04 12:25:56 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-12 14:23:48 +0200
commit3f39c0f76cec121181ab9d6a0cf057c1b1aeb25c (patch)
tree5208e11f760e91ae788e9c7bcf06ac5b63922cfa /examples/widgets/widgets/imageviewer/imageviewer.h
parent81ba16cad933981f55218964a89ed1446022efba (diff)
Polish the image viewer example.
- Open files passed on the command line. - Point the file dialog to the pictures location and use a filter string for the supported types. - Set the window title according to file name. Task-number: QTBUG-37203 Task-number: QTBUG-39287 Change-Id: I4e5e43875c3a7544c862c054181e75942939c1d5 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'examples/widgets/widgets/imageviewer/imageviewer.h')
-rw-r--r--examples/widgets/widgets/imageviewer/imageviewer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/widgets/imageviewer/imageviewer.h b/examples/widgets/widgets/imageviewer/imageviewer.h
index 7a0f0eb845..a4fd82a696 100644
--- a/examples/widgets/widgets/imageviewer/imageviewer.h
+++ b/examples/widgets/widgets/imageviewer/imageviewer.h
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
@@ -61,6 +61,7 @@ class ImageViewer : public QMainWindow
public:
ImageViewer();
+ bool loadFile(const QString &);
private slots:
void open();