Qx v0.7
Qt Extensions Library
Loading...
Searching...
No Matches
Qx::LoginDialog Class Reference

The ButtonGroup class provides a container to organize groups of button widgets. More...

#include <qx/widgets/qx-buttongroup.h>

Public Member Functions

 LoginDialog (QWidget *parent=nullptr, QString prompt=LABEL_DEF_PRMT)
 
QString password ()
 
void setPrompt (QString prompt)
 
QString username ()
 

Detailed Description

The LoginDialog class provides a modal dialog that prompts a user for a username and password.

This class is the same as QButtonGroup, with a property and change signal for the currently checked button

Todo
May allow for setting default field content and getting the existing prompt.

Constructor & Destructor Documentation

◆ LoginDialog()

Qx::LoginDialog::LoginDialog ( QWidget * parent = nullptr,
QString prompt = LABEL_DEF_PRMT )
explicit

Constructs a login dialog with parent parent that displays the given prompt.

The default prompt simply states "Login Required".

Member Function Documentation

◆ password()

QString Qx::LoginDialog::password ( )

Returns the string entered into the dialog's password field.

◆ setPrompt()

void Qx::LoginDialog::setPrompt ( QString prompt)

Sets the login dialog's prompt.

◆ username()

QString Qx::LoginDialog::username ( )

Returns the string entered into the dialog's username field.


The documentation for this class was generated from the following files: