summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-10-19 16:03:17 +0200
committerArno <am@disconnect.de>2012-10-19 16:03:17 +0200
commitc37164306b1cf713e63d607fa1d1e866a5bbaa12 (patch)
tree0b34ae8337a5d36f0a0cf0e79fffaefc39ebbae0 /helper.cpp
parentb185254de61a7b6497d480339a9a38ff94a2cd87 (diff)
downloadSheMov-c37164306b1cf713e63d607fa1d1e866a5bbaa12.tar.gz
SheMov-c37164306b1cf713e63d607fa1d1e866a5bbaa12.tar.bz2
SheMov-c37164306b1cf713e63d607fa1d1e866a5bbaa12.zip
Keep current Pic when adding files to PicViewer2
Try to get the position of the current picture after adding and clearing the file list of PictureViewer2. While thinking of using std::find for this I realized that the operator()-functions in Helper:: weren't used any more, so remove them and the <algorithm> includes.
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/helper.cpp b/helper.cpp
index f83b2f7..6c8a406 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -203,14 +203,6 @@ namespace Helper {
return QString::fromAscii(colString);
}
- 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;
- }
-
void centerWidget(QWidget *widget){
QRect widgetRect = widget->rect();
widgetRect.moveCenter(qApp->desktop()->screenGeometry().center());