| 382 | |
| 383 | template <class ExampleWidgetStandaloneWindow> |
| 384 | void createAndShowExampleWidgetStandaloneWindow(Application& app) |
| 385 | { |
| 386 | ExampleWidgetStandaloneWindow swin(app); |
| 387 | const double scaleFactor = swin.getScaleFactor(); |
| 388 | swin.setGeometryConstraints(128 * scaleFactor, 128 * scaleFactor); |
| 389 | swin.setResizable(true); |
| 390 | swin.setSize(600 * scaleFactor, 500 * scaleFactor); |
| 391 | swin.setTitle(ExampleWidgetStandaloneWindow::kExampleWidgetName); |
| 392 | swin.show(); |
| 393 | app.exec(); |
| 394 | } |
| 395 | |
| 396 | // -------------------------------------------------------------------------------------------------------------------- |
| 397 |
nothing calls this directly
no test coverage detected