KJobWidgets
kstatusbarjobtracker.cpp
89void KStatusBarJobTracker::description(KJob *job, const QString &title, const QPair<QString, QString> &field1, const QPair<QString, QString> &field2)
163 connect(button, &QPushButton::clicked, this, &KStatusBarJobTrackerPrivate::ProgressWidget::killJob);
188void KStatusBarJobTrackerPrivate::ProgressWidget::setMode(KStatusBarJobTracker::StatusBarModes newMode)
221void KStatusBarJobTrackerPrivate::ProgressWidget::totalAmount(KJob::Unit unit, qulonglong amount)
242 label->setText(QCoreApplication::translate("KStatusBarJobTracker", " %1/s ").arg(KJobTrackerFormatters::byteSize(value)));
The base class for widget based job trackers.
Definition kabstractwidgetjobtracker.h:28
void unregisterJob(KJob *job) override
Unregister a job from this tracker.
Definition kabstractwidgetjobtracker.cpp:33
void registerJob(KJob *job) override
Register a new job in this tracker.
Definition kabstractwidgetjobtracker.cpp:28
Unit
Bytes
bool kill(KJob::KillVerbosity verbosity=KJob::Quietly)
This class implements a job tracker with a widget suited for embedding in a status bar.
Definition kstatusbarjobtracker.h:23
KStatusBarJobTracker(QWidget *parent=nullptr, bool button=true)
Creates a new KStatusBarJobTracker.
Definition kstatusbarjobtracker.cpp:23
~KStatusBarJobTracker() override
Destroys a KStatusBarJobTracker.
QWidget * widget(KJob *job) override
The widget associated to this tracker.
Definition kstatusbarjobtracker.cpp:67
void description(KJob *job, const QString &title, const QPair< QString, QString > &field1, const QPair< QString, QString > &field2) override
The following slots are inherited from KJobTrackerInterface.
Definition kstatusbarjobtracker.cpp:89
void setStatusBarMode(StatusBarModes statusBarMode)
Sets the mode of the status bar.
Definition kstatusbarjobtracker.cpp:78
void registerJob(KJob *job) override
Register a new job in this tracker.
Definition kstatusbarjobtracker.cpp:30
void unregisterJob(KJob *job) override
Unregister a job from this tracker.
Definition kstatusbarjobtracker.cpp:46
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QString label(StandardShortcut id)
void clicked(bool checked)
void addWidget(QWidget *widget, int stretch, Qt::Alignment alignment)
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
MouseButtonPress
virtual bool eventFilter(QObject *watched, QEvent *event)
QObject * parent() const const
Qt::MouseButton button() const const
void clear()
AlignHCenter
LeftButton
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.