Dialog used to adding a new NexusMods API key and setting an encryption password.
More...
#include <addapikeydialog.h>
|
| AddApiKeyDialog (QWidget *parent=nullptr) |
| Initializes the UI.
|
|
| ~AddApiKeyDialog () |
| Deletes the UI.
|
|
QString | getApiKey () const |
| Returns the API key entered in the dialog.
|
|
QString | getPassword () const |
| Returns the password entered in the dialog.
|
|
|
void | on_buttonBox_rejected () |
| Closes the dialog.
|
|
void | on_buttonBox_accepted () |
| Closes the dialog.
|
|
void | onPasswordValidityChanged (bool is_valid) |
| Disables/ enables the OK button, depending on if the entered passwords match.
|
|
|
Ui::AddApiKeyDialog * | ui |
| Contains auto-generated UI elements.
|
|
bool | dialog_completed_ = false |
| Indicates whether the dialog has been completed.
|
|
Dialog used to adding a new NexusMods API key and setting an encryption password.
◆ AddApiKeyDialog()
AddApiKeyDialog::AddApiKeyDialog |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Initializes the UI.
- Parameters
-
parent | Parent for this widget, this is passed to the constructor of QDialog. |
◆ getApiKey()
QString AddApiKeyDialog::getApiKey |
( |
| ) |
const |
Returns the API key entered in the dialog.
- Returns
- The API key.
◆ getPassword()
QString AddApiKeyDialog::getPassword |
( |
| ) |
const |
Returns the password entered in the dialog.
- Returns
- The password.
◆ onPasswordValidityChanged
void AddApiKeyDialog::onPasswordValidityChanged |
( |
bool | is_valid | ) |
|
|
privateslot |
Disables/ enables the OK button, depending on if the entered passwords match.
- Parameters
-
is_valid | True if both passwords match. |
The documentation for this class was generated from the following files: