summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-04-21 22:27:41 (UTC)
committer zautrix <zautrix>2005-04-21 22:27:41 (UTC)
commitabf935a18e55fcbe221d5a7c652840af279e2e3f (patch) (unidiff)
tree9ac85aa9f7c281f41a9f5685db971f15399b5a47
parent6284b1d7d597463347b471ed8ec2770f4e2d449b (diff)
downloadkdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.zip
kdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.tar.gz
kdepimpi-abf935a18e55fcbe221d5a7c652840af279e2e3f.tar.bz2
cf
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kapplication.cpp1
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
14int KApplication::random() 15int KApplication::random()
15{ 16{
16 return rand(); 17 return rand();
17} 18}
18 19
19//US 20//US
20QString KApplication::randomString(int length) 21QString 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;