diff options
Diffstat (limited to 'examples/opengl/paintedwindow/main.cpp')
-rw-r--r-- | examples/opengl/paintedwindow/main.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/examples/opengl/paintedwindow/main.cpp b/examples/opengl/paintedwindow/main.cpp index 2d9a5ec675..94e559782a 100644 --- a/examples/opengl/paintedwindow/main.cpp +++ b/examples/opengl/paintedwindow/main.cpp @@ -1,8 +1,7 @@ /**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** All rights reserved. -** Contact: Nokia Corporation (qt-info@nokia.com) +** Contact: http://www.qt-project.org/ ** ** This file is part of the examples of the Qt Toolkit. ** @@ -34,13 +33,13 @@ ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include <QGuiApplication> #include <QRect> -#include <QScreen> #include "paintedwindow.h" @@ -48,15 +47,7 @@ int main(int argc, char **argv) { QGuiApplication app(argc, argv); - QScreen *screen = QGuiApplication::primaryScreen(); - - QRect screenGeometry = screen->availableGeometry(); - - QPoint center = screenGeometry.center(); - QRect windowRect(0, 0, 480, 640); - PaintedWindow window; - window.setGeometry(QRect(center - windowRect.center(), windowRect.size())); window.show(); app.exec(); |