Frameless startup window shown while the application initialises.
More...
#include <StartupSplash.hpp>
|
| | StartupSplash (const QString &version, QWidget *parent=nullptr) |
| |
| void | Step (const QString &message) |
| | Add a normal progress step (green check-mark).
|
| |
| void | Warn (const QString &message) |
| | Add a warning row (orange, non-fatal).
|
| |
| void | Error (const QString &message) |
| | Add an error row (red) and set the error flag.
|
| |
| void | Finish (QWidget *mainWindow) |
| |
| bool | HasErrors () const |
| |
|
| void | AddRow (const QString &icon, const QString &text, const QColor &color) |
| |
| void | Flush () |
| | processEvents so each step is visible immediately
|
| |
Frameless startup window shown while the application initialises.
Displays each initialisation step as it happens and highlights warnings (orange) and errors (red). If any errors were recorded, Finish() shows a "Continue" button and waits for the user to acknowledge before closing.
Typical usage in main():
splash.show();
splash.Step("Loading configurationā¦");
SetupConfig();
splash.Step("Building UIā¦");
window.show();
splash.Finish(&window);
Definition MainWindow.hpp:111
Frameless startup window shown while the application initialises.
Definition StartupSplash.hpp:34
◆ StartupSplash()
| ui::qt::StartupSplash::StartupSplash |
( |
const QString & |
version, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ AddRow()
| void ui::qt::StartupSplash::AddRow |
( |
const QString & |
icon, |
|
|
const QString & |
text, |
|
|
const QColor & |
color |
|
) |
| |
|
private |
◆ Error()
| void ui::qt::StartupSplash::Error |
( |
const QString & |
message | ) |
|
Add an error row (red) and set the error flag.
◆ Finish()
| void ui::qt::StartupSplash::Finish |
( |
QWidget * |
mainWindow | ) |
|
Close immediately if no errors were recorded; otherwise show a "Continue" button and block in a local event loop until clicked.
◆ Flush()
| void ui::qt::StartupSplash::Flush |
( |
| ) |
|
|
private |
processEvents so each step is visible immediately
◆ HasErrors()
| bool ui::qt::StartupSplash::HasErrors |
( |
| ) |
const |
|
inline |
◆ Step()
| void ui::qt::StartupSplash::Step |
( |
const QString & |
message | ) |
|
Add a normal progress step (green check-mark).
◆ Warn()
| void ui::qt::StartupSplash::Warn |
( |
const QString & |
message | ) |
|
Add a warning row (orange, non-fatal).
◆ m_continueBtn
| QPushButton* ui::qt::StartupSplash::m_continueBtn {nullptr} |
|
private |
◆ m_hasErrors
| bool ui::qt::StartupSplash::m_hasErrors {false} |
|
private |
◆ m_log
| QListWidget* ui::qt::StartupSplash::m_log {nullptr} |
|
private |
◆ m_statusLabel
| QLabel* ui::qt::StartupSplash::m_statusLabel {nullptr} |
|
private |
The documentation for this class was generated from the following files: