--- /dev/null
+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
+}
TEMPLATE = subdirs
CONFIG += ordered
-SUBDIRS = src share
+SUBDIRS = src share lib/qtcreator/qtcomponents
OTHER_FILES += dist/copyright_template.txt \
dist/changes-1.1.0 \
+++ /dev/null
-TEMPLATE = subdirs
-SUBDIRS = styleitem
+++ /dev/null
-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
import QtQuick 1.0
import "widgets" as Widgets
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Item {
id: root
+++ /dev/null
-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
import QtQuick 1.0
import "widgets"
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Rectangle {
id: root
**************************************************************************/
import Qt 4.7
-import "../components/custom" as Custom
+import qtcomponents.custom 1.0 as Custom
Custom.Button {
id: button
import QtQuick 1.0
-import "../components/custom" as Custom
+import qtcomponents.custom 1.0 as Custom
Custom.CheckBox{
id:checkbox
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
-import widgets 1.0 as Widgets
+import qtcomponents 1.0 as Components
Item {
id: exampleBrowserRoot
anchors.leftMargin: - 8
anchors.rightMargin: scrollArea.verticalScrollBar.visible ? 0 : -8
- Widgets.LineEdit {
+ LineEdit {
id: lineEdit
placeholderText: !checkBox.checked ? qsTr("Search in Tutorials") : qsTr("Search in Tutorials, Examples and Demos")
focus: true
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Rectangle {
id: root
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Item {
InsetText {
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Rectangle {
id: inner_background
**************************************************************************/
import QtQuick 1.0
-import "../components/custom" as Custom
+import qtcomponents.custom 1.0 as Custom
Custom.TextField {
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Row {
id: tabBar
**************************************************************************/
import QtQuick 1.1
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
Item {
id: root
**************************************************************************/
import QtQuick 1.1
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
HeaderItemView {
header: qsTr("Recently Edited Projects")
**************************************************************************/
import QtQuick 1.0
-import components 1.0 as Components
+import qtcomponents 1.0 as Components
HeaderItemView {
header: qsTr("Recently Used Sessions")
TEMPLATE = subdirs
SUBDIRS = qtcreator/static.pro \
- qtcreator/translations \
- qtcreator/welcomescreen
+ qtcreator/translations
qmljs \
glsl \
qmleditorwidgets \
+ qtcomponents/styleitem \
symbianutils
# Windows: Compile Qt Creator CDB extension if Debugging tools can be detected.
--- /dev/null
+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
+}
#include <QtGui/QPainter>
#include <QtGui/QHBoxLayout>
+#include <QtCore/QCoreApplication>
+#include <QtCore/QDir>
#include <QtCore/QSettings>
#include <QtCore/QDebug>
#include <QtCore/QUrl>
if (!debug)
engine->setOutputWarningsToStandardError(false);
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);
foreach (Utils::IWelcomePage *plugin, plugins) {
plugin->facilitateQml(engine);