[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kabc/kab
From: Laurent Montel <montel () kde ! org>
Date: 2007-02-12 21:10:14
Message-ID: 1171314614.129449.24191.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 632995 by mlaurent:
I forgot to port it :(
M +4 -3 kabapi.cc
M +2 -3 kabapi.h
--- trunk/KDE/kdepimlibs/kabc/kab/kabapi.cc #632994:632995
@@ -18,8 +18,8 @@
#include <kmessagebox.h>
#include <klocale.h>
#include <kdebug.h>
+#include <klistwidget.h>
-
#include "kabapi.moc"
#ifdef KAB_KDEBUG_AREA
@@ -33,7 +33,7 @@
KabAPI::KabAPI(QWidget* parent)
: KDialog(parent),
book(0),
- listbox(new KListBox(this)),
+ listbox(new KListWidget(this)),
selection(-1)
{
Q_CHECK_PTR(listbox);
@@ -64,7 +64,8 @@
if (book->getListOfNames(&names, true, false)==AddressBook::NoError)
{
listbox->clear();
- listbox->insertStringList(names);
+
+ listbox->addItems(names);
if (names.count()>0)
{
listbox->setCurrentItem(0);
--- trunk/KDE/kdepimlibs/kabc/kab/kabapi.h #632994:632995
@@ -20,9 +20,8 @@
#include <kdialog.h>
class QPushButton;
-class KListBox;
+class KListWidget;
class Q3ListBoxItem;
-
/**
* The class KabAPI provides a public interface to access the
* users address database created using kab. The complete
@@ -186,7 +185,7 @@
/**
* This displays the overview over the addresses in the dialog.
*/
- KListBox* listbox;
+ KListWidget* listbox;
/**
* The index of the selected entry. This value is only valid after the
* KabAPI dialog has been executed and accepted by the user.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic