Beispiel #1
0
int main(int c, char **v)
{
  QApplication app(c,v);

  Browser b;

  b.show();

  return app.exec();
}
Beispiel #2
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    Browser browser;
    browser.showArtists();
#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    browser.showMaximized();
#else
    browser.show();
#endif

    return app.exec();
}
Beispiel #3
0
int main( int argc, char ** argv )
{
  QApplication* app = new QApplication( argc, argv );
  Browser* w = new Browser;

#if defined(_WS_QWS) || defined(Q_WS_QWS)
  w->showFullScreen();
  int ww = w->width();
  int wh = w->height();
  int dim = (ww > wh) ? wh : ww;
  dim = dim * 3 / 4;
  w->setSlideSize(QSize(3*dim/5, dim));
#else  
  w->setSlideSize(QSize(3*40, 5*40));
  w->resize(750, 270);
#endif

  QStringList files = (argc > 1) ? findFiles(QString(argv[1])) : findFiles();

  QImage img;
  for(int i = 0; i < (int)files.count(); i++)
    if(img.load(files[i]))
      w->addSlide(img);

  w->setCenterIndex(w->slideCount()/2);
  w->setBackgroundColor(Qt::white);
  w->show();

  app->connect( app, SIGNAL(lastWindowClosed()), app, SLOT(quit()) );
  int result = app->exec();

  delete w;
  delete app;

  return result;
}
Beispiel #4
0
int main(int argc, char **argv) {
	QApplication app(argc, argv);
	Browser browser;
	browser.show();
	return app.exec();
}