Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
CustomInputDialog Class Reference

A Utility class to show an input dialog with a long description underneath the line edit. More...

#include <CustomInputDialog.h>

Public Member Functions

 CustomInputDialog (const QString &title, const QString &topMessage, const QString &bottomMessage, const QString &defaultValue, QWidget *parent=nullptr)
 Constructor.
QString getInput () const
 get the line edit value, once the dialog is closed

Detailed Description

A Utility class to show an input dialog with a long description underneath the line edit.

Usage

CustomInputDialog dialog("Enter Something", "Please enter something:", "<p>Please!</p>", "foo", parentWidget);
if (dialog.exec() == QDialog::Accepted) {
QString inputName = dialog.getInput();
...
}
CustomInputDialog(const QString &title, const QString &topMessage, const QString &bottomMessage, const QString &defaultValue, QWidget *parent=nullptr)
Constructor.
Definition CustomInputDialog.cpp:34

Constructor & Destructor Documentation

◆ CustomInputDialog()

CustomInputDialog::CustomInputDialog ( const QString & title,
const QString & topMessage,
const QString & bottomMessage,
const QString & defaultValue,
QWidget * parent = nullptr )

Constructor.

Parameters
titledialog titel
topMessageis displayed on top the line edit
bottomMessageis displayed under the line edit
defaultValueis the default value of the line edit
parent(optional)

Member Function Documentation

◆ getInput()

QString CustomInputDialog::getInput ( ) const

get the line edit value, once the dialog is closed

Referenced by CamiTKExtensionModelPresenter::plusButtonClicked().


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