#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 21 of file kis_async_action_feedback.cpp.
23{
24 m_d->progress.reset(
new QProgressDialog(message,
"", 0, 0, parent));
25 m_d->progress->setWindowModality(Qt::ApplicationModal);
26 m_d->progress->setCancelButton(0);
27 m_d->progress->setMinimumDuration(1000);
28 m_d->progress->setValue(0);
29
30
31 m_d->progress->setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint);
32}
const QScopedPointer< Private > m_d
References m_d.
◆ ~KisAsyncActionFeedback()
| KisAsyncActionFeedback::~KisAsyncActionFeedback |
( |
| ) |
|
◆ runAction()
◆ runVoidAction()
| void KisAsyncActionFeedback::runVoidAction |
( |
std::function< void()> | func | ) |
|
Definition at line 58 of file kis_async_action_feedback.cpp.
59{
61 QFutureWatcher<void> watcher;
62 watcher.setFuture(result);
63
64 while (watcher.isRunning()) {
65 qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
66 }
67
68 watcher.waitForFinished();
69}
◆ 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: