BibleTime
Public Types | Public Member Functions | Private Attributes | List of all members
BtMessageInputDialog Class Reference

The BtMessageInputDialog class provides a editable field for user input. Optionally it displays a larger message. More...

#include <btmessageinputdialog.h>

Inheritance diagram for BtMessageInputDialog:

Public Types

enum  InputType { Normal , Password }
 

Public Member Functions

 BtMessageInputDialog (QString const &title, QString const &inputLabel, InputType inputType, QString const &inputText, QString const &infoMessage=QString(), QWidget *parent=nullptr, Qt::WindowFlags f=Qt::Dialog)
 The BtMessageInputDialog class provides a editable field for user input. Optionally it displays a larger message. More...
 
QString getUserInput () const
 getUserInput More...
 

Private Attributes

QLineEditm_inputTextEdit
 

Detailed Description

The BtMessageInputDialog class provides a editable field for user input. Optionally it displays a larger message.

Definition at line 31 of file btmessageinputdialog.h.

Member Enumeration Documentation

◆ InputType

Enumerator
Normal 
Password 

Definition at line 37 of file btmessageinputdialog.h.

Constructor & Destructor Documentation

◆ BtMessageInputDialog()

BtMessageInputDialog::BtMessageInputDialog ( QString const &  title,
QString const &  inputLabel,
InputType  inputType,
QString const &  inputText,
QString const &  infoMessage = QString(),
QWidget parent = nullptr,
Qt::WindowFlags  f = Qt::Dialog 
)

The BtMessageInputDialog class provides a editable field for user input. Optionally it displays a larger message.

Parameters
titledialog title
inputLabelshort text displayed above input field
inputTypeThe type of user input field to display
inputTextuser input field which may be preloaded with text
infoMessageoptional larger message displayed above the inputLabel
parentparent window for dialog
foptional window flags

Definition at line 28 of file btmessageinputdialog.cpp.

References BT_CONNECT, m_inputTextEdit, Password, and message::prepareDialogBox().

Member Function Documentation

◆ getUserInput()

QString BtMessageInputDialog::getUserInput ( ) const

getUserInput

Returns
edited text from user

Definition at line 93 of file btmessageinputdialog.cpp.

References m_inputTextEdit.

Referenced by BibleTime::moduleUnlock().

Member Data Documentation

◆ m_inputTextEdit

QLineEdit* BtMessageInputDialog::m_inputTextEdit
private

Definition at line 67 of file btmessageinputdialog.h.

Referenced by BtMessageInputDialog(), and getUserInput().


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