diff options
Diffstat (limited to 'demos/qtstyleorientation/main.cpp')
-rw-r--r-- | demos/qtstyleorientation/main.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/demos/qtstyleorientation/main.cpp b/demos/qtstyleorientation/main.cpp deleted file mode 100644 index 7b5deb98..00000000 --- a/demos/qtstyleorientation/main.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (directui@nokia.com) -** -** This file is part of libmeegotouch. -** -** If you have questions regarding the use of this file, please contact -** Nokia at directui@nokia.com. -** -** This library is free software; you can redistribute it and/or -** modify it under the terms of the GNU Lesser General Public -** License version 2.1 as published by the Free Software Foundation -** and appearing in the file LICENSE.LGPL included in the packaging -** of this file. -** -****************************************************************************/ - -#include <QApplication> -#include <QMainWindow> -#include <QDebug> -#include <QStyle> - -#include "mainwindow.h" - -int main(int argc, char **argv) -{ - QApplication app(argc, argv); - - qCritical() << app.arguments(); - bool enabled = QMetaObject::invokeMethod(app.style(), "setOrientationChangeEnabled", Q_ARG(bool, true)); - qCritical() << "Orientation change enabled:" << enabled; - - MainWindow mw; - mw.show(); - - return app.exec(); -} - |