Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

149 lines
125 KiB

<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>QtMvvm: settingsentry.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0" style="display: inline;">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QtMvvm
&#160;<span id="projectnumber">1.1.0</span>
</div>
<div id="projectbrief">A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel</div>
</td>
</tr>
</tbody>
</table>
<a style="float: right;" target="_blank" href="https://github.com/Skycoder42/QtMvvm">
<img style="padding: 10px;" src="GitHub_Logo.png"/>
</a>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_8373e943c4cd41f1987d0cef0f366888.html">mvvmcore</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">settingsentry.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#ifndef QTMVVM_SETTINGSENTRY_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#define QTMVVM_SETTINGSENTRY_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#include &lt;QtCore/qlist.h&gt;</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="preprocessor">#include &lt;QtCore/qregularexpression.h&gt;</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="preprocessor">#include &lt;QtCore/qhash.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#include &lt;QtCore/qsharedpointer.h&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#include &quot;QtMvvmCore/qtmvvmcore_global.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &quot;QtMvvmCore/isettingsaccessor.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_qt_mvvm.html">QtMvvm</a> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;{</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; Q_DISABLE_COPY(<a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a>)</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a472f6f0e30294ed960a7504384aa51b6">isSet</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#aadcf907bad726d60a474008d58344da4">key</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; T <span class="keyword">get</span>() <span class="keyword">const</span>;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keywordtype">void</span> <span class="keyword">set</span>(<span class="keyword">const</span> T &amp;value);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a7d79faf59f10763f0a8fa3ea854f985b">reset</a>();</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_entry.html#ac84435eb0308f12f4159001c6b437fa1">operator=</a>(<span class="keyword">const</span> T &amp;value);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keyword">operator</span> T() <span class="keyword">const</span>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">addChangeCallback</a>(<span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>(T)&gt; &amp;callback);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">addChangeCallback</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *scope, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>(T)&gt; &amp;callback);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">void</span> setup(<a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#aadcf907bad726d60a474008d58344da4">key</a>, <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *accessor, <a class="codeRef" 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/qvariant.html">QVariant</a> defaultValue = {});</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> _key;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *_accessor = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <a class="codeRef" 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/qvariant.html">QVariant</a> _default;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;};</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="keyword">template</span> &lt;&gt;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a>&lt;void&gt;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;{</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; Q_DISABLE_COPY(<a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a>)</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> setup(<span class="keyword">const</span> <a class="codeRef" 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/qstring.html">QString</a> &amp;, <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *, <span class="keyword">const</span> <a class="codeRef" 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/qvariant.html">QVariant</a> &amp; = {}) {}</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html"> 71</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode</a></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;{</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; Q_DISABLE_COPY(<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode</a>)</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html"> 77</a></span>&#160; <span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; Q_DISABLE_COPY(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a>)</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a6117e362972472a9142ee94ed1c3fa94">Deferred</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a> &amp;&amp;other) noexcept = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#afb2b1fb8e0f2007c99f6aa39db976e38">operator=</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a> &amp;&amp;other) noexcept = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">inline</span> ~<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a>() { <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a2e3c13d3ecaff8ec25b490e297628715">commit</a>(); }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a0cc5de41314fddcbdeb4fd92c0f74281"> 89</a></span>&#160; <span class="keyword">inline</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a0cc5de41314fddcbdeb4fd92c0f74281">element</a>() { <span class="keywordflow">return</span> _element; }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a9e6a55dac7183ae6189280586f43d4bf"> 92</a></span>&#160; <span class="keyword">inline</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a9e6a55dac7183ae6189280586f43d4bf">operator*</a>() { <span class="keywordflow">return</span> _element; }</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#af499dc42d5fd90acb2901e8db23f0c60"> 94</a></span>&#160; <span class="keyword">inline</span> TType *<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#af499dc42d5fd90acb2901e8db23f0c60">operator-&gt;</a>() { <span class="keywordflow">return</span> &amp;_element; }</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a2e3c13d3ecaff8ec25b490e297628715"> 97</a></span>&#160; <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a2e3c13d3ecaff8ec25b490e297628715">commit</a>() { <span class="keywordflow">if</span>(!_commited) { _commited = <span class="keyword">true</span>; _node-&gt;commit(_index);} }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode</a>&lt;TType&gt;;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a> *_node;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; TType &amp;_element;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordtype">bool</span> _commited = <span class="keyword">false</span>;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">int</span> _index;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a6117e362972472a9142ee94ed1c3fa94">Deferred</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a> *node, TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a0cc5de41314fddcbdeb4fd92c0f74281">element</a>, <span class="keywordtype">int</span> index) :</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; _node{node},</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; _element{<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a0cc5de41314fddcbdeb4fd92c0f74281">element</a>},</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; _index{index}</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; {}</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; };</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html"> 116</a></span>&#160; <span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base</a></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; {</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">using</span> iterator_category = std::random_access_iterator_tag;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">using</span> difference_type = int;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">using</span> value_type = T;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">using</span> pointer = value_type*;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">using</span> reference = value_type&amp;;</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a3a20b13a24c5969646a19046bab67450">iterator_base</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a3a20b13a24c5969646a19046bab67450">iterator_base</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;other) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a77505ea249d87ac103d7c0030c6e7e59">operator=</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;other) = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a3a20b13a24c5969646a19046bab67450">iterator_base</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;&amp;other) noexcept = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a77505ea249d87ac103d7c0030c6e7e59">operator=</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;&amp;other) noexcept = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a334f8b89ecc93d29241f1f67efdf54e2"> 142</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a334f8b89ecc93d29241f1f67efdf54e2">operator++</a>() { ++_index; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a84f02e223d6b5bac1c1c4509f6427490"> 144</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a84f02e223d6b5bac1c1c4509f6427490">operator++</a>(<span class="keywordtype">int</span>) { <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a>{_node, _index++}; }</div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#aee60e0f19d7ce1d4333e027f2866938f"> 146</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#aee60e0f19d7ce1d4333e027f2866938f">operator--</a>() { --_index; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ad1b7286718420ed60727731576c1cf64"> 148</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ad1b7286718420ed60727731576c1cf64">operator--</a>(<span class="keywordtype">int</span>) { <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a>{_node, _index--}; }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#afd5a0fdf5e4e7ddab7656b2a6cbccf74"> 151</a></span>&#160; <span class="keyword">inline</span> reference <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#afd5a0fdf5e4e7ddab7656b2a6cbccf74">operator*</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _node-&gt;at(_index); }</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1a0cae5724afc6f093c6d8d3282c0f15"> 153</a></span>&#160; <span class="keyword">inline</span> pointer <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1a0cae5724afc6f093c6d8d3282c0f15">operator-&gt;</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &amp;_node-&gt;at(_index); }</div><div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a358012f0dfd1f26fc250cf739255e246"> 155</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a358012f0dfd1f26fc250cf739255e246">swap</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) noexcept { std::swap(lhs._node, rhs._node); std::swap(lhs._index, rhs._index); }</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a2ee4a1d95606f922395865e6100ce3eb"> 158</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a2ee4a1d95606f922395865e6100ce3eb">operator==</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index == rhs._index; }</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ac04888f611bba5cc162b9c6535eb2151"> 160</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ac04888f611bba5cc162b9c6535eb2151">operator!=</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index != rhs._index; }</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a49735d202853317cff83d45b90411b06"> 162</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> operator&lt;(const iterator_base&lt;T&gt; &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index &lt; rhs._index; }</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#af84ebccefca42a42ea653c5752ef95c6"> 164</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#af84ebccefca42a42ea653c5752ef95c6">operator&gt;</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index &gt; rhs._index; }</div><div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a98ebe8c28c42e6dd4c9d8332254ca23c"> 166</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> operator&lt;=(const iterator_base&lt;T&gt; &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index &lt;= rhs._index; }</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1aed30cd7ed4df5a8a414623bf7883f9"> 168</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1aed30cd7ed4df5a8a414623bf7883f9">operator&gt;=</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index &gt;= rhs._index; }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a21a97014a323f24884da838d9b8f8a2b"> 171</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a21a97014a323f24884da838d9b8f8a2b">operator+=</a>(difference_type delta) { _index += delta; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a774bd706544e1b7c4006713ba3e05c36"> 173</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a774bd706544e1b7c4006713ba3e05c36">operator+</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;iter, difference_type delta) { <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a>{iter._node, iter._index + delta}; }</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889c2266b10a525bc828ada7c7e3b9f8"> 175</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889c2266b10a525bc828ada7c7e3b9f8">operator+</a>(difference_type delta, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;iter) { <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a>{iter._node, iter._index + delta}; }</div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889a83d0a993dadf6967564707ce4bf2"> 177</a></span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889a83d0a993dadf6967564707ce4bf2">operator-=</a>(difference_type delta) { _index -= delta; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a979203873ebff0699e1b85ada2b49fd7"> 179</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a979203873ebff0699e1b85ada2b49fd7">operator-</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;iter, difference_type delta) { <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a>{iter._node, iter._index - delta}; }</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ab54a0675ab2bcae11f3d27de2f4f51ae"> 181</a></span>&#160; <span class="keyword">inline</span> <span class="keyword">friend</span> difference_type <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ab54a0675ab2bcae11f3d27de2f4f51ae">operator-</a>(<span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;lhs, <span class="keyword">const</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;T&gt;</a> &amp;rhs) { assert(lhs._node == rhs._node); <span class="keywordflow">return</span> lhs._index - rhs._index; }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ace9086b650769f5817824cc3ac622e8f"> 184</a></span>&#160; <span class="keyword">inline</span> reference <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ace9086b650769f5817824cc3ac622e8f">operator[]</a>(difference_type delta)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _node-&gt;at(_index + delta); }</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode</a>&lt;TType&gt;;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a> *_node;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; <span class="keywordtype">int</span> _index;</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keyword">inline</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a3a20b13a24c5969646a19046bab67450">iterator_base</a>(<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a> *node, <span class="keywordtype">int</span> index) :</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; _node{node},</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; _index{index}</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; {}</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; };</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ae87030e168460c029474d649ece64279"> 199</a></span>&#160; <span class="keyword">using</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator</a> = <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;TType&gt;</a>;</div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a89ed6f70455a2bf57f28b344c0231f1f"> 201</a></span>&#160; <span class="keyword">using</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a> = <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator_base&lt;const TType&gt;</a>;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#addbfb2d41deb8037f532aea5ac2761ea">isSet</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a6c380df94538a7d2dba903f964757387">key</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a75aeae5279c7f4488496d0d5dd5800c7">size</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keyword">const</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4">at</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160; TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4">at</a>(<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a42219dd77b9aef6dd736b717022c6d4d">push</a>();</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">Deferred</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a98af538ae9bbed11f4abdf00e568316b">push_deferred</a>();</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a4a208bf725a9cc81a23d6d6fce17c8a4">pop</a>(<span class="keywordtype">int</span> count = 1);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ac76bcf26138c18ca86f8c9d5416dd667">reset</a>();</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>&#160;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>&#160; TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199">operator[]</a>(<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>&#160; <span class="keyword">const</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199">operator[]</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda">begin</a>();</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361">end</a>();</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda">begin</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361">end</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3747329a614abe8b097935122ca6c8a2">constBegin</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160; <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ae5ce381b1ce940ac2a11f849e3350e8b">constEnd</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98">addChangeCallback</a>(<span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">int</span>)&gt; &amp;callback); <span class="comment">// size</span></div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>&#160;<span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98">addChangeCallback</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *scope, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">int</span>)&gt; &amp;callback);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; <span class="keywordtype">void</span> setup(<a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a6c380df94538a7d2dba903f964757387">key</a>, <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *accessor, std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">int</span>, TType&amp;)&gt; setupFn);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160; <span class="keywordtype">void</span> commit(<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160; <span class="keyword">struct </span>ElementHolder {</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>&#160; <span class="keywordtype">bool</span> __initialized = <span class="keyword">false</span>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>&#160; <a class="codeRef" 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/qsharedpointer.html">QSharedPointer&lt;TType&gt;</a> _element;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="keyword">inline</span> ElementHolder() : _element{<span class="keyword">new</span> TType{}} {}</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; };</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> _key;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> _sizeKey;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>&#160; ISettingsAccessor *_accessor = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>&#160; std::function&lt;void(int, TType&amp;)&gt; _setupFn;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keyword">mutable</span> <a class="codeRef" 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/qhash.html">QHash&lt;int, ElementHolder&gt;</a> _cache;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160;};</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160;<span class="comment">// ------------- Generic Implementation -------------</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00270"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a472f6f0e30294ed960a7504384aa51b6"> 270</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a472f6f0e30294ed960a7504384aa51b6">SettingsEntry&lt;T&gt;::isSet</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160; <span class="keywordflow">return</span> _accessor-&gt;contains(_key);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160;}</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#aadcf907bad726d60a474008d58344da4"> 276</a></span>&#160;<a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#aadcf907bad726d60a474008d58344da4">SettingsEntry&lt;T&gt;::key</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keywordflow">return</span> _key;</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160;}</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a99230b611983fb72ca3b65c9ac34e2fd"> 282</a></span>&#160;T <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a99230b611983fb72ca3b65c9ac34e2fd">SettingsEntry&lt;T&gt;::get</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keywordflow">return</span> _accessor-&gt;load(_key, _default).template value&lt;T&gt;();</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160;}</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160;</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160;<span class="keyword">template</span>&lt;&gt;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;Q_MVVMCORE_EXPORT <a class="codeRef" 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/qvariant.html">QVariant</a> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a99230b611983fb72ca3b65c9ac34e2fd">SettingsEntry&lt;QVariant&gt;::get</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00291"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a23efc7c45f1f02f4e7b280f9a4ec68d7"> 291</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a23efc7c45f1f02f4e7b280f9a4ec68d7">SettingsEntry&lt;T&gt;::set</a>(<span class="keyword">const</span> T &amp;value)</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160;{</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160; _accessor-&gt;save(_key, <a class="codeRef" 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/qvariant.html#fromValue">QVariant::fromValue</a>(value));</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160;}</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160;</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160;<span class="keyword">template</span>&lt;&gt;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;Q_MVVMCORE_EXPORT <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a23efc7c45f1f02f4e7b280f9a4ec68d7">SettingsEntry&lt;QVariant&gt;::set</a>(<span class="keyword">const</span> <a class="codeRef" 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/qvariant.html">QVariant</a> &amp;value);</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>&#160;</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a7d79faf59f10763f0a8fa3ea854f985b"> 300</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a7d79faf59f10763f0a8fa3ea854f985b">SettingsEntry&lt;T&gt;::reset</a>()</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>&#160;{</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>&#160; _accessor-&gt;remove(_key);</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>&#160;}</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>&#160;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#ac84435eb0308f12f4159001c6b437fa1"> 306</a></span>&#160;<a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry&lt;T&gt;</a> &amp;<a class="code" href="class_qt_mvvm_1_1_settings_entry.html#ac84435eb0308f12f4159001c6b437fa1">SettingsEntry&lt;T&gt;::operator=</a>(<span class="keyword">const</span> T &amp;value)</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160;{</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="keyword">set</span>(value);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160;}</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00313"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a45c26e6ab0e1f7227e3d8146cd6bb47b"> 313</a></span>&#160;<a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry&lt;T&gt;::operator</a> T()<span class="keyword"> const</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>&#160; <span class="keywordflow">return</span> <span class="keyword">get</span>();</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>&#160;}</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>&#160;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17"> 319</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">SettingsEntry&lt;T&gt;::addChangeCallback</a>(<span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span> (T)&gt; &amp;callback)</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>&#160;{</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>&#160; addChangeCallback(_accessor, callback);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160;}</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_entry.html#a3f3996b9823c25acebb0ac70a673a1f1"> 325</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">SettingsEntry&lt;T&gt;::addChangeCallback</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *scope, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span> (T)&gt; &amp;callback)</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160;{</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keyword">auto</span> mKey = _key;</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; <span class="keyword">auto</span> mDefault = _default;</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>&#160; <a class="codeRef" 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#connect">QObject::connect</a>(_accessor, &amp;<a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html#aa4b7f202e3a17227e6ebb1585948a7ed">ISettingsAccessor::entryChanged</a>,</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>&#160; scope, [mKey, callback](<span class="keyword">const</span> <a class="codeRef" 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/qstring.html">QString</a> &amp;key, <span class="keyword">const</span> <a class="codeRef" 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/qvariant.html">QVariant</a> &amp;value) {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>&#160; <span class="keywordflow">if</span>(key == mKey)</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>&#160; callback(value.template value&lt;T&gt;());</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>&#160; });</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>&#160; <a class="codeRef" 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#connect">QObject::connect</a>(_accessor, &amp;<a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html#a2d3d6c82facfcf1782d2924e18854594">ISettingsAccessor::entryRemoved</a>,</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>&#160; scope, [mKey, mDefault, callback](<span class="keyword">const</span> <a class="codeRef" 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/qstring.html">QString</a> &amp;key) {</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>&#160; <span class="keywordflow">if</span>(key == mKey)</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>&#160; callback(mDefault.template value&lt;T&gt;());</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>&#160; });</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>&#160;}</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>&#160;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>&#160;<span class="keyword">template</span>&lt;&gt;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160;Q_MVVMCORE_EXPORT <span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">SettingsEntry&lt;QVariant&gt;::addChangeCallback</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *scope, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span> (<a class="codeRef" 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/qvariant.html">QVariant</a>)&gt; &amp;callback);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160;</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_entry.html">SettingsEntry&lt;T&gt;::setup</a>(<a class="codeRef" 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/qstring.html">QString</a> key, <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *accessor, <a class="codeRef" 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/qvariant.html">QVariant</a> defaultValue)</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;{</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; Q_ASSERT_X(accessor, Q_FUNC_INFO, <span class="stringliteral">&quot;You must set a valid accessor before initializing the settings!&quot;</span>);</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; _key = std::move(key);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; _accessor = accessor;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; _default = std::move(defaultValue);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160;}</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160;</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160;<span class="comment">// ------------- Generic Implementation ListNode -------------</span></div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#addbfb2d41deb8037f532aea5ac2761ea"> 356</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#addbfb2d41deb8037f532aea5ac2761ea">SettingsListNode&lt;TType&gt;::isSet</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; <span class="keywordflow">return</span> _accessor-&gt;contains(_sizeKey);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160;}</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00362"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a6c380df94538a7d2dba903f964757387"> 362</a></span>&#160;<a class="codeRef" 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/qstring.html">QString</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a6c380df94538a7d2dba903f964757387">SettingsListNode&lt;TType&gt;::key</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>&#160; <span class="keywordflow">return</span> _key;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>&#160;}</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>&#160;</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00368"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a75aeae5279c7f4488496d0d5dd5800c7"> 368</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a75aeae5279c7f4488496d0d5dd5800c7">SettingsListNode&lt;TType&gt;::size</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>&#160; <span class="keywordflow">return</span> _accessor-&gt;load(_sizeKey, 0).toInt();</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>&#160;}</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00374"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4"> 374</a></span>&#160;<span class="keyword">const</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4">SettingsListNode&lt;TType&gt;::at</a>(<span class="keywordtype">int</span> index)<span class="keyword"> const</span></div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>&#160; <span class="keyword">auto</span> &amp;value = _cache[index];</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>&#160; <span class="keywordflow">if</span>(!value.__initialized) {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>&#160; _setupFn(index, *(value._element));</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>&#160; value.__initialized = <span class="keyword">true</span>;</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>&#160; }</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>&#160; <span class="keywordflow">return</span> *(value._element);</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>&#160;}</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160;</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ad4b86a29e30eb6286cc01882878dda08"> 385</a></span>&#160;TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4">SettingsListNode&lt;TType&gt;::at</a>(<span class="keywordtype">int</span> index)</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160;{</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; <span class="keyword">auto</span> &amp;value = _cache[index];</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <span class="keywordflow">if</span>(!value.__initialized) {</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; _setupFn(index, *(value._element));</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>&#160; value.__initialized = <span class="keyword">true</span>;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>&#160; }</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>&#160; <span class="keywordflow">return</span> *(value._element);</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>&#160;}</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>&#160;</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a42219dd77b9aef6dd736b717022c6d4d"> 396</a></span>&#160;TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a42219dd77b9aef6dd736b717022c6d4d">SettingsListNode&lt;TType&gt;::push</a>()</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span>&#160;{</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>&#160; <span class="keyword">auto</span> cIndex = size();</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>&#160; _accessor-&gt;save(_sizeKey, cIndex + 1);</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>&#160; <span class="keywordflow">return</span> at(cIndex);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>&#160;}</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a98af538ae9bbed11f4abdf00e568316b"> 404</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">SettingsListNode&lt;TType&gt;::Deferred</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a98af538ae9bbed11f4abdf00e568316b">SettingsListNode&lt;TType&gt;::push_deferred</a>()</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>&#160;{</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>&#160; <span class="keyword">auto</span> cIndex = size();</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>&#160; <span class="keywordflow">return</span> {<span class="keyword">this</span>, at(cIndex), cIndex};</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>&#160;}</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>&#160;</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00411"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a4a208bf725a9cc81a23d6d6fce17c8a4"> 411</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a4a208bf725a9cc81a23d6d6fce17c8a4">SettingsListNode&lt;TType&gt;::pop</a>(<span class="keywordtype">int</span> count)</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>&#160;{</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>&#160; <span class="keyword">auto</span> cSize = size();</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>&#160; <span class="keyword">auto</span> nSize = qMax(size() - count, 0);</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> i = cSize - 1; i &gt;= nSize; --i)</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>&#160; _accessor-&gt;remove(_key + QStringLiteral(<span class="stringliteral">&quot;/%1&quot;</span>).arg(i));</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>&#160; _accessor-&gt;save(_sizeKey, nSize);</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>&#160;}</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00421"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ac76bcf26138c18ca86f8c9d5416dd667"> 421</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ac76bcf26138c18ca86f8c9d5416dd667">SettingsListNode&lt;TType&gt;::reset</a>()</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>&#160;{</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>&#160; _accessor-&gt;remove(_key);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>&#160;}</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>&#160;</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00427"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a6ba0a43422ed7d3dfd34510a1c90f099"> 427</a></span>&#160;<span class="keyword">const</span> TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199">SettingsListNode&lt;TType&gt;::operator[]</a>(<span class="keywordtype">int</span> index)<span class="keyword"> const</span></div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; <span class="keywordflow">return</span> at(index);</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160;}</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160;</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00434"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199"> 434</a></span>&#160;TType &amp;<a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199">SettingsListNode&lt;TType&gt;::operator[]</a>(<span class="keywordtype">int</span> index)</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>&#160;{</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>&#160; <span class="keywordflow">return</span> at(index);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>&#160;}</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00440"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda"> 440</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda">SettingsListNode&lt;TType&gt;::begin</a>()</div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>&#160;{</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator</a>{<span class="keyword">this</span>, 0};</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>&#160;}</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>&#160;</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00446"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361"> 446</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361">SettingsListNode&lt;TType&gt;::end</a>()</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>&#160;{</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">iterator</a>{<span class="keyword">this</span>, size()};</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>&#160;}</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>&#160;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00452"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ab3cb7eba74ab2be7fa4384210492b32d"> 452</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda">SettingsListNode&lt;TType&gt;::begin</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>&#160; <span class="keywordflow">return</span> constBegin();</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>&#160;}</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>&#160;</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00458"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#afa1dc1bac89a25ada68438b3cd240ef6"> 458</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361">SettingsListNode&lt;TType&gt;::end</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span>&#160; <span class="keywordflow">return</span> constEnd();</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>&#160;}</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>&#160;</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#a3747329a614abe8b097935122ca6c8a2"> 464</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#a3747329a614abe8b097935122ca6c8a2">SettingsListNode&lt;TType&gt;::constBegin</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a>{<span class="keyword">const_cast&lt;</span><a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>), 0};</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>&#160;}</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>&#160;</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ae5ce381b1ce940ac2a11f849e3350e8b"> 470</a></span>&#160;<span class="keyword">typename</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">SettingsListNode&lt;TType&gt;::const_iterator</a> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ae5ce381b1ce940ac2a11f849e3350e8b">SettingsListNode&lt;TType&gt;::constEnd</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>&#160;<span class="keyword"></span>{</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">const_iterator</a>{<span class="keyword">const_cast&lt;</span><a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>), size()};</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>&#160;}</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>&#160;</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00476"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98"> 476</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98">SettingsListNode&lt;TType&gt;::addChangeCallback</a>(<span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span> (<span class="keywordtype">int</span>)&gt; &amp;callback)</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>&#160;{</div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>&#160; addChangeCallback(_accessor, callback);</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>&#160;}</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>&#160;</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00482"></a><span class="lineno"><a class="line" href="class_qt_mvvm_1_1_settings_list_node.html#acb27dd1c7efb1010593812a496698e0b"> 482</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98">SettingsListNode&lt;TType&gt;::addChangeCallback</a>(<a class="codeRef" target="_blank" doxygen="/home/sky/Qt/Docs/Qt-5.11.1/qtautoupdater/qtautoupdater.tags:https://doc.qt.io/qt-5/" href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a> *scope, <span class="keyword">const</span> std::function&lt;<span class="keywordtype">void</span> (<span class="keywordtype">int</span>)&gt; &amp;callback)</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span>&#160;{</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>&#160; <a class="codeRef" 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/qstring.html">QString</a> mKey = _sizeKey;</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>&#160; <a class="codeRef" 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#connect">QObject::connect</a>(_accessor, &amp;<a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html#aa4b7f202e3a17227e6ebb1585948a7ed">ISettingsAccessor::entryChanged</a>,</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>&#160; scope, [mKey, callback](<span class="keyword">const</span> <a class="codeRef" 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/qstring.html">QString</a> &amp;key, <span class="keyword">const</span> <a class="codeRef" 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/qvariant.html">QVariant</a> &amp;value) {</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>&#160; <span class="keywordflow">if</span>(key == mKey)</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>&#160; callback(value.<a class="codeRef" 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/qvariant.html#toInt">toInt</a>());</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>&#160; });</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>&#160; <a class="codeRef" 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#connect">QObject::connect</a>(_accessor, &amp;<a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html#a2d3d6c82facfcf1782d2924e18854594">ISettingsAccessor::entryRemoved</a>,</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>&#160; scope, [mKey, callback](<span class="keyword">const</span> <a class="codeRef" 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/qstring.html">QString</a> &amp;key) {</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>&#160; <span class="keywordflow">if</span>(key == mKey)</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>&#160; callback(0);</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>&#160; });</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>&#160;}</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>&#160;</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qt_mvvm_1_1_settings_list_node.html">SettingsListNode&lt;TType&gt;::setup</a>(<a class="codeRef" 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/qstring.html">QString</a> key, <a class="code" href="class_qt_mvvm_1_1_i_settings_accessor.html">ISettingsAccessor</a> *accessor, std::function&lt;<span class="keywordtype">void</span>(<span class="keywordtype">int</span>, TType&amp;)&gt; setupFn)</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>&#160;{</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>&#160; Q_ASSERT_X(accessor, Q_FUNC_INFO, <span class="stringliteral">&quot;You must set a valid accessor before initializing the settings!&quot;</span>);</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>&#160; _key = std::move(key);</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>&#160; _sizeKey = _key + QStringLiteral(<span class="stringliteral">&quot;/size&quot;</span>);</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>&#160; _accessor = accessor;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>&#160; _setupFn = std::move(setupFn);</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>&#160;}</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>&#160;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> TType&gt;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>&#160;<span class="keywordtype">void</span> SettingsListNode&lt;TType&gt;::commit(<span class="keywordtype">int</span> index)</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160;{</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; _accessor-&gt;save(_sizeKey, qMax(size(), index + 1));</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>&#160;}</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>&#160;</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160;}</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160;</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160;<span class="preprocessor">#endif // QTMVVM_SETTINGSENTRY_H</span></div><div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a1a0cae5724afc6f093c6d8d3282c0f15"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1a0cae5724afc6f093c6d8d3282c0f15">QtMvvm::SettingsListNode::iterator_base::operator-&gt;</a></div><div class="ttdeci">pointer operator-&gt;() const</div><div class="ttdoc">Member access operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00153">settingsentry.h:153</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_ac76bcf26138c18ca86f8c9d5416dd667"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#ac76bcf26138c18ca86f8c9d5416dd667">QtMvvm::SettingsListNode::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Removes the list and all of its elements from the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00421">settingsentry.h:421</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_a99230b611983fb72ca3b65c9ac34e2fd"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#a99230b611983fb72ca3b65c9ac34e2fd">QtMvvm::SettingsEntry::get</a></div><div class="ttdeci">T get() const</div><div class="ttdoc">Loads the value from the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00282">settingsentry.h:282</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html">QtMvvm::SettingsListNode::Deferred</a></div><div class="ttdoc">Entry container to make deferred creation of a new list element possible. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00077">settingsentry.h:77</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_ae5ce381b1ce940ac2a11f849e3350e8b"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#ae5ce381b1ce940ac2a11f849e3350e8b">QtMvvm::SettingsListNode::constEnd</a></div><div class="ttdeci">const_iterator constEnd() const</div><div class="ttdoc">returns an iterator pointing after the end of the list </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00470">settingsentry.h:470</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_a334688185de9b56cf2702def7aa01c17"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#a334688185de9b56cf2702def7aa01c17">QtMvvm::SettingsEntry::addChangeCallback</a></div><div class="ttdeci">void addChangeCallback(const std::function&lt; void(T)&gt; &amp;callback)</div><div class="ttdoc">Adds a method to be called if the entries value changes. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00319">settingsentry.h:319</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_i_settings_accessor_html"><div class="ttname"><a href="class_qt_mvvm_1_1_i_settings_accessor.html">QtMvvm::ISettingsAccessor</a></div><div class="ttdoc">An interface to provide a generic way to access settings of any origin. </div><div class="ttdef"><b>Definition:</b> <a href="isettingsaccessor_8h_source.html#l00015">isettingsaccessor.h:15</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_aee60e0f19d7ce1d4333e027f2866938f"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#aee60e0f19d7ce1d4333e027f2866938f">QtMvvm::SettingsListNode::iterator_base::operator--</a></div><div class="ttdeci">iterator_base&lt; T &gt; &amp; operator--()</div><div class="ttdoc">Posfix decrement operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00146">settingsentry.h:146</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a77505ea249d87ac103d7c0030c6e7e59"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a77505ea249d87ac103d7c0030c6e7e59">QtMvvm::SettingsListNode::iterator_base::operator=</a></div><div class="ttdeci">iterator_base &amp; operator=(const iterator_base&lt; T &gt; &amp;other)=default</div><div class="ttdoc">Copy assignment operator. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_a6117e362972472a9142ee94ed1c3fa94"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a6117e362972472a9142ee94ed1c3fa94">QtMvvm::SettingsListNode::Deferred::Deferred</a></div><div class="ttdeci">Deferred(Deferred &amp;&amp;other) noexcept=default</div><div class="ttdoc">Move constructor. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_ac04888f611bba5cc162b9c6535eb2151"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ac04888f611bba5cc162b9c6535eb2151">QtMvvm::SettingsListNode::iterator_base::operator!=</a></div><div class="ttdeci">friend bool operator!=(const iterator_base&lt; T &gt; &amp;lhs, const iterator_base&lt; T &gt; &amp;rhs)</div><div class="ttdoc">Inequality operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00160">settingsentry.h:160</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_a472f6f0e30294ed960a7504384aa51b6"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#a472f6f0e30294ed960a7504384aa51b6">QtMvvm::SettingsEntry::isSet</a></div><div class="ttdeci">bool isSet() const</div><div class="ttdoc">Checks if the entry is stored in the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00270">settingsentry.h:270</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a15cbf1aaf5d98229753e630e8ac46199"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a15cbf1aaf5d98229753e630e8ac46199">QtMvvm::SettingsListNode::operator[]</a></div><div class="ttdeci">TType &amp; operator[](int index)</div><div class="ttdoc">Returns a reference to the element at the given position in the list. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00434">settingsentry.h:434</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a42219dd77b9aef6dd736b717022c6d4d"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a42219dd77b9aef6dd736b717022c6d4d">QtMvvm::SettingsListNode::push</a></div><div class="ttdeci">TType &amp; push()</div><div class="ttdoc">Appends a new element to the list and returns a reference to that entry. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00396">settingsentry.h:396</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_ab54a0675ab2bcae11f3d27de2f4f51ae"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ab54a0675ab2bcae11f3d27de2f4f51ae">QtMvvm::SettingsListNode::iterator_base::operator-</a></div><div class="ttdeci">friend difference_type operator-(const iterator_base&lt; T &gt; &amp;lhs, const iterator_base&lt; T &gt; &amp;rhs)</div><div class="ttdoc">Substraction operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00181">settingsentry.h:181</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_aadcf907bad726d60a474008d58344da4"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#aadcf907bad726d60a474008d58344da4">QtMvvm::SettingsEntry::key</a></div><div class="ttdeci">QString key() const</div><div class="ttdoc">Returns the key this entry uses to access the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00276">settingsentry.h:276</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a3747329a614abe8b097935122ca6c8a2"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a3747329a614abe8b097935122ca6c8a2">QtMvvm::SettingsListNode::constBegin</a></div><div class="ttdeci">const_iterator constBegin() const</div><div class="ttdoc">returns an iterator pointing to the beginning of the list </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00464">settingsentry.h:464</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_a2e3c13d3ecaff8ec25b490e297628715"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a2e3c13d3ecaff8ec25b490e297628715">QtMvvm::SettingsListNode::Deferred::commit</a></div><div class="ttdeci">void commit()</div><div class="ttdoc">Appends the created element to the list. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00097">settingsentry.h:97</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_af499dc42d5fd90acb2901e8db23f0c60"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#af499dc42d5fd90acb2901e8db23f0c60">QtMvvm::SettingsListNode::Deferred::operator-&gt;</a></div><div class="ttdeci">TType * operator-&gt;()</div><div class="ttdoc">Member access operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00094">settingsentry.h:94</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_af84ebccefca42a42ea653c5752ef95c6"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#af84ebccefca42a42ea653c5752ef95c6">QtMvvm::SettingsListNode::iterator_base::operator&gt;</a></div><div class="ttdeci">friend bool operator&gt;(const iterator_base&lt; T &gt; &amp;lhs, const iterator_base&lt; T &gt; &amp;rhs)</div><div class="ttdoc">Geater than operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00164">settingsentry.h:164</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_ab3d3b29bc3b617e65e3acf879eb24c98"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#ab3d3b29bc3b617e65e3acf879eb24c98">QtMvvm::SettingsListNode::addChangeCallback</a></div><div class="ttdeci">void addChangeCallback(const std::function&lt; void(int)&gt; &amp;callback)</div><div class="ttdoc">Adds a method to be called if the number of elements stored for the list change. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00476">settingsentry.h:476</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a889c2266b10a525bc828ada7c7e3b9f8"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889c2266b10a525bc828ada7c7e3b9f8">QtMvvm::SettingsListNode::iterator_base::operator+</a></div><div class="ttdeci">friend iterator_base&lt; T &gt; operator+(difference_type delta, const iterator_base&lt; T &gt; &amp;iter)</div><div class="ttdoc">Addition operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00175">settingsentry.h:175</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_afb2b1fb8e0f2007c99f6aa39db976e38"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#afb2b1fb8e0f2007c99f6aa39db976e38">QtMvvm::SettingsListNode::Deferred::operator=</a></div><div class="ttdeci">Deferred &amp; operator=(Deferred &amp;&amp;other) noexcept=default</div><div class="ttdoc">Move assignment operator. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a2ee4a1d95606f922395865e6100ce3eb"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a2ee4a1d95606f922395865e6100ce3eb">QtMvvm::SettingsListNode::iterator_base::operator==</a></div><div class="ttdeci">friend bool operator==(const iterator_base&lt; T &gt; &amp;lhs, const iterator_base&lt; T &gt; &amp;rhs)</div><div class="ttdoc">Equality operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00158">settingsentry.h:158</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_addbfb2d41deb8037f532aea5ac2761ea"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#addbfb2d41deb8037f532aea5ac2761ea">QtMvvm::SettingsListNode::isSet</a></div><div class="ttdeci">bool isSet() const</div><div class="ttdoc">Checks if the entry that represents the list node is stored in the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00356">settingsentry.h:356</a></div></div>
<div class="ttc" id="qvariant_html_toInt"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html#toInt">QVariant::toInt</a></div><div class="ttdeci">int toInt(bool *ok) const const</div></div>
<div class="ttc" id="qsharedpointer_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qsharedpointer.html">QSharedPointer&lt; TType &gt;</a></div></div>
<div class="ttc" id="qhash_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qhash.html">QHash&lt; int, ElementHolder &gt;</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a358012f0dfd1f26fc250cf739255e246"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a358012f0dfd1f26fc250cf739255e246">QtMvvm::SettingsListNode::iterator_base::swap</a></div><div class="ttdeci">friend void swap(iterator_base&lt; T &gt; &amp;lhs, iterator_base&lt; T &gt; &amp;rhs) noexcept</div><div class="ttdoc">Swap operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00155">settingsentry.h:155</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a1aed30cd7ed4df5a8a414623bf7883f9"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a1aed30cd7ed4df5a8a414623bf7883f9">QtMvvm::SettingsListNode::iterator_base::operator&gt;=</a></div><div class="ttdeci">friend bool operator&gt;=(const iterator_base&lt; T &gt; &amp;lhs, const iterator_base&lt; T &gt; &amp;rhs)</div><div class="ttdoc">Geater equal than operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00168">settingsentry.h:168</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_afe5c1758181ecfe1be4c2bf70ad0e6f4"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#afe5c1758181ecfe1be4c2bf70ad0e6f4">QtMvvm::SettingsListNode::at</a></div><div class="ttdeci">const TType &amp; at(int index) const</div><div class="ttdoc">Returns a reference to the element at the given position in the list. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00374">settingsentry.h:374</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html">QtMvvm::SettingsEntry</a></div><div class="ttdoc">A generic wrapper around ISettingsAccessor used by the qsettingsgenerator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00018">settingsentry.h:18</a></div></div>
<div class="ttc" id="qstring_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qstring.html">QString</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_ad300009183c362b4dd2b83de85ce1361"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#ad300009183c362b4dd2b83de85ce1361">QtMvvm::SettingsListNode::end</a></div><div class="ttdeci">iterator end()</div><div class="ttdoc">returns an iterator pointing after the end of the list </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00446">settingsentry.h:446</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a334f8b89ecc93d29241f1f67efdf54e2"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a334f8b89ecc93d29241f1f67efdf54e2">QtMvvm::SettingsListNode::iterator_base::operator++</a></div><div class="ttdeci">iterator_base&lt; T &gt; &amp; operator++()</div><div class="ttdoc">Posfix increment operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00142">settingsentry.h:142</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a6c380df94538a7d2dba903f964757387"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a6c380df94538a7d2dba903f964757387">QtMvvm::SettingsListNode::key</a></div><div class="ttdeci">QString key() const</div><div class="ttdoc">Returns the key this list node uses to access the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00362">settingsentry.h:362</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a3a5192b741c1fdb88b4ad0c046442bda"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a3a5192b741c1fdb88b4ad0c046442bda">QtMvvm::SettingsListNode::begin</a></div><div class="ttdeci">iterator begin()</div><div class="ttdoc">returns an iterator pointing to the beginning of the list </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00440">settingsentry.h:440</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a21a97014a323f24884da838d9b8f8a2b"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a21a97014a323f24884da838d9b8f8a2b">QtMvvm::SettingsListNode::iterator_base::operator+=</a></div><div class="ttdeci">iterator_base&lt; T &gt; &amp; operator+=(difference_type delta)</div><div class="ttdoc">Compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00171">settingsentry.h:171</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a979203873ebff0699e1b85ada2b49fd7"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a979203873ebff0699e1b85ada2b49fd7">QtMvvm::SettingsListNode::iterator_base::operator-</a></div><div class="ttdeci">friend iterator_base&lt; T &gt; operator-(const iterator_base&lt; T &gt; &amp;iter, difference_type delta)</div><div class="ttdoc">Substraction operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00179">settingsentry.h:179</a></div></div>
<div class="ttc" id="qvariant_html_fromValue"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html#fromValue">QVariant::fromValue</a></div><div class="ttdeci">QVariant fromValue(const T &amp;value)</div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_ad1b7286718420ed60727731576c1cf64"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ad1b7286718420ed60727731576c1cf64">QtMvvm::SettingsListNode::iterator_base::operator--</a></div><div class="ttdeci">iterator_base&lt; T &gt; operator--(int)</div><div class="ttdoc">Suffix decrement operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00148">settingsentry.h:148</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_a7d79faf59f10763f0a8fa3ea854f985b"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#a7d79faf59f10763f0a8fa3ea854f985b">QtMvvm::SettingsEntry::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Removes the entry and all child entries from the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00300">settingsentry.h:300</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_a23efc7c45f1f02f4e7b280f9a4ec68d7"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#a23efc7c45f1f02f4e7b280f9a4ec68d7">QtMvvm::SettingsEntry::set</a></div><div class="ttdeci">void set(const T &amp;value)</div><div class="ttdoc">Stores the passed value in the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00291">settingsentry.h:291</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a98af538ae9bbed11f4abdf00e568316b"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a98af538ae9bbed11f4abdf00e568316b">QtMvvm::SettingsListNode::push_deferred</a></div><div class="ttdeci">Deferred push_deferred()</div><div class="ttdoc">Creates a new element and returns it, but does not push it yet. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00404">settingsentry.h:404</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a3a20b13a24c5969646a19046bab67450"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a3a20b13a24c5969646a19046bab67450">QtMvvm::SettingsListNode::iterator_base::iterator_base</a></div><div class="ttdeci">iterator_base()=default</div><div class="ttdoc">Default constructor. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a4a208bf725a9cc81a23d6d6fce17c8a4"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a4a208bf725a9cc81a23d6d6fce17c8a4">QtMvvm::SettingsListNode::pop</a></div><div class="ttdeci">void pop(int count=1)</div><div class="ttdoc">Removes count elements from the back of the list from the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00411">settingsentry.h:411</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_a0cc5de41314fddcbdeb4fd92c0f74281"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a0cc5de41314fddcbdeb4fd92c0f74281">QtMvvm::SettingsListNode::Deferred::element</a></div><div class="ttdeci">TType &amp; element()</div><div class="ttdoc">Returns a reference to the element beeing edited. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00089">settingsentry.h:89</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a889a83d0a993dadf6967564707ce4bf2"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a889a83d0a993dadf6967564707ce4bf2">QtMvvm::SettingsListNode::iterator_base::operator-=</a></div><div class="ttdeci">iterator_base&lt; T &gt; &amp; operator-=(difference_type delta)</div><div class="ttdoc">Compound assignment operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00177">settingsentry.h:177</a></div></div>
<div class="ttc" id="class_q_object_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/class_q_object.html">QObject</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_i_settings_accessor_html_a2d3d6c82facfcf1782d2924e18854594"><div class="ttname"><a href="class_qt_mvvm_1_1_i_settings_accessor.html#a2d3d6c82facfcf1782d2924e18854594">QtMvvm::ISettingsAccessor::entryRemoved</a></div><div class="ttdeci">void entryRemoved(const QString &amp;key)</div><div class="ttdoc">Is emitted whenever a settings value was removed, at least via this instance. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html_a75aeae5279c7f4488496d0d5dd5800c7"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html#a75aeae5279c7f4488496d0d5dd5800c7">QtMvvm::SettingsListNode::size</a></div><div class="ttdeci">int size() const</div><div class="ttdoc">Returns the current size of the list, as stored in the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00368">settingsentry.h:368</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a84f02e223d6b5bac1c1c4509f6427490"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a84f02e223d6b5bac1c1c4509f6427490">QtMvvm::SettingsListNode::iterator_base::operator++</a></div><div class="ttdeci">iterator_base&lt; T &gt; operator++(int)</div><div class="ttdoc">Suffix increment operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00144">settingsentry.h:144</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_a774bd706544e1b7c4006713ba3e05c36"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#a774bd706544e1b7c4006713ba3e05c36">QtMvvm::SettingsListNode::iterator_base::operator+</a></div><div class="ttdeci">friend iterator_base&lt; T &gt; operator+(const iterator_base&lt; T &gt; &amp;iter, difference_type delta)</div><div class="ttdoc">Addition operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00173">settingsentry.h:173</a></div></div>
<div class="ttc" id="qobject_html_connect"><div class="ttname"><a href="https://doc.qt.io/qt-5/qobject.html#connect">QObject::connect</a></div><div class="ttdeci">QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)</div></div>
<div class="ttc" id="namespace_qt_mvvm_html"><div class="ttname"><a href="namespace_qt_mvvm.html">QtMvvm</a></div><div class="ttdoc">The primary namespace of the QtMvvm library. </div><div class="ttdef"><b>Definition:</b> <a href="androidsettingsaccessor_8h_source.html#l00009">androidsettingsaccessor.h:9</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1_deferred_html_a9e6a55dac7183ae6189280586f43d4bf"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1_deferred.html#a9e6a55dac7183ae6189280586f43d4bf">QtMvvm::SettingsListNode::Deferred::operator*</a></div><div class="ttdeci">TType &amp; operator*()</div><div class="ttdoc">Indirection operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00092">settingsentry.h:92</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html">QtMvvm::SettingsListNode::iterator_base</a></div><div class="ttdoc">The iterator class to iterate through the list nodes entries. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00116">settingsentry.h:116</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_afd5a0fdf5e4e7ddab7656b2a6cbccf74"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#afd5a0fdf5e4e7ddab7656b2a6cbccf74">QtMvvm::SettingsListNode::iterator_base::operator*</a></div><div class="ttdeci">reference operator*() const</div><div class="ttdoc">Indirection operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00151">settingsentry.h:151</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_entry_html_ac84435eb0308f12f4159001c6b437fa1"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_entry.html#ac84435eb0308f12f4159001c6b437fa1">QtMvvm::SettingsEntry::operator=</a></div><div class="ttdeci">SettingsEntry&lt; T &gt; &amp; operator=(const T &amp;value)</div><div class="ttdoc">Stores the passed value in the settings. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00306">settingsentry.h:306</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_i_settings_accessor_html_aa4b7f202e3a17227e6ebb1585948a7ed"><div class="ttname"><a href="class_qt_mvvm_1_1_i_settings_accessor.html#aa4b7f202e3a17227e6ebb1585948a7ed">QtMvvm::ISettingsAccessor::entryChanged</a></div><div class="ttdeci">void entryChanged(const QString &amp;key, const QVariant &amp;value)</div><div class="ttdoc">Is emitted whenever a settings value was changed, at least via this instance. </div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base_html_ace9086b650769f5817824cc3ac622e8f"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node_1_1iterator__base.html#ace9086b650769f5817824cc3ac622e8f">QtMvvm::SettingsListNode::iterator_base::operator[]</a></div><div class="ttdeci">reference operator[](difference_type delta) const</div><div class="ttdoc">Subscript operator. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00184">settingsentry.h:184</a></div></div>
<div class="ttc" id="class_qt_mvvm_1_1_settings_list_node_html"><div class="ttname"><a href="class_qt_mvvm_1_1_settings_list_node.html">QtMvvm::SettingsListNode</a></div><div class="ttdoc">A helper class used by the qsettingsgenerator to represent list nodes. </div><div class="ttdef"><b>Definition:</b> <a href="settingsentry_8h_source.html#l00071">settingsentry.h:71</a></div></div>
<div class="ttc" id="qvariant_html"><div class="ttname"><a href="https://doc.qt.io/qt-5/qvariant.html">QVariant</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 8 2018 19:15:45 for QtMvvm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>