From 290fa95924eff298223dc391cba7499528e374f5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 3 Dec 2018 17:34:49 +0900 Subject: Adapted to new KPasswordEdit::password() signature. This relates to bug 2961. Signed-off-by: Michele Calgaro --- plugins/webinterface/webinterfaceprefwidget.cpp | 4 ++-- plugins/webinterface/webinterfaceprefwidget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/webinterface/webinterfaceprefwidget.cpp b/plugins/webinterface/webinterfaceprefwidget.cpp index c1e19f4..33cef5a 100644 --- a/plugins/webinterface/webinterfaceprefwidget.cpp +++ b/plugins/webinterface/webinterfaceprefwidget.cpp @@ -92,7 +92,7 @@ bool WebInterfacePrefWidget::apply() WebInterfacePluginSettings::setPhpExecutablePath(phpExecutablePath->url () ); if(!username->text().isEmpty() && !password.isEmpty()){ WebInterfacePluginSettings::setUsername(username->text() ); - KMD5 context(password); + KMD5 context(password.utf8()); WebInterfacePluginSettings::setPassword(context.hexDigest().data()); } @@ -102,7 +102,7 @@ bool WebInterfacePrefWidget::apply() void WebInterfacePrefWidget::btnUpdate_clicked() { - TQCString passwd; + TQString passwd; int result = KPasswordDialog::getNewPassword(passwd, i18n("Please enter a new password for the web interface.")); if (result == KPasswordDialog::Accepted) password=passwd; diff --git a/plugins/webinterface/webinterfaceprefwidget.h b/plugins/webinterface/webinterfaceprefwidget.h index e793be0..3d3b5e4 100644 --- a/plugins/webinterface/webinterfaceprefwidget.h +++ b/plugins/webinterface/webinterfaceprefwidget.h @@ -32,7 +32,7 @@ namespace kt public: WebInterfacePrefWidget(TQWidget *parent = 0, const char *name = 0); bool apply(); - TQCString password; + TQString password; public slots: void btnUpdate_clicked(); void changeLedState(); -- cgit v1.2.3