#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <kcmdlineargs.h>
#include <kapplication.h>
#include <kaboutdata.h>
#include "hellowindow.h"
static KCmdLineOptions options[] =
{
{ 0, 0, 0 } };
int
main (int argc, char *argv[])
{
{
QString kdedirs = getenv ("KDEDIRS");
if (kdedirs.isEmpty ())
kdedirs = PREFIX;
else
kdedirs = kdedirs + ":" + PREFIX;
setenv ("KDEDIRS", (const char *) kdedirs.local8Bit(), true);
}
KAboutData aboutData ("hello-c++-kde",
I18N_NOOP ("Hello example"),
VERSION,
I18N_NOOP ("Hello world example"),
KAboutData::License_GPL,
"(C) 2003 Free Software Foundation",
NULL,
NULL,
"bug-gnu-gettext@gnu.org");
KCmdLineArgs::init (argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions (options);
KApplication application;
HelloMainWindow *window = new HelloMainWindow ();
QObject::connect (window->button, SIGNAL (clicked ()),
&application, SLOT (quit ()));
application.setMainWidget (window);
window->show ();
return application.exec ();
}