#include <QtGui/QApplication>
#include <QLabel>
#include <QPushButton.h>
#include <QGridLayout>
#include <QSlider>
#include <QSpinbox>
#include "finddialog.h"

int main(int argc, char *argv[])
{
   QApplication app(argc, argv);
   /*QWidget *window = new QWidget;
   window->setWindowTitle("Enter Your Age");

  QLabel *label = new QLabel
        ("<h2><i>Hello</i> "
         "<font color=red>Qt!</font></h2>");
   //label->show();

   QPushButton *button = new QPushButton("Quit");
   QObject::connect(button, SIGNAL(clicked()),
   &app, SLOT(quit()));
   //button->show();

   QSpinBox *spinBox = new QSpinBox;
   QSlider *slider = new QSlider(Qt::Vertical);
   spinBox->setRange(0, 130);
   slider->setRange(0, 130);
   QObject::connect(spinBox, SIGNAL(valueChanged(int)),
   slider, SLOT(setValue(int)));
   QObject::connect(slider, SIGNAL(valueChanged(int)),
   spinBox, SLOT(setValue(int)));
   spinBox->setValue(35);

   QGridLayout *layout = new QGridLayout;
   layout->addWidget(label);
   layout->addWidget(button);
   layout->addWidget(spinBox);
   layout->addWidget(slider);

   window->setLayout(layout);
   window->show();*/

   FindDialog *dialog = new FindDialog;
   dialog->show();
    //return a.exec();
    return app.exec();
}
