equal
deleted
inserted
replaced
48 { |
48 { |
49 Q_INIT_RESOURCE(deform); |
49 Q_INIT_RESOURCE(deform); |
50 |
50 |
51 QApplication app(argc, argv); |
51 QApplication app(argc, argv); |
52 |
52 |
53 bool smallScreen = false; |
53 bool smallScreen = QApplication::arguments().contains("-small-screen"); |
54 for (int i=0; i<argc; i++) |
|
55 if (QString(argv[i]) == "-small-screen") |
|
56 smallScreen = true; |
|
57 |
54 |
58 PathDeformWidget deformWidget(0, smallScreen); |
55 PathDeformWidget deformWidget(0, smallScreen); |
59 |
56 |
60 QStyle *arthurStyle = new ArthurStyle(); |
57 QStyle *arthurStyle = new ArthurStyle(); |
61 deformWidget.setStyle(arthurStyle); |
58 deformWidget.setStyle(arthurStyle); |