![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
Status bar widget showing what the card database updater (Oracle) is doing. More...
#include <card_database_update_status_bar.h>
Public Slots | |
| void | updateStarted () |
| Shows the widget and resets it to the indeterminate state. | |
| void | updateProgress (const CardUpdateProgress &progress) |
| Shows the progress of one update stage. | |
| void | updateFinished () |
| Hides the widget and clears the reported progress. | |
Public Member Functions | |
| CardDatabaseUpdateStatusBar (QWidget *parent=nullptr) | |
| Constructs a hidden progress widget. | |
| QString | statusText () const |
| Human readable description of the running stage, e.g. "Downloading (42%)". | |
Protected Member Functions | |
| void | changeEvent (QEvent *event) override |
Private Member Functions | |
| void | refresh () |
Private Attributes | |
| QHBoxLayout * | layout |
| Horizontal layout holding the stage label and the progress bar. | |
| QLabel * | stageLabel |
| Name of the stage currently running. | |
| QProgressBar * | progressBar |
| Progress within the current stage. | |
| CardUpdateProgress | progress |
| Last reported progress. | |
| bool | active = false |
| Whether an update is currently running. | |
Status bar widget showing what the card database updater (Oracle) is doing.
The updater runs as a separate process, so this widget is the in-client view of its progress: it appears when an update starts, tracks the download/scan/import stages reported by the updater, and disappears when the update finishes.
|
explicit |
Constructs a hidden progress widget.
| parent | Parent widget |
|
overrideprotected |
|
private |
| QString CardDatabaseUpdateStatusBar::statusText | ( | ) | const |
Human readable description of the running stage, e.g. "Downloading (42%)".
|
slot |
Hides the widget and clears the reported progress.
|
slot |
Shows the progress of one update stage.
|
slot |
Shows the widget and resets it to the indeterminate state.
|
private |
Whether an update is currently running.
|
private |
Horizontal layout holding the stage label and the progress bar.
|
private |
Last reported progress.
|
private |
Progress within the current stage.
|
private |
Name of the stage currently running.