QmlDesigner: updating metainfo for Controls

Change-Id: Ia79583e080ced936d98517ce553294d3040f8ceb
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Thomas Hartmann
2013-04-08 13:10:21 +02:00
parent ff643ef5c6
commit 57ab0b8c65
8 changed files with 69 additions and 63 deletions

View File

@@ -35,13 +35,6 @@ GroupBox {
caption: "Combo Box" caption: "Combo Box"
layout: VerticalLayout { layout: VerticalLayout {
ColorGroupBox {
text: qsTr("Text")
toolTip: qsTr("The text shown on the combobox")
finished: finishedNotify
backendColor: backendValues.textColor
}
QWidget { QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {

View File

@@ -1,94 +1,107 @@
MetaInfo { MetaInfo {
Type { Type {
name: "QtDesktop.Button" name: "QtQuick.Controls.Button"
icon: ":/componentsplugin/images/button16.png" icon: ":/componentsplugin/images/button16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Button" name: "Button"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/button.png" libraryIcon: ":/componentsplugin/images/button.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "text"; type: "QString"; value: "Button"; } Property { name: "text"; type: "QString"; value: "Button"; }
} }
} }
Type { Type {
name: "QtDesktop.CheckBox" name: "QtQuick.Controls.SpinBox"
icon: ":/componentsplugin/images/window16.png"
ItemLibraryEntry {
name: "SpinBox"
category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/window.png"
version: "1.0"
requiredImport: "QtQuick.Controls"
}
}
Type {
name: "QtQuick.Controls.CheckBox"
icon: ":/componentsplugin/images/checkbox16.png" icon: ":/componentsplugin/images/checkbox16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Check Box" name: "Check Box"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/checkbox.png" libraryIcon: ":/componentsplugin/images/checkbox.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "text"; type: "QString"; value: "Check Box"; } Property { name: "text"; type: "QString"; value: "Check Box"; }
} }
} }
Type { Type {
name: "QtDesktop.RadioButton" name: "QtQuick.Controls.RadioButton"
icon: ":/componentsplugin/images/radiobutton16.png" icon: ":/componentsplugin/images/radiobutton16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Radio Button" name: "Radio Button"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/radiobutton.png" libraryIcon: ":/componentsplugin/images/radiobutton.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "text"; type: "QString"; value: "Radio Button"; } Property { name: "text"; type: "QString"; value: "Radio Button"; }
} }
} }
Type { Type {
name: "QtDesktop.ComboBox" name: "QtQuick.Controls.ComboBox"
icon: ":/componentsplugin/images/combobox16.png" icon: ":/componentsplugin/images/combobox16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Combo Box" name: "Combo Box"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/combobox.png" libraryIcon: ":/componentsplugin/images/combobox.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
} }
} }
Type { Type {
name: "QtDesktop.ButtonRow" name: "QtQuick.Controls.ButtonRow"
icon: ":/componentsplugin/images/buttonrow16.png" icon: ":/componentsplugin/images/buttonrow16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Button Row" name: "Button Row"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/buttonrow.png" libraryIcon: ":/componentsplugin/images/buttonrow.png"
version: "1.0" version: "1.0"
} }
} }
Type { Type {
name: "QtDesktop.ButtonColumn" name: "QtQuick.Controls.ButtonColumn"
icon: ":/componentsplugin/images/buttoncolumn16.png" icon: ":/componentsplugin/images/buttoncolumn16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Button Column" name: "Button Column"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/buttoncolumn.png" libraryIcon: ":/componentsplugin/images/buttoncolumn.png"
version: "1.0" version: "1.0"
} }
} }
Type { Type {
name: "QtDesktop.Label" name: "QtQuick.Controls.Label"
icon: ":/componentsplugin/images/label16.png" icon: ":/componentsplugin/images/label16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Label" name: "Label"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/label.png" libraryIcon: ":/componentsplugin/images/label.png"
version: "1.0" version: "1.0"
@@ -97,12 +110,12 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.TextField" name: "QtQuick.Controls.TextField"
icon: ":/componentsplugin/images/textfield16.png" icon: ":/componentsplugin/images/textfield16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Text Field" name: "Text Field"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/textfield.png" libraryIcon: ":/componentsplugin/images/textfield.png"
version: "1.0" version: "1.0"
@@ -111,43 +124,43 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.TextArea" name: "QtQuick.Controls.TextArea"
icon: ":/componentsplugin/images/textarea16.png" icon: ":/componentsplugin/images/textarea16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Text Area" name: "Text Area"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/textarea.png" libraryIcon: ":/componentsplugin/images/textarea.png"
version: "1.0" version: "1.0"
} }
} }
Type { Type {
name: "QtDesktop.ProgressBar" name: "QtQuick.Controls.ProgressBar"
icon: ":/componentsplugin/images/progressbar16.png" icon: ":/componentsplugin/images/progressbar16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Progress Bar" name: "Progress Bar"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/progressbar.png" libraryIcon: ":/componentsplugin/images/progressbar.png"
version: "1.0" version: "1.0"
} }
} }
Type { Type {
name: "QtDesktop.Slider" name: "QtQuick.Controls.Slider"
icon: ":/componentsplugin/images/sliderh16.png" icon: ":/componentsplugin/images/sliderh16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Slider (Horizontal)" name: "Slider (Horizontal)"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/sliderh.png" libraryIcon: ":/componentsplugin/images/sliderh.png"
version: "1.0" version: "1.0"
} }
ItemLibraryEntry { ItemLibraryEntry {
name: "Slider (Vertical)" name: "Slider (Vertical)"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/sliderh.png" libraryIcon: ":/componentsplugin/images/sliderh.png"
version: "1.0" version: "1.0"
Property { name: "orientation"; type: "int"; value: "0"; } Property { name: "orientation"; type: "int"; value: "0"; }
@@ -155,19 +168,19 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.ScrollBar" name: "QtQuick.Controls.ScrollBar"
icon: ":/componentsplugin/images/scrollbar16.png" icon: ":/componentsplugin/images/scrollbar16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Scroll Bar (Horizontal)" name: "Scroll Bar (Horizontal)"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/scrollbarh.png" libraryIcon: ":/componentsplugin/images/scrollbarh.png"
version: "1.0" version: "1.0"
} }
ItemLibraryEntry { ItemLibraryEntry {
name: "Scroll Bar (Vertical)" name: "Scroll Bar (Vertical)"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/componentsplugin/images/scrollbarv.png" libraryIcon: ":/componentsplugin/images/scrollbarv.png"
version: "1.0" version: "1.0"
Property { name: "orientation"; type: "int"; value: "0"; } Property { name: "orientation"; type: "int"; value: "0"; }
@@ -175,15 +188,15 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.ScrollArea" name: "QtQuick.Controls.ScrollArea"
icon: ":/desktopplugin//images/window16.png" icon: ":/componentsplugin/images/window16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Scroll Area" name: "Scroll Area"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/desktopplugin/images/window.png" libraryIcon: ":/componentsplugin/images/window.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "width"; type: "int"; value: 360; } Property { name: "width"; type: "int"; value: 360; }
Property { name: "height"; type: "int"; value: 300; } Property { name: "height"; type: "int"; value: 300; }
@@ -191,15 +204,15 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.GroupBox" name: "QtQuick.Controls.GroupBox"
icon: ":/desktopplugin//images/window16.png" icon: ":/componentsplugin/images/window16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Group Box" name: "Group Box"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/desktopplugin/images/window.png" libraryIcon: ":/componentsplugin/images/window.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "width"; type: "int"; value: 360; } Property { name: "width"; type: "int"; value: 360; }
Property { name: "height"; type: "int"; value: 300; } Property { name: "height"; type: "int"; value: 300; }
@@ -207,15 +220,15 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.Frame" name: "QtQuick.Controls.Frame"
icon: ":/desktopplugin//images/window16.png" icon: ":/desktopplugin//images/window16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Frame" name: "Frame"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/desktopplugin/images/window.png" libraryIcon: ":/desktopplugin/images/window.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "width"; type: "int"; value: 360; } Property { name: "width"; type: "int"; value: 360; }
Property { name: "height"; type: "int"; value: 300; } Property { name: "height"; type: "int"; value: 300; }
@@ -223,15 +236,15 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.ToolBar" name: "QtQuick.Controls.ToolBar"
icon: ":/desktopplugin/images/toolbar16.png" icon: ":/desktopplugin/images/toolbar16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Tool Bar" name: "Tool Bar"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
libraryIcon: ":/desktopplugin/images/toolbar.png" libraryIcon: ":/desktopplugin/images/toolbar.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "width"; type: "int"; value: 360; } Property { name: "width"; type: "int"; value: 360; }
Property { name: "height"; type: "int"; value: 50; } Property { name: "height"; type: "int"; value: 50; }
@@ -239,15 +252,15 @@ MetaInfo {
} }
Type { Type {
name: "QtDesktop.Dial" name: "QtQuick.Controls.Dial"
//icon: ":/desktopplugin/images/progressbar16.png" //icon: ":/desktopplugin/images/progressbar16.png"
ItemLibraryEntry { ItemLibraryEntry {
name: "Dial" name: "Dial"
category: "Qt Quick - Components" category: "Qt Quick - Controls"
//libraryIcon: ":/desktopplugin/images/progressbar.png" //libraryIcon: ":/desktopplugin/images/progressbar.png"
version: "1.0" version: "1.0"
requiredImport: "QtDesktop" requiredImport: "QtQuick.Controls"
Property { name: "width"; type: "int"; value: 100; } Property { name: "width"; type: "int"; value: 100; }
Property { name: "height"; type: "int"; value: 100; } Property { name: "height"; type: "int"; value: 100; }

View File

@@ -36,12 +36,12 @@
<file>images/window.png</file> <file>images/window.png</file>
<file>images/window16.png</file> <file>images/window16.png</file>
</qresource> </qresource>
<qresource prefix="/propertyeditor"> <qresource prefix="/propertyeditor/QtQuick">
<file>QtDesktop/ButtonSpecifics.qml</file> <file>Controls/ButtonSpecifics.qml</file>
<file>QtDesktop/TextFieldSpecifics.qml</file> <file>Controls/TextFieldSpecifics.qml</file>
<file>QtDesktop/TextAreaSpecifics.qml</file> <file>Controls/TextAreaSpecifics.qml</file>
<file>QtDesktop/ComboBoxSpecifics.qml</file> <file>Controls/ComboBoxSpecifics.qml</file>
<file>QtDesktop/CheckBoxSpecifics.qml</file> <file>Controls/CheckBoxSpecifics.qml</file>
<file>QtDesktop/RadioButtonSpecifics.qml</file> <file>Controls/RadioButtonSpecifics.qml</file>
</qresource> </qresource>
</RCC> </RCC>