int main(int argc, char *argv[]) { Q_INIT_RESOURCE(draggabletext); QApplication app(argc, argv); DragWidget window; window.show(); return app.exec(); }
int main(int argc, char *argv[]) { Q_INIT_RESOURCE(fridgemagnets); QApplication app(argc, argv); DragWidget window; window.show(); return app.exec(); }
int main(int argc, char *argv[]) { Q_INIT_RESOURCE(draggabletext); QApplication app(argc, argv); DragWidget window; #ifdef Q_OS_SYMBIAN window.showMaximized(); #else window.show(); #endif return app.exec(); }
int main(int argc, char *argv[]) { Q_INIT_RESOURCE(fridgemagnets); bool smallScreen = false; for (int i=0; i<argc; i++) if (QString(argv[i]) == "-small-screen") smallScreen = true; QApplication app(argc, argv); #ifdef QT_KEYPAD_NAVIGATION QApplication::setNavigationMode(Qt::NavigationModeCursorAuto); #endif DragWidget window; if (smallScreen) window.showFullScreen(); else window.show(); return app.exec(); }