author | zautrix <zautrix> | 2005-03-10 09:13:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-10 09:13:29 (UTC) |
commit | 4b05d69b961309df5d56714889c62ca530580914 (patch) (unidiff) | |
tree | c6b7b0651889a88ffe44c570f7e557523cfa1044 | |
parent | f20f8ca063abd322387a72f3f5a65c480f6a4233 (diff) | |
download | kdepimpi-4b05d69b961309df5d56714889c62ca530580914.zip kdepimpi-4b05d69b961309df5d56714889c62ca530580914.tar.gz kdepimpi-4b05d69b961309df5d56714889c62ca530580914.tar.bz2 |
pwmp fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index a7b8530..d4b7971 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -8,4 +8,5 @@ Added keyboard shorcuts for | |||
8 | - delete item (delete + backspace key) | 8 | - delete item (delete + backspace key) |
9 | - add new item ( i + n key) | 9 | - add new item ( i + n key) |
10 | Fixed length of info in the title. | ||
10 | 11 | ||
11 | KO/Pi-KA/Pi: | 12 | KO/Pi-KA/Pi: |
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index a751fce..9c8d12d 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -490,5 +490,16 @@ void PwM::initMetrics() | |||
490 | void PwM::updateCaption() | 490 | void PwM::updateCaption() |
491 | { | 491 | { |
492 | setPlainCaption(curDoc()->getTitle() + " - " PROG_NAME " " PACKAGE_VER); | 492 | QString s = curDoc()->getTitle(); |
493 | int maxlen = 50; | ||
494 | if ( QApplication::desktop()->width() < 640 ) { | ||
495 | if ( QApplication::desktop()->width() < 320 ) | ||
496 | maxlen = 22; | ||
497 | else | ||
498 | maxlen = 35; | ||
499 | } | ||
500 | if ( s.length() > maxlen ) { | ||
501 | s = "..."+s.right(maxlen -3); | ||
502 | } | ||
503 | setPlainCaption( s ); | ||
493 | } | 504 | } |
494 | 505 | ||