summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-03-16 16:31:13 +0100
committerArno <am@disconnect.de>2013-03-16 16:31:13 +0100
commit4c8aae81b91deac9d95a1f0f50ef30641bb8638a (patch)
treee60c459b2ae0d357d28907a1afc6a439807f181e
parent7bda040f35c6be15dbf1ba007de28849a0803cae (diff)
downloadSheMov-4c8aae81b91deac9d95a1f0f50ef30641bb8638a.tar.gz
SheMov-4c8aae81b91deac9d95a1f0f50ef30641bb8638a.tar.bz2
SheMov-4c8aae81b91deac9d95a1f0f50ef30641bb8638a.zip
Made CTRL++ work again
Maybe even more intiuitive this time using unix shell globs...
-rw-r--r--fileview.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/fileview.cpp b/fileview.cpp
index 07e64be..f582433 100644
--- a/fileview.cpp
+++ b/fileview.cpp
@@ -28,6 +28,7 @@
#include "fileview.h"
#include "hoverwindow.h"
#include "smglobals.h"
+#include "filesystemfileproxy.h"
#include "smdirmodel.h"
#include "helper.h"
@@ -51,9 +52,11 @@ void FileView::markFiles(){
if(!rowCount || glob.isEmpty()){
return;
}
- QRegExp re(glob);
+ QRegExp re(glob, Qt::CaseInsensitive, QRegExp::WildcardUnix);
+ FilesystemFileProxy *proxy = qobject_cast<FilesystemFileProxy*>(model());
+ SmDirModel *m = qobject_cast<SmDirModel*>(proxy->sourceModel());
for(int i = 0; i < rowCount; ++i){
- QModelIndex cur = rootIndex().child(i, 0);
+ QModelIndex cur = m->rootIndex().child(i, 0);
if(cur.data(SmDirModel::NameRole).toString() == ".."){
continue;
}