RenameDialog

class RenameDialog

General Dialog for entering a name.

Inherits from QDialog

Public Functions

RenameDialog(QWidget *parent = nullptr)
~RenameDialog()
void setName(QString fcnName)
QString getName() const
void setPlaceholderText(const QString &text)

Public Static Functions

bool showDialog(const QString &title, QString *name, const QString &placeholder, QWidget *parent = nullptr)

Helper function to display and execute the dialog.

Return
whether the dialog was accepted by the user
Parameters
  • title: title of the dialog
  • name: initial name, will be overwritten if the user entered something else
  • placeholder: placeholder text for the QLineEdit