summaryrefslogtreecommitdiffabout
path: root/microkde/kapplication.cpp
authorzautrix <zautrix>2004-08-06 22:09:46 (UTC)
committer zautrix <zautrix>2004-08-06 22:09:46 (UTC)
commit72e30db97aa4984aace0d40a1d55762e4745937d (patch) (side-by-side diff)
treedb5d5ea0748d2fa6ba63c317649567f07750f9aa /microkde/kapplication.cpp
parentacc0637eb0965d66b96d138d74514acf2cf24792 (diff)
downloadkdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.zip
kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.gz
kdepimpi-72e30db97aa4984aace0d40a1d55762e4745937d.tar.bz2
More licence stuff
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)
if (!file.open( IO_ReadOnly ) ) {
return ;
}
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 );
lay->setMargin( 3 );
QTextBrowser tb ( &dia );