<trclass="memdesc:ab7fa730f3bdf512b8269776405ccb47c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Find the input view URL of the given input type. <ahref="#ab7fa730f3bdf512b8269776405ccb47c">More...</a><br/></td></tr>
<trclass="memdesc:abf97995383e6fbcf7d6e32bddcb14445"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Find the input list delegate URL of the given input type. <ahref="#abf97995383e6fbcf7d6e32bddcb14445">More...</a><br/></td></tr>
<trclass="memdesc:a72023fe9a6c9b5863c59c41d7cc080e6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Formats the value using the internally registered <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> for the given type. <ahref="#a72023fe9a6c9b5863c59c41d7cc080e6">More...</a><br/></td></tr>
<trclass="memdesc:ab3fe9d4a7215fa718464daf345eba3de"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new QML file to create views for the given type. <ahref="#ab3fe9d4a7215fa718464daf345eba3de">More...</a><br/></td></tr>
<trclass="memdesc:af931578c95df4a5b6beab3e6cc32d047"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new QML file to create views for the given type. <ahref="#af931578c95df4a5b6beab3e6cc32d047">More...</a><br/></td></tr>
<trclass="memdesc:a7f5a43a7cb23920ea98a9f2974bbc799"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new QML file to create delegates for the given type. <ahref="#a7f5a43a7cb23920ea98a9f2974bbc799">More...</a><br/></td></tr>
<trclass="memdesc:aa5cc35243bebbec797280a07585f4e8b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new QML file to create delegates for the given type. <ahref="#aa5cc35243bebbec797280a07585f4e8b">More...</a><br/></td></tr>
<trclass="memdesc:a118e83c4628b8aba11f797abf0a2b0d6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> to format delegate preview texts for the given type. <ahref="#a118e83c4628b8aba11f797abf0a2b0d6">More...</a><br/></td></tr>
<trclass="memdesc:a0635c495cd9b72523d14c1838b846e0a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a new <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> to format delegate preview texts for the given type. <ahref="#a0635c495cd9b72523d14c1838b846e0a">More...</a><br/></td></tr>
<trclass="memdesc:a6bb8b514f4ef53bd9df718956953056f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for views. <ahref="#a6bb8b514f4ef53bd9df718956953056f">More...</a><br/></td></tr>
<trclass="memdesc:a8813ef301a8e8a03229816c0927e7979"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for views. <ahref="#a8813ef301a8e8a03229816c0927e7979">More...</a><br/></td></tr>
<trclass="memdesc:a02632e6bb3bc52d9ae3335aac482fb50"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for delegates. <ahref="#a02632e6bb3bc52d9ae3335aac482fb50">More...</a><br/></td></tr>
<trclass="memdesc:a7334b8d5008ce851196d7413339166be"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for delegates. <ahref="#a7334b8d5008ce851196d7413339166be">More...</a><br/></td></tr>
<trclass="memdesc:a2c071f8b25e77f1355488040a41cf156"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for formatters. <ahref="#a2c071f8b25e77f1355488040a41cf156">More...</a><br/></td></tr>
<trclass="memdesc:ad30d88e3005eb29f677aaca6096a220c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Adds a type name alias for formatters. <ahref="#ad30d88e3005eb29f677aaca6096a220c">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
int </td><tdclass="memItemRight"valign="bottom"><aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qobject.html#startTimer-1">startTimer</a> (std::chrono::milliseconds time, Qt::TimerType timerType)</td></tr>
<trclass="inherit_header pub_static_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pub_static_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Static Public Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<trclass="inherit_header pro_methods_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('pro_methods_class_q_object')"><imgsrc="closed.png"alt="-"/> Protected Member Functions inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<trclass="inherit_header properties_class_q_object"><tdcolspan="2"onclick="javascript:toggleInherit('properties_class_q_object')"><imgsrc="closed.png"alt="-"/> Properties inherited from <aclass="el"href="target="_blank"https://doc.qt.io/qt-5/class_q_object.html">QObject</a></td></tr>
<divclass="textblock"><p>A factory class to generate input edit views by their type names. </p>
<p>The factory is used by the <aclass="el"href="class_qt_mvvm_1_1_quick_presenter.html"title="The IPresenter implementation for the quick module. ">QuickPresenter</a> to create input views and delegates for various types. This is used to for example create the edits of input dialogs or for the list delegates of a SettingsView.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_quick_presenter.html"title="The IPresenter implementation for the quick module. ">QuickPresenter</a>, <aclass="el"href="class_qt_mvvm_1_1_quick_presenter.html#a8c271a38f049a305d07630f2731ca858"title="The factory to create input views with, as injected property. ">QuickPresenter::inputViewFactory</a>, <aclass="el"href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7"title="A type to show a generic input dialog. ">MessageConfig::TypeInputDialog</a>, <aclass="el"href="namespace_qt_mvvm.html#a16ece10b0a810b7f8ea4a8e2c2dadebd"title="A shortcut to show an input dialog based of a type name. ">QtMvvm::getInput</a>, <aclass="el"href="class_qt_mvvm_1_1_settings_view_model.html"title="A ViewModel for a generic settings dialog based of an XML settings file. ">SettingsViewModel</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00042">42</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<tr><tdclass="paramname">TAliasType</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">TTargetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If an delegate view for the alias type is requested, one of the target type is created instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#abf97995383e6fbcf7d6e32bddcb14445"title="Find the input list delegate URL of the given input type. ">InputViewFactory::getDelegate</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a7f5a43a7cb23920ea98a9f2974bbc799"title="Adds a new QML file to create delegates for the given type. ">InputViewFactory::addSimpleDelegate</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00127">127</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<tr><tdclass="paramname">alias</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">targetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If an delegate view for the alias type is requested, one of the target type is created instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#abf97995383e6fbcf7d6e32bddcb14445"title="Find the input list delegate URL of the given input type. ">InputViewFactory::getDelegate</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a7f5a43a7cb23920ea98a9f2974bbc799"title="Adds a new QML file to create delegates for the given type. ">InputViewFactory::addSimpleDelegate</a></dd></dl>
<p>Adds a new <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> to format delegate preview texts for the given type. </p>
<tr><tdclass="paramname">TType</td><td>The type to add a formatter for </td></tr>
</table>
</dd>
</dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">formatter</td><td>The formatter instance to be added</td></tr>
</table>
</dd>
</dl>
<p>The formatter must be valid and is registered in the factory. The factory takes ownership of the passed formatter. From now on it is used to convert display texts when <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">format()</a> is called.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">InputViewFactory::format</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a2c071f8b25e77f1355488040a41cf156"title="Adds a type name alias for formatters. ">InputViewFactory::addFormatterAlias</a>, <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00115">115</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<p>Adds a new <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> to format delegate preview texts for the given type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The type to add a formatter for </td></tr>
<tr><tdclass="paramname">formatter</td><td>The formatter instance to be added</td></tr>
</table>
</dd>
</dl>
<p>The formatter must be valid and is registered in the factory. The factory takes ownership of the passed formatter. From now on it is used to convert display texts when <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">format()</a> is called.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">InputViewFactory::format</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a2c071f8b25e77f1355488040a41cf156"title="Adds a type name alias for formatters. ">InputViewFactory::addFormatterAlias</a>, <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a></dd></dl>
<tr><tdclass="paramname">TAliasType</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">TTargetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If a formatter for the alias type is requested for the <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">format()</a> method, the one of the target type is used instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">InputViewFactory::format</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a118e83c4628b8aba11f797abf0a2b0d6"title="Adds a new Formatter to format delegate preview texts for the given type. ">InputViewFactory::addFormatter</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00133">133</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<tr><tdclass="paramname">alias</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">targetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If a formatter for the alias type is requested for the <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">format()</a> method, the one of the target type is used instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a72023fe9a6c9b5863c59c41d7cc080e6"title="Formats the value using the internally registered Formatter for the given type. ">InputViewFactory::format</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a118e83c4628b8aba11f797abf0a2b0d6"title="Adds a new Formatter to format delegate preview texts for the given type. ">InputViewFactory::addFormatter</a></dd></dl>
<tr><tdclass="paramname">TAliasType</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">TTargetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If an input view for the alias type is requested, one of the target type is created instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">InputViewFactory::getInputUrl</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab3fe9d4a7215fa718464daf345eba3de"title="Adds a new QML file to create views for the given type. ">InputViewFactory::addSimpleInput</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00121">121</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<tr><tdclass="paramname">alias</td><td>The type to add as a new alias </td></tr>
<tr><tdclass="paramname">targetType</td><td>The type the alias should be translated to</td></tr>
</table>
</dd>
</dl>
<p>If an input view for the alias type is requested, one of the target type is created instead.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">InputViewFactory::getInputUrl</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab3fe9d4a7215fa718464daf345eba3de"title="Adds a new QML file to create views for the given type. ">InputViewFactory::addSimpleInput</a></dd></dl>
<tr><tdclass="paramname">TType</td><td>The type to add a delegate view for </td></tr>
</table>
</dd>
</dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">qmlFileUrl</td><td>The URL of the QML file that contains the component</td></tr>
</table>
</dd>
</dl>
<p>The qmlFileUrl must be a valid URL to a QML file with a displayable quick item that can be used as a delegate for a ListView.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#abf97995383e6fbcf7d6e32bddcb14445"title="Find the input list delegate URL of the given input type. ">InputViewFactory::getDelegate</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a02632e6bb3bc52d9ae3335aac482fb50"title="Adds a type name alias for delegates. ">InputViewFactory::addDelegateAlias</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00109">109</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<p>Adds a new QML file to create delegates for the given type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The type to add a delegate view for </td></tr>
<tr><tdclass="paramname">qmlFileUrl</td><td>The URL of the QML file that contains the component</td></tr>
</table>
</dd>
</dl>
<p>The qmlFileUrl must be a valid URL to a QML file with a displayable quick item that can be used as a delegate for a ListView.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#abf97995383e6fbcf7d6e32bddcb14445"title="Find the input list delegate URL of the given input type. ">InputViewFactory::getDelegate</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a02632e6bb3bc52d9ae3335aac482fb50"title="Adds a type name alias for delegates. ">InputViewFactory::addDelegateAlias</a></dd></dl>
<tr><tdclass="paramname">TType</td><td>The type to add an input view for </td></tr>
</table>
</dd>
</dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">qmlFileUrl</td><td>The URL of the QML file that contains the component</td></tr>
</table>
</dd>
</dl>
<p>The qmlFileUrl must be a valid URL to a QML file with a displayable quick item. The item must have a property named <code>inputValue</code> that is used to read and write the edit data.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">InputViewFactory::getInputUrl</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a6bb8b514f4ef53bd9df718956953056f"title="Adds a type name alias for views. ">InputViewFactory::addInputAlias</a></dd></dl>
<pclass="definition">Definition at line <aclass="el"href="inputviewfactory_8h_source.html#l00103">103</a> of file <aclass="el"href="inputviewfactory_8h_source.html">inputviewfactory.h</a>.</p>
<p>Adds a new QML file to create views for the given type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The type to add an input view for </td></tr>
<tr><tdclass="paramname">qmlFileUrl</td><td>The URL of the QML file that contains the component</td></tr>
</table>
</dd>
</dl>
<p>The qmlFileUrl must be a valid URL to a QML file with a displayable quick item. The item must have a property named <code>inputValue</code> that is used to read and write the edit data.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">InputViewFactory::getInputUrl</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a6bb8b514f4ef53bd9df718956953056f"title="Adds a type name alias for views. ">InputViewFactory::addInputAlias</a></dd></dl>
<p>Formats the value using the internally registered <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> for the given type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The type to choose a formatter for </td></tr>
<tr><tdclass="paramname">formatString</td><td>Some kind of format string, depending on what the formatter wants here </td></tr>
<tr><tdclass="paramname">value</td><td>The actual value, packet as a variant </td></tr>
<tr><tdclass="paramname">viewProperties</td><td>Additional properies set on the delegate </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The formatted value text</dd></dl>
<p>Internally, this method uses the <aclass="el"href="class_qt_mvvm_1_1_formatter.html"title="A class to format the preview text in the delegates. ">Formatter</a> registered for the given type and then returns the result of <aclass="el"href="class_qt_mvvm_1_1_formatter.html#a05b3d40f352bb939321b75fd908ebc5e"title="Is called to format a value to a localized, human readable text. ">Formatter::format</a>, invoked with the remaining parameters.</p>
<p>If no formatter was registered for the given type, this method simply returns <code>formatString.arg(value.toString());</code></p>
<p>Currently, the following special formatters are set by default.</p>
<tdclass="markdownTableBodyNone">int </td><tdclass="markdownTableBodyNone">A translated string with either <code>%1</code>, <code>L1</code> or <code>n</code> as number placeholder. If <code>n</code> is used, "plural-translations" are used </td></tr>
<tdclass="markdownTableBodyNone">list, selection, radiolist </td><tdclass="markdownTableBodyNone">A translated string with <code>%1</code> as placeholder. If the list element is named, that one is used, otherwise the value itself </td></tr>
<tdclass="markdownTableBodyNone"><aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qdatetime.html">QDateTime</a>, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qdate.html">QDate</a>, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qtime.html">QTime</a></td><tdclass="markdownTableBodyNone">Can either be the integer value of one of Qt::DateFormat or a standard date format string (<aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qdatetime.html#toString-1">QDateTime::toString</a>). If neither is the case, the date is formatted using Qt::DefaultLocaleShortDate </td></tr>
<tdclass="markdownTableBodyNone">double </td><tdclass="markdownTableBodyNone">Uses the <aclass="el"href="class_qt_mvvm_1_1_simple_formatter.html"title="A very basic formatter that uses QString::arg with the value on the format string. ">SimpleFormatter</a> with double as template argument </td></tr>
</table>
<p>All other types use the fallback formatting.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_formatter.html#a05b3d40f352bb939321b75fd908ebc5e"title="Is called to format a value to a localized, human readable text. ">Formatter::format</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a118e83c4628b8aba11f797abf0a2b0d6"title="Adds a new Formatter to format delegate preview texts for the given type. ">InputViewFactory::addFormatter</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a2c071f8b25e77f1355488040a41cf156"title="Adds a type name alias for formatters. ">InputViewFactory::addFormatterAlias</a></dd></dl>
<p>Find the input list delegate URL of the given input type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The input type to create a delegate for </td></tr>
<tr><tdclass="paramname">viewProperties</td><td>A map with extra properties to be set on the delegate </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A url to a QML component suitable for editing input of the given type, as a delegate</dd></dl>
<p>Delegates can be used to provide "editabel" list items for ListViews. (For example, the SettingsView makes use of them). Available roles are:</p><ul>
<li>group</li>
<li>key</li>
<li>type</li>
<li>title</li>
<li>tooltip</li>
<li>delegateUrl</li>
<li>inputValue</li>
<li>properties</li>
</ul>
<p>The factory first checks if the given type is registered as alias. If yes, it continues with the aliased type. Then it checks for a url registered as simple delegate exists for the given type and uses that one if present. If no simple delegate is set the default mapping for type to urls is used (See <aclass="el"href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7"title="A type to show a generic input dialog. ">MessageConfig::TypeInputDialog</a> for a full table of supported types). If no url can be found for a type, the MsgDelegate is returned, which will simply show an input of the given type. Thus, for all not explicitly supported delegate types, the <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">getInputUrl()</a> is used to find an edit for the dialog.</p>
<p>The viewProperties are used to setup the created delegate by settings them as properties on the delegate. For every key-value-pair in the map, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qobject.html#setProperty">QObject::setProperty</a> is called on the delegate to set the property.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7"title="A type to show a generic input dialog. ">MessageConfig::TypeInputDialog</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a7f5a43a7cb23920ea98a9f2974bbc799"title="Adds a new QML file to create delegates for the given type. ">InputViewFactory::addSimpleDelegate</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a02632e6bb3bc52d9ae3335aac482fb50"title="Adds a type name alias for delegates. ">InputViewFactory::addDelegateAlias</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab7fa730f3bdf512b8269776405ccb47c"title="Find the input view URL of the given input type. ">InputViewFactory::getInputUrl</a></dd></dl>
<p>Find the input view URL of the given input type. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">type</td><td>The input type to create a view for </td></tr>
<tr><tdclass="paramname">viewProperties</td><td>A map with extra properties to be set on the edit </td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>A url to a QML component suitable for editing input of the given type</dd></dl>
<p>The factory first checks if the given type is registered as alias. If yes, it continues with the aliased type. Then it checks for a url registered as simple view exists for the given type and uses that one if present. If no simple view is set the default mapping for type to urls is used (See <aclass="el"href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7"title="A type to show a generic input dialog. ">MessageConfig::TypeInputDialog</a> for a full table of supported types). If no url can be found for a type, an invalid url is returned.</p>
<p>The viewProperties are used to setup the created view by settings them as properties on the view. For every key-value-pair in the map, <aclass="elRef"target="_blank"doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtcore/qtcore.tags:https://doc.qt.io/qt-5/"href="https://doc.qt.io/qt-5/qobject.html#setProperty">QObject::setProperty</a> is called on the view to set the property.</p>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="class_qt_mvvm_1_1_message_config.html#ae80918dc646fe89d59a1ddfed729d1b7"title="A type to show a generic input dialog. ">MessageConfig::TypeInputDialog</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#ab3fe9d4a7215fa718464daf345eba3de"title="Adds a new QML file to create views for the given type. ">InputViewFactory::addSimpleInput</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#a6bb8b514f4ef53bd9df718956953056f"title="Adds a type name alias for views. ">InputViewFactory::addInputAlias</a>, <aclass="el"href="class_qt_mvvm_1_1_input_view_factory.html#abf97995383e6fbcf7d6e32bddcb14445"title="Find the input list delegate URL of the given input type. ">InputViewFactory::getDelegate</a></dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>