summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/addresseeview.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp
index e9dc1e9..aa9b7f3 100644
--- a/libkdepim/addresseeview.cpp
+++ b/libkdepim/addresseeview.cpp
@@ -32,25 +32,25 @@
#include <qfile.h>
#include <qapplication.h>
#include "addresseeview.h"
#ifndef DESKTOP_VERSION
#include <qtopia/qcopenvelope_qws.h>
#include <qpe/qpeapplication.h>
#endif
-int kphoneInstalled = 0;
+static int kphoneInstalled = 0;
using namespace KPIM;
AddresseeView::AddresseeView( QWidget *parent, const char *name )
//US : KTextBrowser( parent, name )
: QTextBrowser( parent, name )
{
//US setWrapPolicy( QTextEdit::AtWordBoundary );
setLinkUnderline( false );
// setVScrollBarMode( QScrollView::AlwaysOff );
@@ -77,30 +77,34 @@ void AddresseeView::setSource(const QString& n)
}
void AddresseeView::setAddressee( const KABC::Addressee& addr )
{
bool kphoneAvail = false;
#ifndef DESKTOP_VERSION
if ( ! kphoneInstalled ) {
if ( QFile::exists( QPEApplication::qpeDir() + "/bin/kppi" ) )
kphoneInstalled = 1;
else
kphoneInstalled = -1;
- } else {
+ }
if ( kphoneInstalled > 0 )
kphoneAvail = true;
- }
- //if ( kphoneAvail )
- // qDebug("KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail ");
+#if 0
+ if ( kphoneAvail )
+ qDebug("KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail ");
+ else
+ qDebug("NOOOOOOOOOOOo KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail ");
+#endif
+
#endif
mAddressee = addr;
// clear view
setText( QString::null );
if ( mAddressee.isEmpty() )
return;
QString name = ( mAddressee.formattedName().isEmpty() ?
mAddressee.assembledName() : mAddressee.formattedName() );
QString dynamicPart;