summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.cpp
Unidiff
Diffstat (limited to 'microkde/kapplication.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kapplication.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/microkde/kapplication.cpp b/microkde/kapplication.cpp
index ad0b78e..98ef2f2 100644
--- a/microkde/kapplication.cpp
+++ b/microkde/kapplication.cpp
@@ -57,13 +57,18 @@ void KApplication::showFile(QString caption, QString fn)
57 if (!file.open( IO_ReadOnly ) ) { 57 if (!file.open( IO_ReadOnly ) ) {
58 return ; 58 return ;
59 } 59 }
60 QTextStream ts( &file ); 60 QTextStream ts( &file );
61 text = ts.read(); 61 text = ts.read();
62 file.close(); 62 file.close();
63 KApplication::showText( caption, text );
63 64
65}
66
67void 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 );
67 lay->setSpacing( 3 ); 72 lay->setSpacing( 3 );
68 lay->setMargin( 3 ); 73 lay->setMargin( 3 );
69 QTextBrowser tb ( &dia ); 74 QTextBrowser tb ( &dia );