forked from qt-creator/qt-creator
Make Components installable. Fix Shadow Build.
Task-Number: QTCREATORBUG-5672 Done-with: Oswald Buddenhagen Change-Id: I61f8a83205bc338ba12e43b7471eaa957da2b004 Reviewed-on: http://codereview.qt.nokia.com/2451 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
6c8edcf99e
commit
9743b43663
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
57
lib/qtcreator/qtcomponents/qtcomponents.pro
Normal file
57
lib/qtcreator/qtcomponents/qtcomponents.pro
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
include(../../../qtcreator.pri)
|
||||||
|
|
||||||
|
TEMPLATE = app
|
||||||
|
TARGET = phony_target3
|
||||||
|
CONFIG -= qt separate_debug_info gdb_dwarf_index
|
||||||
|
QT =
|
||||||
|
LIBS =
|
||||||
|
macx:CONFIG -= app_bundle
|
||||||
|
|
||||||
|
isEmpty(vcproj) {
|
||||||
|
QMAKE_LINK = @: IGNORE THIS LINE
|
||||||
|
OBJECTS_DIR =
|
||||||
|
win32:CONFIG -= embed_manifest_exe
|
||||||
|
} else {
|
||||||
|
CONFIG += console
|
||||||
|
PHONY_DEPS = .
|
||||||
|
phony_src.input = PHONY_DEPS
|
||||||
|
phony_src.output = phony.c
|
||||||
|
phony_src.variable_out = GENERATED_SOURCES
|
||||||
|
phony_src.commands = echo int main() { return 0; } > phony.c
|
||||||
|
phony_src.name = CREATE phony.c
|
||||||
|
phony_src.CONFIG += combine
|
||||||
|
QMAKE_EXTRA_COMPILERS += phony_src
|
||||||
|
}
|
||||||
|
|
||||||
|
DATA_FILE_PATTERNS = \
|
||||||
|
$$PWD/*.qml \
|
||||||
|
$$PWD/qmldir \
|
||||||
|
$$PWD/images/* \
|
||||||
|
$$PWD/custom/* \
|
||||||
|
$$PWD/custom/behaviors/* \
|
||||||
|
$$PWD/custom/private/*
|
||||||
|
|
||||||
|
!isEmpty(copydata) {
|
||||||
|
|
||||||
|
for(data_file, DATA_FILE_PATTERNS) {
|
||||||
|
files = $$files($$data_file, false)
|
||||||
|
win32:files ~= s|\\\\|/|g
|
||||||
|
for(file, files):!exists($$file/*):FILES += $$file
|
||||||
|
}
|
||||||
|
|
||||||
|
OTHER_FILES += $$FILES
|
||||||
|
copy2build.input = FILES
|
||||||
|
copy2build.output = $$IDE_LIBRARY_PATH/qtcomponents/${QMAKE_FUNC_FILE_IN_stripSrcDir}
|
||||||
|
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
|
||||||
|
win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\"
|
||||||
|
unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
|
||||||
|
copy2build.name = COPY ${QMAKE_FILE_IN}
|
||||||
|
copy2build.CONFIG += no_link
|
||||||
|
QMAKE_EXTRA_COMPILERS += copy2build
|
||||||
|
}
|
||||||
|
|
||||||
|
!macx {
|
||||||
|
qmlfiles.files = $$PWD/*.qml $$PWD/qmldir $$PWD/images $$PWD/custom
|
||||||
|
qmlfiles.path = /lib/qtcreator/qtcomponents
|
||||||
|
INSTALLS += qmlfiles
|
||||||
|
}
|
||||||
@@ -11,7 +11,7 @@ include(doc/doc.pri)
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
|
|
||||||
SUBDIRS = src share
|
SUBDIRS = src share lib/qtcreator/qtcomponents
|
||||||
|
|
||||||
OTHER_FILES += dist/copyright_template.txt \
|
OTHER_FILES += dist/copyright_template.txt \
|
||||||
dist/changes-1.1.0 \
|
dist/changes-1.1.0 \
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
TEMPLATE = subdirs
|
|
||||||
SUBDIRS = styleitem
|
|
||||||
@@ -1,78 +0,0 @@
|
|||||||
TEMPLATE = lib
|
|
||||||
CONFIG += qt plugin
|
|
||||||
QT += declarative
|
|
||||||
QT += script
|
|
||||||
|
|
||||||
TARGET = styleplugin
|
|
||||||
include(../../../../../qtcreator.pri)
|
|
||||||
DESTDIR = $$IDE_DATA_PATH/welcomescreen/components/plugin
|
|
||||||
OBJECTS_DIR = tmp
|
|
||||||
MOC_DIR = tmp
|
|
||||||
|
|
||||||
HEADERS += qtmenu.h \
|
|
||||||
qtmenubar.h \
|
|
||||||
qtmenuitem.h \
|
|
||||||
qrangemodel_p.h \
|
|
||||||
qrangemodel.h \
|
|
||||||
qstyleplugin.h \
|
|
||||||
qdeclarativefolderlistmodel.h \
|
|
||||||
qstyleitem.h \
|
|
||||||
qwheelarea.h
|
|
||||||
|
|
||||||
SOURCES += qtmenu.cpp \
|
|
||||||
qtmenubar.cpp \
|
|
||||||
qtmenuitem.cpp \
|
|
||||||
qrangemodel.cpp \
|
|
||||||
qstyleplugin.cpp \
|
|
||||||
qdeclarativefolderlistmodel.cpp \
|
|
||||||
qstyleitem.cpp \
|
|
||||||
qwheelarea.cpp
|
|
||||||
|
|
||||||
|
|
||||||
OTHER_FILES += \
|
|
||||||
../gallery.qml \
|
|
||||||
../widgets/Tab.qml \
|
|
||||||
../widgets/TabBar.qml \
|
|
||||||
../widgets/TabFrame.qml \
|
|
||||||
../Button.qml \
|
|
||||||
../ButtonRow.qml \
|
|
||||||
../CheckBox.qml \
|
|
||||||
../ChoiceList.qml \
|
|
||||||
../components.pro \
|
|
||||||
../ContextMenu.qml \
|
|
||||||
../Dial.qml \
|
|
||||||
../Frame.qml \
|
|
||||||
../GroupBox.qml \
|
|
||||||
../Menu.qml \
|
|
||||||
../ProgressBar.qml \
|
|
||||||
../RadioButton.qml \
|
|
||||||
../ScrollArea.qml \
|
|
||||||
../ScrollBar.qml \
|
|
||||||
../Slider.qml \
|
|
||||||
../SpinBox.qml \
|
|
||||||
../Switch.qml \
|
|
||||||
../Tab.qml \
|
|
||||||
../TableView.qml \
|
|
||||||
../TabBar.qml \
|
|
||||||
../TabFrame.qml \
|
|
||||||
../TextArea.qml \
|
|
||||||
../TextField.qml \
|
|
||||||
../TextScrollArea.qml \
|
|
||||||
../ToolBar.qml \
|
|
||||||
../ToolButton.qml \
|
|
||||||
../custom/BasicButton.qml \
|
|
||||||
../custom/BusyIndicator.qml \
|
|
||||||
../custom/Button.qml \
|
|
||||||
../custom/ButtonColumn.qml \
|
|
||||||
../custom/ButtonGroup.js \
|
|
||||||
../custom/ButtonRow.qml \
|
|
||||||
../custom/CheckBox.qml \
|
|
||||||
../custom/ChoiceList.qml \
|
|
||||||
../custom/ProgressBar.qml \
|
|
||||||
../custom/Slider.qml \
|
|
||||||
../custom/SpinBox.qml \
|
|
||||||
../custom/TextField.qml \
|
|
||||||
../../examples/Browser.qml \
|
|
||||||
../../examples/Panel.qml \
|
|
||||||
../../examples/ModelView.qml \
|
|
||||||
../../examples/Gallery.qml
|
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "widgets" as Widgets
|
import "widgets" as Widgets
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
TEMPLATE = subdirs
|
|
||||||
SUBDIRS = components/styleitem
|
|
||||||
|
|
||||||
QML_IMPORT_PATH += $$OUT_PWD
|
|
||||||
|
|
||||||
OTHER_FILES = develop.qml \
|
|
||||||
gettingstarted.qml \
|
|
||||||
newssupport.qml \
|
|
||||||
welcomescreen.qml \
|
|
||||||
widgets/Button.qml \
|
|
||||||
widgets/CheckBox.qml \
|
|
||||||
widgets/Feedback.qml \
|
|
||||||
widgets/RatingBar.qml \
|
|
||||||
widgets/ExampleBrowser.qml \
|
|
||||||
widgets/LineEdit.qml \
|
|
||||||
widgets/ExampleDelegate.qml \
|
|
||||||
widgets/LinksBar.qml \
|
|
||||||
widgets/HeaderItemView.qml \
|
|
||||||
widgets/RecentSessions.qml \
|
|
||||||
widgets/RecentProjects.qml \
|
|
||||||
widgets/FeaturedAndNewsListing.qml \
|
|
||||||
widgets/NewsListing.qml \
|
|
||||||
widgets/TabWidget.qml \
|
|
||||||
widgets/TagBrowser.qml \
|
|
||||||
examples_fallback.xml \
|
|
||||||
qtcreator_tutorials.xml
|
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "widgets"
|
import "widgets"
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import Qt 4.7
|
import Qt 4.7
|
||||||
import "../components/custom" as Custom
|
import qtcomponents.custom 1.0 as Custom
|
||||||
|
|
||||||
Custom.Button {
|
Custom.Button {
|
||||||
id: button
|
id: button
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "../components/custom" as Custom
|
import qtcomponents.custom 1.0 as Custom
|
||||||
|
|
||||||
Custom.CheckBox{
|
Custom.CheckBox{
|
||||||
id:checkbox
|
id:checkbox
|
||||||
|
|||||||
@@ -31,8 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
import widgets 1.0 as Widgets
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: exampleBrowserRoot
|
id: exampleBrowserRoot
|
||||||
@@ -57,7 +56,7 @@ Item {
|
|||||||
anchors.leftMargin: - 8
|
anchors.leftMargin: - 8
|
||||||
anchors.rightMargin: scrollArea.verticalScrollBar.visible ? 0 : -8
|
anchors.rightMargin: scrollArea.verticalScrollBar.visible ? 0 : -8
|
||||||
|
|
||||||
Widgets.LineEdit {
|
LineEdit {
|
||||||
id: lineEdit
|
id: lineEdit
|
||||||
placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
|
placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
|
||||||
focus: true
|
focus: true
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
InsetText {
|
InsetText {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: inner_background
|
id: inner_background
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "../components/custom" as Custom
|
import qtcomponents.custom 1.0 as Custom
|
||||||
|
|
||||||
|
|
||||||
Custom.TextField {
|
Custom.TextField {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: tabBar
|
id: tabBar
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
HeaderItemView {
|
HeaderItemView {
|
||||||
header: qsTr("Recently Edited Projects")
|
header: qsTr("Recently Edited Projects")
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import components 1.0 as Components
|
import qtcomponents 1.0 as Components
|
||||||
|
|
||||||
HeaderItemView {
|
HeaderItemView {
|
||||||
header: qsTr("Recently Used Sessions")
|
header: qsTr("Recently Used Sessions")
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = qtcreator/static.pro \
|
SUBDIRS = qtcreator/static.pro \
|
||||||
qtcreator/translations \
|
qtcreator/translations
|
||||||
qtcreator/welcomescreen
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ SUBDIRS = \
|
|||||||
qmljs \
|
qmljs \
|
||||||
glsl \
|
glsl \
|
||||||
qmleditorwidgets \
|
qmleditorwidgets \
|
||||||
|
qtcomponents/styleitem \
|
||||||
symbianutils
|
symbianutils
|
||||||
|
|
||||||
# Windows: Compile Qt Creator CDB extension if Debugging tools can be detected.
|
# Windows: Compile Qt Creator CDB extension if Debugging tools can be detected.
|
||||||
|
|||||||
34
src/libs/qtcomponents/styleitem/styleitem.pro
Normal file
34
src/libs/qtcomponents/styleitem/styleitem.pro
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
TEMPLATE = lib
|
||||||
|
CONFIG += qt plugin
|
||||||
|
QT += declarative
|
||||||
|
QT += script
|
||||||
|
|
||||||
|
TARGET = styleplugin
|
||||||
|
include(../../../../qtcreator.pri)
|
||||||
|
DESTDIR = $$IDE_LIBRARY_PATH/qtcomponents/plugin
|
||||||
|
OBJECTS_DIR = tmp
|
||||||
|
MOC_DIR = tmp
|
||||||
|
|
||||||
|
HEADERS += qtmenu.h \
|
||||||
|
qtmenubar.h \
|
||||||
|
qtmenuitem.h \
|
||||||
|
qrangemodel_p.h \
|
||||||
|
qrangemodel.h \
|
||||||
|
qstyleplugin.h \
|
||||||
|
qdeclarativefolderlistmodel.h \
|
||||||
|
qstyleitem.h \
|
||||||
|
qwheelarea.h
|
||||||
|
|
||||||
|
SOURCES += qtmenu.cpp \
|
||||||
|
qtmenubar.cpp \
|
||||||
|
qtmenuitem.cpp \
|
||||||
|
qrangemodel.cpp \
|
||||||
|
qstyleplugin.cpp \
|
||||||
|
qdeclarativefolderlistmodel.cpp \
|
||||||
|
qstyleitem.cpp \
|
||||||
|
qwheelarea.cpp
|
||||||
|
|
||||||
|
!macx {
|
||||||
|
target.path = /lib/qtcreator/qtcomponents/plugin
|
||||||
|
INSTALLS += target
|
||||||
|
}
|
||||||
@@ -53,6 +53,8 @@
|
|||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
#include <QtGui/QHBoxLayout>
|
#include <QtGui/QHBoxLayout>
|
||||||
|
|
||||||
|
#include <QtCore/QCoreApplication>
|
||||||
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
#include <QtCore/QUrl>
|
#include <QtCore/QUrl>
|
||||||
@@ -224,7 +226,13 @@ void WelcomeMode::initPlugins()
|
|||||||
if (!debug)
|
if (!debug)
|
||||||
engine->setOutputWarningsToStandardError(false);
|
engine->setOutputWarningsToStandardError(false);
|
||||||
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
||||||
engine->addImportPath(Core::ICore::instance()->resourcePath() + "/welcomescreen");
|
QString pluginPath = QCoreApplication::applicationDirPath();
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
pluginPath += QLatin1String("/../PlugIns");
|
||||||
|
#else
|
||||||
|
pluginPath += QLatin1String("/../" IDE_LIBRARY_BASENAME "/qtcreator");
|
||||||
|
#endif
|
||||||
|
engine->addImportPath(QDir::cleanPath(pluginPath));
|
||||||
facilitateQml(engine);
|
facilitateQml(engine);
|
||||||
foreach (Utils::IWelcomePage *plugin, plugins) {
|
foreach (Utils::IWelcomePage *plugin, plugins) {
|
||||||
plugin->facilitateQml(engine);
|
plugin->facilitateQml(engine);
|
||||||
|
|||||||
Reference in New Issue
Block a user