aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2015-05-08 21:01:01 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-10 11:03:48 (GMT)
commit8d2ed87d82dd76a8d32227c6b39e1e8e9db7efea (patch)
tree84bd9cc3137c0894e10dfee7f805e095847498e6 /wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
parente1ede80d3b96daafe09aca9b98d4f82c3e5b410f (diff)
downloadhostap-8d2ed87d82dd76a8d32227c6b39e1e8e9db7efea.zip
hostap-8d2ed87d82dd76a8d32227c6b39e1e8e9db7efea.tar.gz
hostap-8d2ed87d82dd76a8d32227c6b39e1e8e9db7efea.tar.bz2
wpa_gui: Port to Qt5
This adds support for Qt5 while still preserving support for building with Qt4. The same source code builds with both Qt versions now. The functionality should be identical. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp')
-rw-r--r--wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp b/wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
index ba4c9f4..9d933b0 100644
--- a/wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
+++ b/wpa_supplicant/wpa_gui-qt4/userdatarequest.cpp
@@ -12,7 +12,7 @@
UserDataRequest::UserDataRequest(QWidget *parent, const char *, bool,
- Qt::WFlags)
+ Qt::WindowFlags)
: QDialog(parent)
{
setupUi(this);
@@ -89,6 +89,6 @@ void UserDataRequest::sendReply()
QString cmd = QString(WPA_CTRL_RSP) + field + '-' +
QString::number(networkid) + ':' +
queryEdit->text();
- wpagui->ctrlRequest(cmd.toAscii().constData(), reply, &reply_len);
+ wpagui->ctrlRequest(cmd.toLocal8Bit().constData(), reply, &reply_len);
accept();
}