Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Add qmake plugin. #566
Merged
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a1830dc
Add qmake plugin.
kyrofa c462ec6
Add qt4/qt5 demos to demos_tests.
kyrofa 4b02af3
Fix demo tests.
kyrofa 5ec5c47
Merge branch 'master' into feature/1574774/qmake_plugin
kyrofa e2bcb37
Fix list-plugins integration test.
kyrofa 7fea1bc
Merge remote-tracking branch 'origin/master' into feature/1574774/qma…
kyrofa 99b69f0
Update debian copyright to cover Qt examples.
kyrofa 8bea843
Merge branch 'master' into feature/1574774/qmake_plugin
kyrofa edb79b3
Qmake plugin: support list of project files.
kyrofa e90bb94
Add support for qmake's CPATH and INCLUDE_PATH.
kyrofa 200dc72
Merge branch 'master' into feature/1574774/qmake_plugin
kyrofa b3bf274
Make get_{include,library}_paths part of the public API.
kyrofa 6016e8f
Move libs/includes to qmake plugin.
kyrofa 40c1477
Raise if format_path_variable is handed empty paths.
kyrofa
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,4 @@ | ||
| +[Desktop Entry] | ||
| +Name=Text Editor Snap | ||
| +Exec=text-editor | ||
| +Type=Application |
| @@ -0,0 +1,22 @@ | ||
| +name: text-editor | ||
| +version: 1.0 | ||
| +summary: Qt Application Example | ||
| +description: A simple text editor | ||
| +confinement: strict | ||
| + | ||
| +apps: | ||
| + text-editor: | ||
| + command: qt4-launch application | ||
| + plugs: | ||
| + - unity7 | ||
| + - home | ||
| + | ||
| +parts: | ||
| + application: | ||
| + plugin: qmake | ||
| + qt-version: qt4 | ||
| + source: src/ | ||
| + stage-packages: | ||
| + # Here for the plugins-- they're not linked in automatically. | ||
| + - libqtgui4 | ||
| + after: [qt4conf] # A wiki part |
| @@ -0,0 +1,8 @@ | ||
| +HEADERS = mainwindow.h | ||
| +SOURCES = main.cpp \ | ||
| + mainwindow.cpp | ||
| +RESOURCES = application.qrc | ||
| + | ||
| +# install | ||
| +target.path = /bin | ||
| +INSTALLS += target |
| @@ -0,0 +1,10 @@ | ||
| +<!DOCTYPE RCC><RCC version="1.0"> | ||
| +<qresource> | ||
| + <file>images/copy.png</file> | ||
| + <file>images/cut.png</file> | ||
| + <file>images/new.png</file> | ||
| + <file>images/open.png</file> | ||
| + <file>images/paste.png</file> | ||
| + <file>images/save.png</file> | ||
| +</qresource> | ||
| +</RCC> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
| @@ -0,0 +1,59 @@ | ||
| +/**************************************************************************** | ||
| +** | ||
| +** Copyright (C) 2015 The Qt Company Ltd. | ||
|
|
||
| +** Contact: http://www.qt.io/licensing/ | ||
| +** | ||
| +** This file is part of the examples 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 The Qt Company Ltd 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 <QApplication> | ||
| + | ||
| +#include "mainwindow.h" | ||
| + | ||
| +int main(int argc, char *argv[]) | ||
| +{ | ||
| + Q_INIT_RESOURCE(application); | ||
| + | ||
| + QApplication app(argc, argv); | ||
| + app.setOrganizationName("Trolltech"); | ||
| + app.setApplicationName("Application Example"); | ||
| + MainWindow mainWin; | ||
| +#if defined(Q_OS_SYMBIAN) | ||
| + mainWin.showMaximized(); | ||
| +#else | ||
| + mainWin.show(); | ||
| +#endif | ||
| + return app.exec(); | ||
| +} | ||
Oops, something went wrong.
This will need an update in debian/copyright