#include #include #include #include #include "khelloworld.h" static const char* description = I18N_NOOP("Hello World from KDE."); static const char* version = "1.0"; int main( int argc, char* argv[] ) { KAboutData aboutData( "KHelloWorld", I18N_NOOP("KHelloWorld"), version, description, KAboutData::License_LGPL, "(c)2003, Tasuku Suzuki" ); aboutData.addAuthor( "Tasuku Suzuki", 0, "tasuku@linux-life.net" ); KCmdLineArgs::init( argc, argv, &aboutData ); KApplication app; if( app.isRestored() ){ RESTORE( KHelloWorld ) }else{ KHelloWorld* khelloworld = new KHelloWorld(); khelloworld->show(); } app.exec(); }