Libkdepim

progressstatusbarwidget.cpp
1/*
2 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include "progressstatusbarwidget.h"
7using namespace Qt::Literals::StringLiterals;
8
9#include "progressdialog.h"
10#include "statusbarprogresswidget.h"
11
12using namespace KPIM;
13class KPIM::ProgressStatusBarWidgetPrivate
14{
15public:
16 ProgressStatusBarWidgetPrivate() = default;
17
18 KPIM::StatusbarProgressWidget *mLittleProgress = nullptr;
19};
20
21ProgressStatusBarWidget::ProgressStatusBarWidget(QWidget *alignWidget, QWidget *parent, unsigned int showTypeProgressItem)
22 : QObject(parent)
23 , d(new KPIM::ProgressStatusBarWidgetPrivate)
24{
25 auto progressDialog = new KPIM::ProgressDialog(alignWidget, parent);
26 progressDialog->setObjectName("progressDialog"_L1);
27 progressDialog->setShowTypeProgressItem(showTypeProgressItem);
28 progressDialog->hide();
29
30 d->mLittleProgress = new KPIM::StatusbarProgressWidget(progressDialog, alignWidget);
31 d->mLittleProgress->setObjectName("littleprogress"_L1);
32 d->mLittleProgress->setShowTypeProgressItem(showTypeProgressItem);
33 d->mLittleProgress->show();
34}
35
36ProgressStatusBarWidget::~ProgressStatusBarWidget() = default;
37
38KPIM::StatusbarProgressWidget *ProgressStatusBarWidget::littleProgress() const
39{
40 return d->mLittleProgress;
41}
42
43#include "moc_progressstatusbarwidget.cpp"
Class KCheckComboBox::KCheckComboBoxPrivate.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.