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.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'helper.cpp') diff --git a/helper.cpp b/helper.cpp index 1b8640b..d03c383 100644 --- a/helper.cpp +++ b/helper.cpp @@ -117,8 +117,16 @@ namespace Helper { return retval; } - bool StringListContains::operator()(const QString s, const QString &part) const{ + bool StringListContains::operator()(const QString s, const QString &part) const { return s.contains(part); } + + bool SortFileInfoList::operator ()(const QFileInfo &lhs, const QFileInfo &rhs) const { + return lhs.fileName().toLower() < rhs.fileName().toLower(); + } + + bool FileInfoListContains::operator ()(const QFileInfo &info, const QString &file) const { + return info.fileName() == file; + } } -- cgit v1.2.3-70-g09d2