head 1.2; access; symbols; locks; strict; comment @// @; 1.2 date 2019.12.03.15.40.06; author roy; state dead; branches; next 1.1; commitid zh8mmr18yGFb7hNB; 1.1 date 2019.10.29.12.39.13; author kamil; state Exp; branches; next ; commitid jXsefgDrwrNCfLIB; desc @@ 1.2 log @Import dhcpcd-ui-0.7.7 with the following changes: * decode escaped \2XX and \\ correctly * support the up and coming dhcpcd-9 dhcpcd-ui-0.7.6 changes: * added dhcpcd-curses - this is very much a work in progress * allow background scanning when interface is down * wireless icon represents signal strength better * improved wpa_suppliant interaction * Qt5 is supported * supports newer dhcpcd variables @ text @$NetBSD: patch-src_dhcpcd-qt_dhcpcd-preferences.cpp,v 1.1 2019/10/29 12:39:13 kamil Exp $ Port to Qt5. --- src/dhcpcd-qt/dhcpcd-preferences.cpp.orig 2015-01-07 09:18:28.000000000 +0000 +++ src/dhcpcd-qt/dhcpcd-preferences.cpp @@@@ -182,10 +182,10 @@@@ void DhcpcdPreferences::listBlocks(const blocks->disconnect(this); free(eWhat); - eWhat = strdup(txt.toLower().toAscii()); + eWhat = strdup(txt.toLower().toLatin1()); list = dhcpcd_config_blocks(parent->getConnection(), - txt.toLower().toAscii()); + txt.toLower().toLatin1()); if (txt == "interface") { char **ifaces, **i; @@@@ -294,7 +294,7 @@@@ const char *DhcpcdPreferences::getString { if (le->text().isEmpty()) return NULL; - return le->text().trimmed().toAscii(); + return le->text().trimmed().toLatin1(); } bool DhcpcdPreferences::setOption(const char *opt, const char *val, bool *ret) @@@@ -405,7 +405,7 @@@@ void DhcpcdPreferences::showBlock(const if (txt.isEmpty()) eBlock = NULL; else - eBlock = strdup(txt.toAscii()); + eBlock = strdup(txt.toLatin1()); dhcpcd_config_free(config); iface = NULL; @ 1.1 log @dhcpcd-qt: Switch to Qt5 @ text @d1 1 a1 1 $NetBSD$ @