#include <kis_async_action_feedback.h>
Definition at line 17 of file kis_async_action_feedback.h.
◆ KisAsyncActionFeedback()
| KisAsyncActionFeedback::KisAsyncActionFeedback |
( |
const QString & | message, |
|
|
QWidget * | parent ) |
Definition at line 18 of file kis_async_action_feedback.cpp.
20{
21 m_d->progress.reset(
new QProgressDialog(message,
"", 0, 0, parent));
22 m_d->progress->setWindowModality(Qt::ApplicationModal);
23 m_d->progress->setCancelButton(0);
24 m_d->progress->setMinimumDuration(1000);
25 m_d->progress->setValue(0);
26
27
28 m_d->progress->setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
29}
const QScopedPointer< Private > m_d
References m_d.
◆ ~KisAsyncActionFeedback()
| KisAsyncActionFeedback::~KisAsyncActionFeedback |
( |
| ) |
|
◆ runAction()
◆ runVoidAction()
| void KisAsyncActionFeedback::runVoidAction |
( |
std::function< void()> | func | ) |
|
Definition at line 55 of file kis_async_action_feedback.cpp.
56{
58 QFutureWatcher<void> watcher;
59 watcher.setFuture(result);
60
61 while (watcher.isRunning()) {
62 qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
63 }
64
65 watcher.waitForFinished();
66}
◆ waitForMutex()
template<typename Mutex >
| void KisAsyncActionFeedback::waitForMutex |
( |
Mutex & | mutex | ) |
|
|
inline |
◆ waitForMutexLikeImpl()
| void KisAsyncActionFeedback::waitForMutexLikeImpl |
( |
std::unique_ptr< MutexLikeBase > && | mutex | ) |
|
|
private |
◆ m_d
| const QScopedPointer<Private> KisAsyncActionFeedback::m_d |
|
private |
The documentation for this class was generated from the following files: