[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/digikam
From: Andi Clemens <andi.clemens () gmx ! net>
Date: 2010-12-12 13:21:47
Message-ID: 20101212132147.D96BEAC8A8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1205766 by aclemens:
get rid of warnings: this slot isn't used anywhere in the digiKam code base,
I'll comment it for now, maybe we can also remove it later.
M +33 -33 contextmenuhelper.cpp
M +1 -1 contextmenuhelper.h
--- trunk/extragear/graphics/digikam/digikam/contextmenuhelper.cpp #1205765:1205766
@@ -495,40 +495,40 @@
#endif // HAVE_KDEPIMLIBS
}
-void ContextMenuHelper::slotABCContextMenu()
-{
-#ifdef HAVE_KDEPIMLIBS
- d->ABCmenu->clear();
+//void ContextMenuHelper::slotABCContextMenu()
+//{
+//#ifdef HAVE_KDEPIMLIBS
+// d->ABCmenu->clear();
+//
+// KABC::AddressBook* ab = KABC::StdAddressBook::self();
+// QStringList names;
+//
+// for ( KABC::AddressBook::Iterator it = ab->begin(); it != ab->end(); ++it )
+// {
+// names.push_back(it->formattedName());
+// }
+//
+// qSort(names);
+//
+// for ( QStringList::ConstIterator it = names.constBegin(); it != names.constEnd(); ++it )
+// {
+// QString name = *it;
+//
+// if (!name.isNull() )
+// {
+// d->ABCmenu->addAction(name);
+// }
+// }
+//
+// if (d->ABCmenu->isEmpty())
+// {
+// QAction* nothingFound = d->ABCmenu->addAction(i18n("No address book entries found"));
+// nothingFound->setEnabled(false);
+// }
+//
+//#endif // HAVE_KDEPIMLIBS
+//}
- KABC::AddressBook* ab = KABC::StdAddressBook::self();
- QStringList names;
-
- for ( KABC::AddressBook::Iterator it = ab->begin(); it != ab->end(); ++it )
- {
- names.push_back(it->formattedName());
- }
-
- qSort(names);
-
- for ( QStringList::ConstIterator it = names.constBegin(); it != names.constEnd(); ++it )
- {
- QString name = *it;
-
- if (!name.isNull() )
- {
- d->ABCmenu->addAction(name);
- }
- }
-
- if (d->ABCmenu->isEmpty())
- {
- QAction* nothingFound = d->ABCmenu->addAction(i18n("No address book entries found"));
- nothingFound->setEnabled(false);
- }
-
-#endif // HAVE_KDEPIMLIBS
-}
-
void ContextMenuHelper::slotABCMenuTriggered(QAction* action)
{
QString name = action->iconText();
--- trunk/extragear/graphics/digikam/digikam/contextmenuhelper.h #1205765:1205766
@@ -357,7 +357,7 @@
void slotOpenWith();
void slotOpenWith(QAction* action);
- void slotABCContextMenu();
+// void slotABCContextMenu();
void slotABCMenuTriggered(QAction*);
void slotDeselectAllAlbumItems();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic