Modal dialog presenting the GPLv3 license agreement on first launch.
More...
#include <licenseagreementdialog.h>
Modal dialog presenting the GPLv3 license agreement on first launch.
The dialog stores whether it should appear again via QSettings under "SWMMVis/LicenseAgreement/showOnStartup". Call shouldShowOnStartup() before constructing the dialog to skip it when the user opted out.
◆ LicenseAgreementDialog()
| LicenseAgreementDialog::LicenseAgreementDialog |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~LicenseAgreementDialog()
| LicenseAgreementDialog::~LicenseAgreementDialog |
( |
| ) |
|
|
overridedefault |
◆ setShowOnStartup()
| void LicenseAgreementDialog::setShowOnStartup |
( |
bool |
show | ) |
|
|
static |
Persists the "show on startup" preference.
- Parameters
-
| show | true = show dialog on next launch, false = suppress it. |
◆ shouldShowOnStartup()
| bool LicenseAgreementDialog::shouldShowOnStartup |
( |
| ) |
|
|
static |
Returns true if the dialog should be shown at startup.
Reads QSettings. Defaults to true (i.e., show on first run).
The documentation for this class was generated from the following files: