#include <QApplication>
#include <QHBoxLayout>
#include <itksys/SystemTools.hxx>
int main(
int argc,
char *argv[])
{
QApplication qtapplication(argc, argv);
if (argc < 2)
{
fprintf(
stderr, "Usage: %s [filename1] [filename2] ...\n\n", itksys::SystemTools::GetFilenameName(argv[0]).c_str());
return 1;
}
int i;
for (i = 1; i < argc; ++i)
{
if (strcmp(argv[i], "-testing") == 0)
continue;
}
QWidget toplevelWidget;
QHBoxLayout layout;
layout.setSpacing(2);
layout.setMargin(0);
toplevelWidget.setLayout(&layout);
layout.addWidget(&renderWindow);
layout.addWidget(&view2);
layout.addWidget(&view3);
toplevelWidget.show();
if (strcmp(argv[argc - 1], "-testing") != 0)
return qtapplication.exec();
else
}