author | zautrix <zautrix> | 2004-08-06 16:59:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 16:59:46 (UTC) |
commit | b41f6fbe8e52f0b063ded2eebadfc885aa93ae73 (patch) (unidiff) | |
tree | cfe689cc48c176486c53e1147229993524a8b935 /libkdepim/addresseeview.cpp | |
parent | 02963edb373e263bd50ab431633ea66adf32a4aa (diff) | |
download | kdepimpi-b41f6fbe8e52f0b063ded2eebadfc885aa93ae73.zip kdepimpi-b41f6fbe8e52f0b063ded2eebadfc885aa93ae73.tar.gz kdepimpi-b41f6fbe8e52f0b063ded2eebadfc885aa93ae73.tar.bz2 |
mail name fix
-rw-r--r-- | libkdepim/addresseeview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/addresseeview.cpp b/libkdepim/addresseeview.cpp index aa9b7f3..547441c 100644 --- a/libkdepim/addresseeview.cpp +++ b/libkdepim/addresseeview.cpp | |||
@@ -37,65 +37,65 @@ | |||
37 | 37 | ||
38 | 38 | ||
39 | #ifndef DESKTOP_VERSION | 39 | #ifndef DESKTOP_VERSION |
40 | #include <qtopia/qcopenvelope_qws.h> | 40 | #include <qtopia/qcopenvelope_qws.h> |
41 | #include <qpe/qpeapplication.h> | 41 | #include <qpe/qpeapplication.h> |
42 | #endif | 42 | #endif |
43 | 43 | ||
44 | static int kphoneInstalled = 0; | 44 | static int kphoneInstalled = 0; |
45 | 45 | ||
46 | using namespace KPIM; | 46 | using namespace KPIM; |
47 | 47 | ||
48 | AddresseeView::AddresseeView( QWidget *parent, const char *name ) | 48 | AddresseeView::AddresseeView( QWidget *parent, const char *name ) |
49 | //US : KTextBrowser( parent, name ) | 49 | //US : KTextBrowser( parent, name ) |
50 | : QTextBrowser( parent, name ) | 50 | : QTextBrowser( parent, name ) |
51 | 51 | ||
52 | 52 | ||
53 | { | 53 | { |
54 | //US setWrapPolicy( QTextEdit::AtWordBoundary ); | 54 | //US setWrapPolicy( QTextEdit::AtWordBoundary ); |
55 | setLinkUnderline( false ); | 55 | setLinkUnderline( false ); |
56 | // setVScrollBarMode( QScrollView::AlwaysOff ); | 56 | // setVScrollBarMode( QScrollView::AlwaysOff ); |
57 | //setHScrollBarMode( QScrollView::AlwaysOff ); | 57 | //setHScrollBarMode( QScrollView::AlwaysOff ); |
58 | 58 | ||
59 | //US QStyleSheet *sheet = styleSheet(); | 59 | //US QStyleSheet *sheet = styleSheet(); |
60 | //US QStyleSheetItem *link = sheet->item( "a" ); | 60 | //US QStyleSheetItem *link = sheet->item( "a" ); |
61 | //US link->setColor( KGlobalSettings::linkColor() ); | 61 | //US link->setColor( KGlobalSettings::linkColor() ); |
62 | 62 | ||
63 | } | 63 | } |
64 | void AddresseeView::setSource(const QString& n) | 64 | void AddresseeView::setSource(const QString& n) |
65 | { | 65 | { |
66 | qDebug("********AddresseeView::setSource %s", n.latin1()); | 66 | qDebug("********AddresseeView::setSource %s", n.latin1()); |
67 | #ifndef DESKTOP_VERSION | 67 | #ifndef DESKTOP_VERSION |
68 | if ( n.left( 6 ) == "mailto" ) { | 68 | if ( n.left( 6 ) == "mailto" ) { |
69 | QCopEnvelope e("QPE/Application/kmpi", "newMail(QString)"); | 69 | QCopEnvelope e("QPE/Application/ompi", "newMail(QString)"); |
70 | e << n.mid(7); | 70 | e << n.mid(7); |
71 | } | 71 | } |
72 | if ( n.left( 7 ) == "phoneto" ) { | 72 | if ( n.left( 7 ) == "phoneto" ) { |
73 | QString mess = "-ring:" + n.mid(8); | 73 | QString mess = "-ring:" + n.mid(8); |
74 | QCopEnvelope e("QPE/Application/kppi", mess.latin1()); | 74 | QCopEnvelope e("QPE/Application/kppi", mess.latin1()); |
75 | } | 75 | } |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | } | 78 | } |
79 | void AddresseeView::setAddressee( const KABC::Addressee& addr ) | 79 | void AddresseeView::setAddressee( const KABC::Addressee& addr ) |
80 | { | 80 | { |
81 | bool kphoneAvail = false; | 81 | bool kphoneAvail = false; |
82 | 82 | ||
83 | #ifndef DESKTOP_VERSION | 83 | #ifndef DESKTOP_VERSION |
84 | if ( ! kphoneInstalled ) { | 84 | if ( ! kphoneInstalled ) { |
85 | if ( QFile::exists( QPEApplication::qpeDir() + "/bin/kppi" ) ) | 85 | if ( QFile::exists( QPEApplication::qpeDir() + "/bin/kppi" ) ) |
86 | kphoneInstalled = 1; | 86 | kphoneInstalled = 1; |
87 | else | 87 | else |
88 | kphoneInstalled = -1; | 88 | kphoneInstalled = -1; |
89 | } | 89 | } |
90 | if ( kphoneInstalled > 0 ) | 90 | if ( kphoneInstalled > 0 ) |
91 | kphoneAvail = true; | 91 | kphoneAvail = true; |
92 | #if 0 | 92 | #if 0 |
93 | if ( kphoneAvail ) | 93 | if ( kphoneAvail ) |
94 | qDebug("KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail "); | 94 | qDebug("KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail "); |
95 | else | 95 | else |
96 | qDebug("NOOOOOOOOOOOo KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail "); | 96 | qDebug("NOOOOOOOOOOOo KPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPone avail "); |
97 | #endif | 97 | #endif |
98 | 98 | ||
99 | #endif | 99 | #endif |
100 | mAddressee = addr; | 100 | mAddressee = addr; |
101 | // clear view | 101 | // clear view |