RenameDialog

class RenameDialog

General Dialog for entering a name.

Public Functions

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

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