summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.cpp
authorzautrix <zautrix>2004-08-06 21:32:25 (UTC)
committer zautrix <zautrix>2004-08-06 21:32:25 (UTC)
commitacc0637eb0965d66b96d138d74514acf2cf24792 (patch) (unidiff)
tree6787abd671406bbdeb2e3387aa39ba4806d84689 /microkde/kapplication.cpp
parent2087f0a25354897ff9b987093e1c6716d7bd967b (diff)
downloadkdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.zip
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.gz
kdepimpi-acc0637eb0965d66b96d138d74514acf2cf24792.tar.bz2
more licence stuff
Diffstat (limited to 'microkde/kapplication.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kapplication.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp
index f0de71e..ad0b78e 100644
--- a/microkde/kapplication.cpp
+++ b/microkde/kapplication.cpp
@@ -42,12 +42,16 @@ void KApplication::showLicence()
42{ 42{
43 QString fileName ; 43 KApplication::showFile( "KDE-Pim/Pi licence", "kdepim/LICENCE.TXT" );
44}
45
46void KApplication::showFile(QString caption, QString fn)
47{
44 QString text; 48 QString text;
49 QString fileName;
45#ifndef DESKTOP_VERSION 50#ifndef DESKTOP_VERSION
46 fileName = getenv("QPEDIR"); 51 fileName = getenv("QPEDIR");
47 fileName += "/pics/kdepim/LICENCE.TXT" ; 52 fileName += "/pics/" + fn ;
48#else 53#else
49 fileName = qApp->applicationDirPath () + "/kdepim/LICENCE.TXT"; 54 fileName = qApp->applicationDirPath () + "/" + fn;
50#endif 55#endif
51 QFile file( fileName ); 56 QFile file( fileName );
52 qDebug("Licence file name %s ",fileName.latin1() );
53 if (!file.open( IO_ReadOnly ) ) { 57 if (!file.open( IO_ReadOnly ) ) {
@@ -60,3 +64,3 @@ void KApplication::showLicence()
60 QDialog dia( 0, "name", true ); ; 64 QDialog dia( 0, "name", true ); ;
61 dia.setCaption( "KDE-Pim/Pi licence" ); 65 dia.setCaption( caption );
62 QVBoxLayout* lay = new QVBoxLayout( &dia ); 66 QVBoxLayout* lay = new QVBoxLayout( &dia );