diff options
author | Arno <am@disconnect.de> | 2010-05-24 14:14:00 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-05-24 14:14:00 +0200 |
commit | 199bf012a87ace47044627189012b854570e3970 (patch) | |
tree | 735966e8d8843c3f5beddaaff6c657d8c5bba030 /helper.h | |
parent | f3b7e335c988cadd463063ca72790a638e44970e (diff) | |
download | SheMov-199bf012a87ace47044627189012b854570e3970.tar.gz SheMov-199bf012a87ace47044627189012b854570e3970.tar.bz2 SheMov-199bf012a87ace47044627189012b854570e3970.zip |
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.
Diffstat (limited to 'helper.h')
-rw-r--r-- | helper.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -11,6 +11,7 @@ #include <magic.h> 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<QFileInfo, QFileInfo, bool> { + public: + bool operator()(const QFileInfo &lhs, const QFileInfo &rhs) const; + }; + class FileInfoListContains : public std::binary_function<QFileInfo, QString, bool> { + public: + bool operator()(const QFileInfo &info, const QString &file) const; + }; } #endif |