forked from qt-creator/qt-creator
WelcomePage: turning widgets into a proper plugin
Change-Id: Ifffaa8f848777f6961b49dff048672b194570fff Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import "widgets"
|
import widgets 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rectangle1
|
id: rectangle1
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "widgets"
|
import widgets 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rectangle1
|
id: rectangle1
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.1
|
import QtQuick 1.1
|
||||||
import "widgets"
|
import widgets 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: gettingStartedRoot
|
id: gettingStartedRoot
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "widgets"
|
import widgets 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: rectangle1
|
id: rectangle1
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
import QtQuick 1.0
|
import QtQuick 1.0
|
||||||
import "widgets"
|
import widgets 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 920
|
width: 920
|
||||||
|
@@ -15,6 +15,10 @@ Project {
|
|||||||
ImageFiles {
|
ImageFiles {
|
||||||
directory: "."
|
directory: "."
|
||||||
}
|
}
|
||||||
|
importPaths: {
|
||||||
|
directory: "."
|
||||||
|
}
|
||||||
|
|
||||||
/* List of plugin directories passed to QML runtime */
|
/* List of plugin directories passed to QML runtime */
|
||||||
// importPaths: [ "../exampleplugin" ]
|
// importPaths: [ "../exampleplugin" ]
|
||||||
}
|
}
|
||||||
|
19
share/qtcreator/welcomescreen/widgets/qmldir
Normal file
19
share/qtcreator/welcomescreen/widgets/qmldir
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
CustomColors 1.0 CustomColors.qml
|
||||||
|
GettingStartedItem 1.0 GettingStartedItem.qml
|
||||||
|
ProjectItem 1.0 ProjectItem.qml
|
||||||
|
CustomFonts 1.0 CustomFonts.qml
|
||||||
|
LinkedText 1.0 LinkedText.qml
|
||||||
|
RecentProjects 1.0 RecentProjects.qml
|
||||||
|
CustomizedGridView 1.0 CustomizedGridView.qml
|
||||||
|
LinksBar 1.0 LinksBar.qml
|
||||||
|
SearchBar 1.0 SearchBar.qml
|
||||||
|
CustomTab 1.0 CustomTab.qml
|
||||||
|
Logo 1.0 Logo.qml
|
||||||
|
SessionItem 1.0 SessionItem.qml
|
||||||
|
Delegate 1.0 Delegate.qml
|
||||||
|
PageCaption 1.0 PageCaption.qml
|
||||||
|
Sessions 1.0 Sessions.qml
|
||||||
|
Feedback 1.0 Feedback.qml
|
||||||
|
PageLoader 1.0 PageLoader.qml
|
||||||
|
ToolTip 1.0 ToolTip.qml
|
||||||
|
|
@@ -234,6 +234,9 @@ void WelcomeMode::initPlugins()
|
|||||||
|
|
||||||
|
|
||||||
QDeclarativeEngine *engine = m_welcomePage->engine();
|
QDeclarativeEngine *engine = m_welcomePage->engine();
|
||||||
|
QStringList importPathList = engine->importPathList();
|
||||||
|
importPathList << Core::ICore::resourcePath() + QLatin1String("/welcomescreen");
|
||||||
|
engine->setImportPathList(importPathList);
|
||||||
if (!debug)
|
if (!debug)
|
||||||
engine->setOutputWarningsToStandardError(false);
|
engine->setOutputWarningsToStandardError(false);
|
||||||
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
engine->setNetworkAccessManagerFactory(new NetworkAccessManagerFactory);
|
||||||
|
Reference in New Issue
Block a user