summaryrefslogtreecommitdiffstats
path: root/logindialog.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-23 21:06:09 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2009-10-23 21:06:09 +0200
commit95fc9a918f123ec165f1048aa5ea8b522a4a806a (patch)
tree3a778fa417c954920fbf54071abde912236ace43 /logindialog.cpp
First commit
Diffstat (limited to 'logindialog.cpp')
-rw-r--r--logindialog.cpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/logindialog.cpp b/logindialog.cpp
new file mode 100644
index 0000000..28feb50
--- /dev/null
+++ b/logindialog.cpp
@@ -0,0 +1,57 @@
+#include "logindialog.h"
+#include "ui_logindialog.h"
+
+LogInDialog::LogInDialog(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::LogInDialog)
+{
+ ui->setupUi(this);
+}
+
+LogInDialog::~LogInDialog()
+{
+ delete ui;
+}
+
+void LogInDialog::changeEvent(QEvent *e)
+{
+ QDialog::changeEvent(e);
+ switch (e->type()) {
+ case QEvent::LanguageChange:
+ ui->retranslateUi(this);
+ break;
+ default:
+ break;
+ }
+}
+
+QString LogInDialog::userName() const
+{
+ return ui->userNameLineEdit->text();
+}
+
+QString LogInDialog::password() const
+{
+ return ui->passwordLineEdit->text();
+}
+
+bool LogInDialog::rememberSettings() const
+{
+ return ui->rememberMe->isChecked();
+}
+
+void LogInDialog::setUserName(const QString &userName)
+{
+ ui->userNameLineEdit->setText(userName);
+}
+
+void LogInDialog::setPassword(const QString &password)
+{
+ ui->passwordLineEdit->setText(password);
+}
+
+void LogInDialog::setRememberSettings(bool on)
+{
+ ui->rememberMe->setChecked(on);
+}
+