KStatusBarJobTracker Class
This class implements a job tracker with a widget suited for embedding in a status bar. More...
- Header:
#include <KStatusBarJobTracker> - CMake:
find_package(KF6 REQUIRED COMPONENTS JobWidgets)
target_link_libraries(mytarget PRIVATE KF6::JobWidgets) - Inherits: KAbstractWidgetJobTracker
List of all members, including inherited members
Public Types
Public Functions
- KStatusBarJobTracker(QWidget *parent = nullptr, bool button = true)
- void setStatusBarMode(KStatusBarJobTracker::StatusBarModes statusBarMode)
Detailed Description
Member Type Documentation
enum KStatusBarJobTracker::StatusBarMode
flags KStatusBarJobTracker::StatusBarModes
| Constant | Value | Description |
|---|---|---|
KStatusBarJobTracker::NoInformation |
0x0000 |
Does not show any information |
KStatusBarJobTracker::LabelOnly |
0x0001 |
Shows an informative label for job progress |
KStatusBarJobTracker::ProgressOnly |
0x0002 |
Shows a progress bar with the job completion |
The StatusBarModes type is a typedef for QFlags<StatusBarMode>. It stores an OR combination of StatusBarMode values.
Member Function Documentation
[explicit] KStatusBarJobTracker::KStatusBarJobTracker(QWidget *parent = nullptr, bool button = true)
Creates a new KStatusBarJobTracker
parent the parent of this object and of the widget displaying the job progresses
button true to display a stop button allowing to kill the job, false otherwise
void KStatusBarJobTracker::setStatusBarMode(KStatusBarJobTracker::StatusBarModes statusBarMode)
Sets the mode of the status bar.
statusBarMode what information the status bar will show (see StatusBarMode). LabelOnly by default