author | zautrix <zautrix> | 2005-04-21 22:27:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-21 22:27:41 (UTC) |
commit | abf935a18e55fcbe221d5a7c652840af279e2e3f (patch) (unidiff) | |
tree | 9ac85aa9f7c281f41a9f5685db971f15399b5a47 | |
parent | 6284b1d7d597463347b471ed8ec2770f4e2d449b (diff) | |
download | kdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.zip kdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.tar.gz kdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.tar.bz2 |
cf
-rw-r--r-- | microkde/kapplication.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index 539397b..566bb41 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp | |||
@@ -1,28 +1,29 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | 3 | ||
4 | #include "kapplication.h" | 4 | #include "kapplication.h" |
5 | #include "ktextedit.h" | 5 | #include "ktextedit.h" |
6 | #include <qapplication.h> | 6 | #include <qapplication.h> |
7 | #include <qstring.h> | 7 | #include <qstring.h> |
8 | #include <qfile.h> | 8 | #include <qfile.h> |
9 | #include <qtextstream.h> | 9 | #include <qtextstream.h> |
10 | #include <qdialog.h> | 10 | #include <qdialog.h> |
11 | #include <qlayout.h> | 11 | #include <qlayout.h> |
12 | #include <qtextbrowser.h> | 12 | #include <qtextbrowser.h> |
13 | #include <qregexp.h> | ||
13 | 14 | ||
14 | int KApplication::random() | 15 | int KApplication::random() |
15 | { | 16 | { |
16 | return rand(); | 17 | return rand(); |
17 | } | 18 | } |
18 | 19 | ||
19 | //US | 20 | //US |
20 | QString KApplication::randomString(int length) | 21 | QString KApplication::randomString(int length) |
21 | { | 22 | { |
22 | if (length <=0 ) return QString::null; | 23 | if (length <=0 ) return QString::null; |
23 | 24 | ||
24 | QString str; | 25 | QString str; |
25 | while (length--) | 26 | while (length--) |
26 | { | 27 | { |
27 | int r=random() % 62; | 28 | int r=random() % 62; |
28 | r+=48; | 29 | r+=48; |