author | zautrix <zautrix> | 2005-06-17 10:27:21 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-17 10:27:21 (UTC) |
commit | ec691904e9c129fda7514179910c5be9bf0d908b (patch) (side-by-side diff) | |
tree | 75984d135b97049af03ba22eab7f7db53a8a7922 /microkde | |
parent | 56f20e7a0a6b8ecf84d11ced19f870241a13c17d (diff) | |
download | kdepimpi-ec691904e9c129fda7514179910c5be9bf0d908b.zip kdepimpi-ec691904e9c129fda7514179910c5be9bf0d908b.tar.gz kdepimpi-ec691904e9c129fda7514179910c5be9bf0d908b.tar.bz2 |
fixxx
-rw-r--r-- | microkde/kglobal.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/microkde/kglobal.cpp b/microkde/kglobal.cpp index bf7e238..53edd08 100644 --- a/microkde/kglobal.cpp +++ b/microkde/kglobal.cpp @@ -101,2 +101,9 @@ QString KGlobal::formatMessage ( QString mess, int maxlen ) //int maxlen = 80; + if ( maxlen == 0 ) { + maxlen = QApplication::desktop()->width()/10; + if ( maxlen > 32 ) + maxlen = (maxlen * 3) / 4; + if ( maxlen > 100 ) + maxlen = 100; + } int start = 0; |