author | zautrix <zautrix> | 2004-10-23 09:04:58 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 09:04:58 (UTC) |
commit | ba2583db0431059cd7368be23c9653e81af16d29 (patch) (unidiff) | |
tree | 75d4a662731651d391a5e5bb60e89d1245781593 /pwmanager | |
parent | eb0bc46bfbba45a84c7353f1c9c4dba27273f021 (diff) | |
download | kdepimpi-ba2583db0431059cd7368be23c9653e81af16d29.zip kdepimpi-ba2583db0431059cd7368be23c9653e81af16d29.tar.gz kdepimpi-ba2583db0431059cd7368be23c9653e81af16d29.tar.bz2 |
fixed desktop descape bug. added statusbar to embedded and desktop
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 10 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmdocui.cpp | 10 | ||||
-rw-r--r-- | pwmanager/pwmanager/serializer.cpp | 8 |
3 files changed, 18 insertions, 10 deletions
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index 9798e8e..b7b5307 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -26,2 +26,4 @@ | |||
26 | 26 | ||
27 | #include <qstatusbar.h> | ||
28 | |||
27 | #ifndef PWM_EMBEDDED | 29 | #ifndef PWM_EMBEDDED |
@@ -1360,13 +1362,11 @@ void PwM::copyToClipboard(const QString &s) | |||
1360 | 1362 | ||
1363 | |||
1361 | void PwM::showStatMsg(const QString &msg) | 1364 | void PwM::showStatMsg(const QString &msg) |
1362 | { | 1365 | { |
1363 | #ifndef PWM_EMBEDDED | 1366 | #ifdef DESKTOP_VERSION |
1364 | KStatusBar *statBar = statusBar(); | 1367 | statusBar()->message(msg, STATUSBAR_MSG_TIMEOUT * 1000); |
1365 | statBar->message(msg, STATUSBAR_MSG_TIMEOUT * 1000); | ||
1366 | #else | 1368 | #else |
1367 | qDebug("Statusbar : %s",msg.latin1()); | 1369 | qDebug("Statusbar : %s",msg.latin1()); |
1368 | #ifndef DESKTOP_VERSION | ||
1369 | Global::statusMessage(msg); | 1370 | Global::statusMessage(msg); |
1370 | #endif | 1371 | #endif |
1371 | #endif | ||
1372 | } | 1372 | } |
diff --git a/pwmanager/pwmanager/pwmdocui.cpp b/pwmanager/pwmanager/pwmdocui.cpp index 6ddb6f5..71b4a8d 100644 --- a/pwmanager/pwmanager/pwmdocui.cpp +++ b/pwmanager/pwmanager/pwmdocui.cpp | |||
@@ -381,3 +381,3 @@ bool PwMDocUi::openDocUi(PwMDoc *doc, | |||
381 | + filename, | 381 | + filename, |
382 | i18n("file error")); | 382 | i18n("File error")); |
383 | goto cancelOpen; | 383 | goto cancelOpen; |
@@ -387,3 +387,3 @@ bool PwMDocUi::openDocUi(PwMDoc *doc, | |||
387 | i18n("This file is already open."), | 387 | i18n("This file is already open."), |
388 | i18n("already open")); | 388 | i18n("Already open")); |
389 | goto cancelOpen; | 389 | goto cancelOpen; |
@@ -396,3 +396,3 @@ bool PwMDocUi::openDocUi(PwMDoc *doc, | |||
396 | i18n | 396 | i18n |
397 | ("incompatible version")); | 397 | ("Incompatible version")); |
398 | goto cancelOpen; | 398 | goto cancelOpen; |
@@ -412,3 +412,3 @@ bool PwMDocUi::openDocUi(PwMDoc *doc, | |||
412 | i18n | 412 | i18n |
413 | ("no PwM password-file")); | 413 | ("No PwM password-file")); |
414 | goto cancelOpen; | 414 | goto cancelOpen; |
@@ -422,3 +422,3 @@ bool PwMDocUi::openDocUi(PwMDoc *doc, | |||
422 | i18n | 422 | i18n |
423 | ("checksum error")); | 423 | ("Checksum error")); |
424 | goto cancelOpen; | 424 | goto cancelOpen; |
diff --git a/pwmanager/pwmanager/serializer.cpp b/pwmanager/pwmanager/serializer.cpp index ed0f754..5753c1d 100644 --- a/pwmanager/pwmanager/serializer.cpp +++ b/pwmanager/pwmanager/serializer.cpp | |||
@@ -167,2 +167,4 @@ bool Serializer::parseXml(const QCString &buffer) | |||
167 | { | 167 | { |
168 | //abort(); | ||
169 | //qDebug("parse %s ", buffer.data()); | ||
168 | PWM_ASSERT(domDoc); | 170 | PWM_ASSERT(domDoc); |
@@ -358,2 +360,3 @@ bool Serializer::extractEntry(const QDomNode &n, | |||
358 | text = ""; // for backward compatibility. | 360 | text = ""; // for backward compatibility. |
361 | //qDebug("entry %s ",unescapeEntryData(text).latin1()); | ||
359 | if (name == ENTRY_DESC_NEW || | 362 | if (name == ENTRY_DESC_NEW || |
@@ -703,2 +706,6 @@ QString Serializer::unescapeEntryData(QString dta) | |||
703 | #else | 706 | #else |
707 | #ifdef DESKTOP_VERSION | ||
708 | dta.replace("$>--endl--<$", "\n"); | ||
709 | dta.replace("||>", "]]>"); | ||
710 | #else | ||
704 | dta.replace(QRegExp("\\$>--endl--<\\$"), "\n"); | 711 | dta.replace(QRegExp("\\$>--endl--<\\$"), "\n"); |
@@ -706,2 +713,3 @@ QString Serializer::unescapeEntryData(QString dta) | |||
706 | #endif | 713 | #endif |
714 | #endif | ||
707 | return dta; | 715 | return dta; |