summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.cpp
Unidiff
Diffstat (limited to 'microkde/kapplication.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kapplication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp
index 56c01af..d6f556d 100644
--- a/microkde/kapplication.cpp
+++ b/microkde/kapplication.cpp
@@ -27,29 +27,31 @@ QString KApplication::randomString(int length)
27 r+=48; 27 r+=48;
28 if (r>57) r+=7; 28 if (r>57) r+=7;
29 if (r>90) r+=6; 29 if (r>90) r+=6;
30 str += char(r); 30 str += char(r);
31 // so what if I work backwards? 31 // so what if I work backwards?
32 } 32 }
33 return str; 33 return str;
34} 34}
35int KApplication::execDialog( QDialog* d ) 35int KApplication::execDialog( QDialog* d )
36{ 36{
37 if (QApplication::desktop()->width() <= 640 ) 37 if (QApplication::desktop()->width() <= 640 )
38 d->showMaximized(); 38 d->showMaximized();
39 else
40 ;//d->resize( 800, 600 );
39 return d->exec(); 41 return d->exec();
40} 42}
41void KApplication::showLicence() 43void KApplication::showLicence()
42{ 44{
43 KApplication::showFile( "KDE-Pim/Pi licence", "kdepim/LICENCE.TXT" ); 45 KApplication::showFile( "KDE-Pim/Pi licence", "kdepim/licence.txt" );
44} 46}
45 47
46void KApplication::showFile(QString caption, QString fn) 48void KApplication::showFile(QString caption, QString fn)
47{ 49{
48 QString text; 50 QString text;
49 QString fileName; 51 QString fileName;
50#ifndef DESKTOP_VERSION 52#ifndef DESKTOP_VERSION
51 fileName = getenv("QPEDIR"); 53 fileName = getenv("QPEDIR");
52 fileName += "/pics/" + fn ; 54 fileName += "/pics/" + fn ;
53#else 55#else
54 fileName = qApp->applicationDirPath () + "/" + fn; 56 fileName = qApp->applicationDirPath () + "/" + fn;
55#endif 57#endif