From 199bf012a87ace47044627189012b854570e3970 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 24 May 2010 14:14:00 +0200 Subject: Implemented PictureViewer class Don't call an external program for showing a picture. When an image is doubleclicked a new windows shows the picture. Pictures can still be opened in an exteral program by using the "Open with..." context menu item. --- helper.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'helper.h') diff --git a/helper.h b/helper.h index 64dc3da..90a1ad6 100644 --- a/helper.h +++ b/helper.h @@ -11,6 +11,7 @@ #include class QString; +class QFileInfo; namespace Helper { const QString mimeType(const QString &path); @@ -22,6 +23,14 @@ namespace Helper { public: bool operator()(const QString s, const QString &part) const; }; + class SortFileInfoList : public std::binary_function { + public: + bool operator()(const QFileInfo &lhs, const QFileInfo &rhs) const; + }; + class FileInfoListContains : public std::binary_function { + public: + bool operator()(const QFileInfo &info, const QString &file) const; + }; } #endif -- cgit v1.2.3-70-g09d2