[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kicker/menuext/kdeprint
From: Laurent Montel <montel () kde ! org>
Date: 2006-02-28 13:54:59
Message-ID: 1141134899.666027.23411.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 514444 by mlaurent:
Compile/link
M +7 -6 print_mnu.cpp
--- trunk/KDE/kdebase/kicker/menuext/kdeprint/print_mnu.cpp #514443:514444
@@ -78,15 +78,16 @@
insertItem(SmallIconSet("fileprint"), i18n("Print File..."), KPRINTER_ID);
// printer list
- Q3PtrList<KMPrinter> *l = KMManager::self()->printerList();
+ QList<KMPrinter*> *l = KMManager::self()->printerList();
if (l && !l->isEmpty())
{
bool separatorInserted = false;
- Q3PtrListIterator<KMPrinter> it(*l);
- for (; it.current(); ++it)
+ QListIterator<KMPrinter*> it(*l);
+ while (it.hasNext())
{
+ KMPrinter *itprt = it.next();
// no special, implicit or pure instances
- if (it.current()->isSpecial() || it.current()->isVirtual())
+ if (itprt->isSpecial() || itprt->isVirtual())
continue;
if (!separatorInserted)
{
@@ -95,8 +96,8 @@
insertSeparator();
separatorInserted = true;
}
- insertItem(SmallIconSet(it.current()->pixmap()),
- it.current()->printerName(), ID++);
+ insertItem(SmallIconSet(itprt->pixmap()),
+ itprt->printerName(), ID++);
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic