summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.cpp
authorzautrix <zautrix>2004-07-03 17:03:05 (UTC)
committer zautrix <zautrix>2004-07-03 17:03:05 (UTC)
commitd6c945f1c48c6b6742751177d07e88dca3f3044d (patch) (unidiff)
tree8720a31b685480503aa3b5a3b3328dcddcdbc6cb /microkde/kapplication.cpp
parent65ed57d77ba421169b62f46f59ae6b1d7a228e3d (diff)
downloadkdepimpi-d6c945f1c48c6b6742751177d07e88dca3f3044d.zip
kdepimpi-d6c945f1c48c6b6742751177d07e88dca3f3044d.tar.gz
kdepimpi-d6c945f1c48c6b6742751177d07e88dca3f3044d.tar.bz2
Added 4 opie files. Updated pro file.
Diffstat (limited to 'microkde/kapplication.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kapplication.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp
index a1d00a8..77ceac5 100644
--- a/microkde/kapplication.cpp
+++ b/microkde/kapplication.cpp
@@ -3,24 +3,29 @@
3#include "kapplication.h" 3#include "kapplication.h"
4 4
5int KApplication::random() 5int KApplication::random()
6{ 6{
7 return rand(); 7 return rand();
8} 8}
9 9
10//US 10//US
11QString KApplication::randomString(int length) 11QString KApplication::randomString(int length)
12{ 12{
13 if (length <=0 ) return QString::null; 13 if (length <=0 ) return QString::null;
14 14
15 QString str; 15 QString str;
16 while (length--) 16 while (length--)
17 { 17 {
18 int r=random() % 62; 18 int r=random() % 62;
19 r+=48; 19 r+=48;
20 if (r>57) r+=7; 20 if (r>57) r+=7;
21 if (r>90) r+=6; 21 if (r>90) r+=6;
22 str += char(r); 22 str += char(r);
23 // so what if I work backwards? 23 // so what if I work backwards?
24 } 24 }
25 return str; 25 return str;
26} 26}
27 int KApplication::execDialog( QDialog* d )
28{
29 d->showMaximized();
30 return d->exec();
31}