summaryrefslogtreecommitdiffstats
path: root/examples/opengl/cube/main.cpp
blob: c75fd0826a0dd33c599a458b5f68f01c420f816b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are
** met:
**   * Redistributions of source code must retain the above copyright
**     notice, this list of conditions and the following disclaimer.
**   * Redistributions in binary form must reproduce the above copyright
**     notice, this list of conditions and the following disclaimer in
**     the documentation and/or other materials provided with the
**     distribution.
**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
**     the names of its contributors may be used to endorse or promote
**     products derived from this software without specific prior written
**     permission.
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** 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 <QtGui/QApplication>
#include <QLabel>

#ifndef QT_NO_OPENGL
#include "mainwidget.h"
#endif

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setApplicationName("cube");
    a.setApplicationVersion("0.1");
#ifndef QT_NO_OPENGL
    MainWidget w;
    w.resize(640, 480);
    w.show();
#else
    QLabel * notifyLabel = new QLabel("OpenGL Support required");
    notifyLabel->show();
#endif
    return a.exec();
}
>Fix parsing method calls with null arguments in Java codeEskil Abrahamsen Blomfeldt2009-05-201-5/+11 | | | | * Fix a typo in the class documentation for QItemDelegateAndy Shaw2009-05-201-1/+1 | | | * | Fix incorrect copyright year in some license headers.Jason McDonald2009-05-2011-11/+11 | | | |/ | | | * Optimize QIoDevice::readAll() to possibly do less (re)allocationsMarkus Goetz2009-05-201-3/+4 | | | * Fixes a memory leak in the interbase sql driver.Bill King2009-05-201-4/+3 | | | * Added auto-test for QComboBox::setItemDelegate and task 253944Stian Sandvik Thomassen2009-05-201-0/+24 | | | * Adds thread initialisation/cleanup code to mysql.Bill King2009-05-201-0/+8 | | | * Updated WebKit from /home/ariya/dev/webkit/qtwebkit-4.5 to origin/qtwebkit-4....Ariya Hidayat2009-05-194-2/+16 | | | * Revert commit a372fc602a3cb09379875ced99ec969c371917d7.Ariya Hidayat2009-05-196-695/+1645 | | | * Mentioned the new fancy browser example in the changes-4.5.2.Ariya Hidayat2009-05-191-0/+2 | | | * Updated WebKit from /home/ariya/dev/webkit/qtwebkit-4.5 to origin/qtwebkit-4....Ariya Hidayat2009-05-196-1645/+695 | | * | qdoc: Moved qdoc comments from qmacstyle_mac.mm to qstyles.qdocMartin Smith2009-05-203-160/+273 | * | | Doc: Fixed the paper sizes again.David Boddie2009-05-201-16/+16 | * | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5David Boddie2009-05-190-0/+0 | |\ \ \ | * | | | Doc: Added information about the third-party MD4, SHA-1 and DES code.David Boddie2009-05-191-54/+82 | * | | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5David Boddie2009-05-19982-29740/+31747 | |\ \ \ \ | * | | | | Doc: Added a note about copying by value in QMetaProperty and included detail...David Boddie2009-05-191-3/+15 * | | | | | Doc: First attempt at a simpler widgets tutorial.David Boddie2009-05-2011-11/+449 * | | | | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtDavid Boddie2009-05-20244-3712/+5983 |\ \ \ \ \ \ | * | | | | | Add string-->enum conversion for properties and slotsKent Hansen2009-05-204-9/+96 | * | | | | | Inject some more Qt colors into the css to make it look a bit more QtSoftwareThomas Zander2009-05-201-22/+12 | * | | | | | Refactor the qimagereader autotest to work with shadow buildBenjamin Poulain2009-05-207-211/+224 | * | | | | | Remove unused variables from various About dialogs.Jason McDonald2009-05-205-38/+9 | * | | | | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qtSimon Hausmann2009-05-1989-197/+555 | |\ \ \ \ \ \ | | | |_|_|_|/ | | |/| | | | | | * | | | | Revert "Makes the layout of many of the areas be in aligned columns to immens...Simon Hausmann2009-05-191-8/+21 | | | |_|/ / | | |/| | | | | * | | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5David Boddie2009-05-19982-29740/+31747 | | |\ \ \ \ | | | | |/ / | | | |/| | | | | * | | Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5David Boddie2009-05-19