#include "stylePluginTest.h" #include #include #include #include #include #include #include int main(int argc, char** argv) { NGLApplication app(argc, argv); app.createLogger("StyleTest", "log4cxx_styletest.props"); QStringList arguments = app.arguments(); qWarning() << "arguments" << arguments; if (arguments.count() < 2) { qWarning() << "Okay.. but which style? (enter the Style Plugin's IID)"; return 1; } if (arguments.count() > 2) { qWarning() << "Please only one argument! (taking the first one)"; } LtsUtils::StyleManager *sm = LtsUtils::StyleManager::getInstance(); if (!sm->loadStyle(arguments.at(1))) return 1; // create a dependency to ltswidget to be able to use their resources QScopedPointer d(new LtsWidgets::LtsComboBox); StylePluginTest* test = new StylePluginTest(arguments.at(1)); test->show(); return app.exec(); }