summaryrefslogtreecommitdiffabout
path: root/kaddressbook
authorzautrix <zautrix>2005-04-08 13:58:07 (UTC)
committer zautrix <zautrix>2005-04-08 13:58:07 (UTC)
commitc0f1d38e29ee0d0a1d1dcb5bda08089923926b41 (patch) (side-by-side diff)
treea235fdef5d4b8b519bfd8141247993ba778b39b2 /kaddressbook
parent19a95939a6469ab5469f6904f57263a792598f07 (diff)
downloadkdepimpi-c0f1d38e29ee0d0a1d1dcb5bda08089923926b41.zip
kdepimpi-c0f1d38e29ee0d0a1d1dcb5bda08089923926b41.tar.gz
kdepimpi-c0f1d38e29ee0d0a1d1dcb5bda08089923926b41.tar.bz2
fix
Diffstat (limited to 'kaddressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.cpp34
1 files changed, 7 insertions, 27 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index fa9f130..9c40142 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -602,109 +602,89 @@ KABC::Field *KABCore::currentSearchField() const
QStringList KABCore::selectedUIDs() const
{
return mViewManager->selectedUids();
}
KABC::Resource *KABCore::requestResource( QWidget *parent )
{
QPtrList<KABC::Resource> kabcResources = addressBook()->resources();
QPtrList<KRES::Resource> kresResources;
QPtrListIterator<KABC::Resource> resIt( kabcResources );
KABC::Resource *resource;
while ( ( resource = resIt.current() ) != 0 ) {
++resIt;
if ( !resource->readOnly() ) {
KRES::Resource *res = static_cast<KRES::Resource*>( resource );
if ( res )
kresResources.append( res );
}
}
KRES::Resource *res = KRES::SelectDialog::getResource( kresResources, parent );
return static_cast<KABC::Resource*>( res );
}
#ifndef KAB_EMBEDDED
KAboutData *KABCore::createAboutData()
#else //KAB_EMBEDDED
void KABCore::createAboutData()
#endif //KAB_EMBEDDED
{
-#ifndef KAB_EMBEDDED
- KAboutData *about = new KAboutData( "kaddressbook", I18N_NOOP( "KAddressBook" ),
- "3.1", I18N_NOOP( "The KDE Address Book" ),
- KAboutData::License_GPL_V2,
- I18N_NOOP( "(c) 1997-2003, The KDE PIM Team" ) );
- about->addAuthor( "Tobias Koenig", I18N_NOOP( "Current maintainer " ), "tokoe@kde.org" );
- about->addAuthor( "Don Sanders", I18N_NOOP( "Original author " ) );
- about->addAuthor( "Cornelius Schumacher",
- I18N_NOOP( "Co-maintainer, libkabc port, CSV import/export " ),
- "schumacher@kde.org" );
- about->addAuthor( "Mike Pilone", I18N_NOOP( "GUI and framework redesign " ),
- "mpilone@slac.com" );
- about->addAuthor( "Greg Stern", I18N_NOOP( "DCOP interface" ) );
- about->addAuthor( "Mark Westcott", I18N_NOOP( "Contact pinning" ) );
- about->addAuthor( "Michel Boyer de la Giroday", I18N_NOOP( "LDAP Lookup\n" ),
- "michel@klaralvdalens-datakonsult.se" );
- about->addAuthor( "Steffen Hansen", I18N_NOOP( "LDAP Lookup " ),
- "hansen@kde.org" );
-
- return about;
-#endif //KAB_EMBEDDED
+
QString version;
#include <../version>
QMessageBox::about( this, "About KAddressbook/Pi",
"KAddressbook/Platform-independent\n"
"(KA/Pi) " +version + " - " +
#ifdef DESKTOP_VERSION
"Desktop Edition\n"
#else
"PDA-Edition\n"
"for: Zaurus 5500 / 7x0 / 8x0\n"
#endif
"(c) 2004 Ulf Schenk\n"
- "(c) 2004 Lutz Rogowski\n"
+ "(c) 2004-2005 Lutz Rogowski\nrogowski@kde.org\n"
"(c) 1997-2003, The KDE PIM Team\n"
- "Tobias Koenig Current maintainer\ntokoe@kde.org\n"
+ "Tobias Koenig Maintainer\n"
"Don Sanders Original author\n"
- "Cornelius Schumacher Co-maintainer\nschumacher@kde.org\n"
- "Mike Pilone GUI and framework redesign\nmpilone@slac.com\n"
+ "Cornelius Schumacher Co-maintainer\n"
+ "Mike Pilone GUI and framework redesign\n"
"Greg Stern DCOP interface\n"
"Mark Westcot Contact pinning\n"
- "Michel Boyer de la Giroday LDAP Lookup\n" "michel@klaralvdalens-datakonsult.se\n"
- "Steffen Hansen LDAP Lookup\nhansen@kde.org\n"
+ "Michel Boyer de la Giroday LDAP Lookup\n"
+ "Steffen Hansen LDAP Lookup"
#ifdef _WIN32_
"(c) 2004 Lutz Rogowski Import from OL\nrogowski@kde.org\n"
#endif
);
}
void KABCore::setContactSelected( const QString &uid )
{
KABC::Addressee addr = mAddressBook->findByUid( uid );
if ( !mDetails->isHidden() )
mDetails->setAddressee( addr );
if ( !addr.isEmpty() ) {
emit contactSelected( addr.formattedName() );
KABC::Picture pic = addr.photo();
if ( pic.isIntern() ) {
//US emit contactSelected( pic.data() );
//US instead use:
QPixmap px;
if (pic.data().isNull() != true)
{
px.convertFromImage(pic.data());
}
emit contactSelected( px );
}
}
mExtensionManager->setSelectionChanged();
// update the actions