From 72e30db97aa4984aace0d40a1d55762e4745937d Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 06 Aug 2004 22:09:46 +0000 Subject: More licence stuff --- (limited to 'microkde') 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) 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 ); @@ -75,5 +80,5 @@ void KApplication::showFile(QString caption, QString fn) 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 @@ -19,6 +19,7 @@ class KApplication static int execDialog( QDialog* ); static void showLicence(); static void showFile(QString caption, QString file); + static void showText(QString caption, QString text); }; -- cgit v0.9.0.2