From 130e0a3115cd66e38ec57846e06f69e7fd284400 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Sep 2013 06:12:33 +0200 Subject: Switch to QRunnable + QThreadPool Get rid of SmDataCollector and do its job in small, QRunnable tasks and let QThreadPool manage the treads. Works well with a local Filesystem. Yet to see how it works over networked Filesystems. Ah, before I forget: NEVER, EVER USE QPixmap in THREADS -> Random crashes! (Yes, I know, it's documented...) --- fileview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fileview.cpp') diff --git a/fileview.cpp b/fileview.cpp index 80a81bd..cc636ad 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -103,8 +103,6 @@ void FileView::readConfig(){ mWhen = s.value("ui/grabframe", "00:00:00").toString(); mHoverWin->setWindowOpacity(s.value("ui/hoveropacity", 10).toFloat() / 10.0); mCursorOffset = s.value("ui/cursoroffset").toInt(); - bool checkPresent = s.value("database/checkpresent").toBool(); - mModel->setCheckForPresent(checkPresent); readHeaderConfig(); } @@ -117,7 +115,7 @@ void FileView::closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint h QSortFilterProxyModel *proxy = qobject_cast(model()); QModelIndex sourceIdx = proxy->mapToSource(currentIndex()); emit editorClosed(sourceIdx); - mModel->refresTimer()->start(); + mModel->refreshTimer()->start(); } void FileView::contextMenuEvent(QContextMenuEvent *e){ -- cgit v1.2.3-70-g09d2