-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 @@ -59,9 +59,14 @@ void KApplication::showFile(QString caption, QString fn) } QTextStream ts( &file ); text = ts.read(); file.close(); - + KApplication::showText( caption, text ); + +} + +void KApplication::showText(QString caption, QString text) +{ QDialog dia( 0, "name", true ); ; dia.setCaption( caption ); QVBoxLayout* lay = new QVBoxLayout( &dia ); lay->setSpacing( 3 ); @@ -74,6 +79,6 @@ void KApplication::showFile(QString caption, QString fn) #else dia.showMaximized(); #endif dia.exec(); - + } diff --git a/microkde/kapplication.h b/microkde/kapplication.h index 5ae5c00..79cdb33 100644 --- a/microkde/kapplication.h +++ b/microkde/kapplication.h @@ -18,8 +18,9 @@ class KApplication static QString randomString(int length); static int execDialog( QDialog* ); static void showLicence(); static void showFile(QString caption, QString file); + static void showText(QString caption, QString text); }; #endif |