kpimutils
21 #include "progressindicatorlabel.h"
22 #include "progressindicatorwidget.h"
24 #include <QHBoxLayout>
27 class ProgressIndicatorLabelPrivate
30 ProgressIndicatorLabelPrivate(
const QString &_label, ProgressIndicatorLabel *qq)
34 QHBoxLayout *lay =
new QHBoxLayout;
37 indicator =
new ProgressIndicatorWidget;
38 lay->addWidget(indicator);
40 lay->addWidget(label);
43 ~ProgressIndicatorLabelPrivate()
47 void setActiveLabel(
const QString &str)
49 if (indicator->isActive()) {
57 label->setText(labelStr);
68 ProgressIndicatorWidget *indicator;
69 ProgressIndicatorLabel *q;
72 ProgressIndicatorLabel::ProgressIndicatorLabel(
const QString &label, QWidget *parent)
74 d(new ProgressIndicatorLabelPrivate(label, this))
78 ProgressIndicatorLabel::ProgressIndicatorLabel(QWidget *parent)
80 d(new ProgressIndicatorLabelPrivate(QString(), this))
84 ProgressIndicatorLabel::~ProgressIndicatorLabel()
89 void ProgressIndicatorLabel::start()
94 void ProgressIndicatorLabel::stop()
99 void ProgressIndicatorLabel::setActiveLabel(
const QString &label)
101 d->setActiveLabel(label);
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Sep 11 2015 09:38:28 by
doxygen 1.8.9.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.