Libkdepim
7#include "progressindicatorlabel.h"
8#include <KBusyIndicatorWidget>
14class KPIM::ProgressIndicatorLabelPrivate
17 ProgressIndicatorLabelPrivate(
const QString &_label, ProgressIndicatorLabel *qq)
21 auto lay =
new QHBoxLayout(q);
22 lay->setContentsMargins({});
23 indicator =
new KBusyIndicatorWidget(q);
24 lay->addWidget(indicator);
25 label =
new QLabel(q);
26 lay->addWidget(label);
29 ~ProgressIndicatorLabelPrivate() =
default;
31 void setActiveLabel(
const QString &str)
33 if (!indicator->isHidden()) {
41 label->setText(labelStr);
51 QLabel *label =
nullptr;
52 KBusyIndicatorWidget *indicator =
nullptr;
53 ProgressIndicatorLabel *
const q;
58 , d(new ProgressIndicatorLabelPrivate(label, this))
65 , d(new ProgressIndicatorLabelPrivate(
QString(), this))
70ProgressIndicatorLabel::~ProgressIndicatorLabel() =
default;
72void ProgressIndicatorLabel::start()
77void ProgressIndicatorLabel::stop()
82void ProgressIndicatorLabel::setActiveLabel(
const QString &label)
84 d->setActiveLabel(label);
87#include "moc_progressindicatorlabel.cpp"
ProgressIndicatorLabel(const QString &labelStr, QWidget *parent=nullptr)
Class KCheckComboBox::KCheckComboBoxPrivate.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:43 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.