Add a utility to check if running on a lambda thread

This commit is contained in:
baldurk
2017-02-07 14:57:42 +00:00
parent bfc68d8320
commit d1a4238e00
+2
View File
@@ -560,6 +560,8 @@ public:
return m_Thread->wait(time);
return true;
}
bool isCurrentThread() { return QThread::currentThread() == m_Thread; }
};
class QFileFilterModel : public QSortFilterProxyModel