mirror of
https://github.com/status-im/QtModelsToolkit.git
synced 2026-08-30 17:41:12 +00:00
62 lines
2.7 KiB
HTML
62 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<!-- modelcount.cpp -->
|
|
<title>ModelCount QML Type | QtModelsToolkit</title>
|
|
<link rel="stylesheet" type="text/css" href="style/docs-styling.css" />
|
|
</head>
|
|
<body>
|
|
<div class="sidebar">
|
|
<div class="toc">
|
|
<h3><a name="toc">Contents</a></h3>
|
|
<ul>
|
|
<li class="level1"><a href="#attached-properties">Attached Properties</a></li>
|
|
<li class="level1"><a href="#details">Detailed Description</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="sidebar-content" id="sidebar-content"></div></div>
|
|
<h1 class="title">ModelCount QML Type</h1>
|
|
<span class="subtitle"></span>
|
|
<!-- $$$ModelCount-brief -->
|
|
<p>Attached property exposing model's row count. <a href="#details">More...</a></p>
|
|
<!-- @@@ModelCount -->
|
|
<div class="table"><table class="alignedsummary">
|
|
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtModelsToolkit .</td></tr></table></div><ul>
|
|
<li><a href="qml-qtmodelstoolkit-modelcount-members.html">List of all members, including inherited members</a></li>
|
|
</ul>
|
|
<a name="attached-properties"></a>
|
|
<h2 id="attached-properties">Attached Properties</h2>
|
|
<ul>
|
|
<li class="fn"><b><b><a href="qml-qtmodelstoolkit-modelcount.html#count-attached-prop">count</a></b></b> : int</li>
|
|
<li class="fn"><b><b><a href="qml-qtmodelstoolkit-modelcount.html#empty-attached-prop">empty</a></b></b> : int</li>
|
|
</ul>
|
|
<!-- $$$ModelCount-description -->
|
|
<a name="details"></a>
|
|
<h2 id="details">Detailed Description</h2>
|
|
<p>This attached type provides row count in a dynamic way. In opposition to rowCount() it can be safely used in binding expression because change will be properly notified resulting in expression re-evaluation.</p>
|
|
<!-- @@@ModelCount -->
|
|
<h2>Attached Property Documentation</h2>
|
|
<!-- $$$count -->
|
|
<div class="qmlitem"><div class="qmlproto">
|
|
<div class="table"><table class="qmlname">
|
|
<tr valign="top" class="odd" id="count-attached-prop">
|
|
<td class="tblQmlPropNode"><p>
|
|
<a name="count-attached-prop"></a><span class="name">ModelCount.count</span> : <span class="type">int</span></p></td></tr>
|
|
</table></div></div>
|
|
<div class="qmldoc"><p>This attached property provides row count for arbitrary QAbstractItemModel model.</p>
|
|
</div></div><!-- @@@count -->
|
|
<br/>
|
|
<!-- $$$empty -->
|
|
<div class="qmlitem"><div class="qmlproto">
|
|
<div class="table"><table class="qmlname">
|
|
<tr valign="top" class="odd" id="empty-attached-prop">
|
|
<td class="tblQmlPropNode"><p>
|
|
<a name="empty-attached-prop"></a><span class="name">ModelCount.empty</span> : <span class="type">int</span></p></td></tr>
|
|
</table></div></div>
|
|
<div class="qmldoc"><p>This attached property provides flag indication if given arbitrary QAbstractItemModel model is empty.</p>
|
|
</div></div><!-- @@@empty -->
|
|
<br/>
|
|
</body>
|
|
</html>
|