diff options
Diffstat (limited to 'messagedialog.cpp')
-rw-r--r-- | messagedialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/messagedialog.cpp b/messagedialog.cpp index c3261aa..241a2cc 100644 --- a/messagedialog.cpp +++ b/messagedialog.cpp @@ -13,11 +13,11 @@ #include "messagedialog.h" -MessageDialog::MessageDialog(const QString &message, QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f){ +MessageDialog::MessageDialog(const QString &message, const QString &title, QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f){ mEdit = new QLineEdit; mOk = new QPushButton(tr("Ok")); mCancel = new QPushButton(tr("Cancel")); - QLabel *m = new QLabel(message); + mMessage = new QLabel(message); QHBoxLayout *buttonLayout = new QHBoxLayout; buttonLayout->addStretch(); @@ -25,7 +25,7 @@ MessageDialog::MessageDialog(const QString &message, QWidget *parent, Qt::Window buttonLayout->addWidget(mCancel); QVBoxLayout *mainLayout = new QVBoxLayout; - mainLayout->addWidget(m); + mainLayout->addWidget(mMessage); mainLayout->addWidget(mEdit); mainLayout->addLayout(buttonLayout); @@ -34,7 +34,7 @@ MessageDialog::MessageDialog(const QString &message, QWidget *parent, Qt::Window connect(mCancel, SIGNAL(clicked()), this, SLOT(reject())); setLayout(mainLayout); - setWindowTitle(tr("SheMov - Mark files")); + setWindowTitle(title); } void MessageDialog::accept(){ |