From 4c8aae81b91deac9d95a1f0f50ef30641bb8638a Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 16 Mar 2013 16:31:13 +0100 Subject: Made CTRL++ work again Maybe even more intiuitive this time using unix shell globs... --- fileview.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'fileview.cpp') 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(model()); + SmDirModel *m = qobject_cast(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; } -- cgit v1.2.3-70-g09d2