Changeset View
Changeset View
Standalone View
Standalone View
src/ui/progressindicator.cpp
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
54 | 54 | | |||
55 | void ProgressIndicator::busy(const QString &message) | 55 | void ProgressIndicator::busy(const QString &message) | ||
56 | { | 56 | { | ||
57 | m_statusLabel->setText(message); | 57 | m_statusLabel->setText(message); | ||
58 | busyWidget->setVisible(true); | 58 | busyWidget->setVisible(true); | ||
59 | busyWidget->setSequence(m_busyPixmap); | 59 | busyWidget->setSequence(m_busyPixmap); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | void ProgressIndicator::error(const QString &message) | 62 | void KNS3::ProgressIndicator::error(const KNSCore::ErrorCode& /*errorCode*/, const QString& message, const QVariant& /*metadata*/) | ||
63 | { | 63 | { | ||
64 | m_statusLabel->setText(message); | 64 | m_statusLabel->setText(message); | ||
65 | busyWidget->setVisible(true); | 65 | busyWidget->setVisible(true); | ||
66 | busyWidget->setSequence(m_errorPixmap); | 66 | busyWidget->setSequence(m_errorPixmap); | ||
67 | } | 67 | } | ||
68 | 68 | | |||
69 | void ProgressIndicator::idle(const QString &message) | 69 | void ProgressIndicator::idle(const QString &message) | ||
70 | { | 70 | { | ||
71 | m_statusLabel->setText(message); | 71 | m_statusLabel->setText(message); | ||
72 | busyWidget->setVisible(false); | 72 | busyWidget->setVisible(false); | ||
73 | } | 73 | } | ||
74 | 74 | |