author | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-06 22:09:46 (UTC) |
commit | 72e30db97aa4984aace0d40a1d55762e4745937d (patch) (unidiff) | |
tree | db5d5ea0748d2fa6ba63c317649567f07750f9aa /microkde | |
parent | acc0637eb0965d66b96d138d74514acf2cf24792 (diff) | |
download | kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.zip kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.gz kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.bz2 |
More licence stuff
-rw-r--r-- | microkde/kapplication.cpp | 9 | ||||
-rw-r--r-- | microkde/kapplication.h | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp index ad0b78e..98ef2f2 100644 --- a/microkde/kapplication.cpp +++ b/microkde/kapplication.cpp | |||
@@ -60,7 +60,12 @@ void KApplication::showFile(QString caption, QString fn) | |||
60 | QTextStream ts( &file ); | 60 | QTextStream ts( &file ); |
61 | text = ts.read(); | 61 | text = ts.read(); |
62 | file.close(); | 62 | file.close(); |
63 | 63 | KApplication::showText( caption, text ); | |
64 | |||
65 | } | ||
66 | |||
67 | void KApplication::showText(QString caption, QString text) | ||
68 | { | ||
64 | QDialog dia( 0, "name", true ); ; | 69 | QDialog dia( 0, "name", true ); ; |
65 | dia.setCaption( caption ); | 70 | dia.setCaption( caption ); |
66 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 71 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
@@ -75,5 +80,5 @@ void KApplication::showFile(QString caption, QString fn) | |||
75 | dia.showMaximized(); | 80 | dia.showMaximized(); |
76 | #endif | 81 | #endif |
77 | dia.exec(); | 82 | dia.exec(); |
78 | 83 | ||
79 | } | 84 | } |
diff --git a/microkde/kapplication.h b/microkde/kapplication.h index 5ae5c00..79cdb33 100644 --- a/microkde/kapplication.h +++ b/microkde/kapplication.h | |||
@@ -19,6 +19,7 @@ class KApplication | |||
19 | static int execDialog( QDialog* ); | 19 | static int execDialog( QDialog* ); |
20 | static void showLicence(); | 20 | static void showLicence(); |
21 | static void showFile(QString caption, QString file); | 21 | static void showFile(QString caption, QString file); |
22 | static void showText(QString caption, QString text); | ||
22 | }; | 23 | }; |
23 | 24 | ||
24 | 25 | ||