From 7109d3c44c6cbead9a58253b118bb94905411b28 Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Wed, 3 Jun 2015 11:40:15 +0200 Subject: selectnicform ported to Qt4 --- TODO | 1 - src/gui/gui.cpp | 7 +++---- src/gui/selectnicform.ui | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index da01d58..0ab5919 100644 --- a/TODO +++ b/TODO @@ -7,7 +7,6 @@ Remaining .ui/cpp/h files: * mphoneform - * selectnicform * selectprofileform * selectuserform * syssettingsform diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4f90132..1b0fbbb 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -889,15 +889,14 @@ string t_gui::select_network_intf(void) { for (list::iterator i = l->begin(); i != l->end(); i++) { item = i->name.c_str(); item.append(':').append(i->get_ip_addr().c_str()); - sf->nicListBox->insertItem( - QPixmap(":/icons/images/kcmpci16.png"), - item); + + new QListWidgetItem(QPixmap(":/icons/images/kcmpci16.png"), item, sf->nicListBox); } sf->nicListBox->setCurrentItem(0); sf->exec(); - int selection = sf->nicListBox->currentItem(); + int selection = sf->nicListBox->currentRow(); int num = 0; for (list::iterator i = l->begin(); i != l->end(); i++) { if (num == selection) { diff --git a/src/gui/selectnicform.ui b/src/gui/selectnicform.ui index 4da5e07..77d78e1 100644 --- a/src/gui/selectnicform.ui +++ b/src/gui/selectnicform.ui @@ -62,7 +62,7 @@ - + You have multiple IP addresses. Here you must select which IP address should be used. This IP address will be used inside the SIP messages. -- cgit v1.2.3