diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-05-24 11:39:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-30 01:54:45 +0200 |
commit | d725c3ee239bb6e2106b1095e2edd2d900481ba3 (patch) | |
tree | 1a1ee832fc5d8b4ab869c62cf5189c6d8cd58f5b /examples/mainwindows/macmainwindow/main.cpp | |
parent | 9ea919915dcb859400504920e6cedde378c8c9bf (diff) |
Remove the MacMainWindow example.
setUnifiedTitleAndToolBarOnMac will not be supported
on Qt 5, which removes the point of having this example.
The replacement for setUnifiedTitleAndToolBarOnMac
will be a NSToolBar wrapper in the MacExtras module,
and this example will probably re-appear in some form
there.
Change-Id: I46d5e70a7c45625d9334911bb48059e86f05282d
Reviewed-by: Christoph Schleifenbaum <christoph.schleifenbaum@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'examples/mainwindows/macmainwindow/main.cpp')
-rw-r--r-- | examples/mainwindows/macmainwindow/main.cpp | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/examples/mainwindows/macmainwindow/main.cpp b/examples/mainwindows/macmainwindow/main.cpp deleted file mode 100644 index 15950188d8..0000000000 --- a/examples/mainwindows/macmainwindow/main.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the demonstration applications of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** This file may be used 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. Please review the following information to ensure the GNU Lesser -** General Public License version 2.1 requirements will be met: -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include <QtWidgets> -#include "macmainwindow.h" - -#ifdef Q_WS_MAC - -int main(int argc, char **argv) -{ - QApplication app(argc, argv); - MacMainWindow mainWindow; - mainWindow.show(); - return app.exec(); -} - -#else -int main(int argc, char **argv) -{ - QApplication app(argc, argv); - QLabel label; - label.resize(300, 200); - label.setText(" This demo requires Mac OS X."); - label.show(); - return app.exec(); -} - -#endif |