#if HAVE_CONFIG_H
# include <config.h>
#endif
#include "hellowindow.h"
#include <klocale.h>
#include <kmainwindow.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qstring.h>
#include <qvbox.h>
#include <qhbox.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
HelloMainWindow::HelloMainWindow (QWidget * parent, const char * name)
: KMainWindow (parent, name)
{
setCaption ("Hello example");
QVBox *panel = new QVBox (this);
panel->setSpacing (2);
QLabel *label1 = new QLabel (i18n ("Hello, world!"), panel);
QString label2text;
label2text = i18n ("This program is running as process number %1.").arg(getpid ());
QLabel *label2 = new QLabel (label2text, panel);
QHBox *buttonbar = new QHBox (panel);
QWidget *filler = new QWidget (buttonbar); button = new QPushButton ("OK", buttonbar);
button->setMaximumWidth (button->sizeHint().width() + 20);
panel->resize (panel->sizeHint ());
resize (panel->frameSize ());
}
HelloMainWindow::~HelloMainWindow ()
{
}