class RenameDialog

General Dialog for entering a name.

Public Functions

RenameDialog(QWidget *parent)
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)

Helper function to display and execute the dialog.

whether the dialog was accepted by the user
  • title -

    title of the dialog

  • name -

    initial name, will be overwritten if the user entered something else

  • placeholder -

    placeholder text for the QLineEdit