1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 12:13:00 +01:00
ScreenPlay/Docs/html/screenplay-profilelistmodel.html

82 lines
6.5 KiB
HTML
Raw Permalink Normal View History

2019-12-05 15:24:12 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
2019-12-05 15:24:12 +01:00
<!-- profilelistmodel.cpp -->
2020-01-30 15:47:04 +01:00
<title>ProfileListModel Class | ScreenPlay</title>
2019-12-05 15:24:12 +01:00
<link rel="stylesheet" type="text/css" href="../css/style.css"/> <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css"/>
</head>
<body>
<div class="container-fullwidth nav sticky-top"><div class="container navWrapper"><a href="../index.html"><span class="logo">ScreenPlay Generated Docs </span></a><span class="navHome"><a href="../index.html">Home</a></span></div></div> <div id= mainWrapper class="wrapper container ">
2019-12-05 15:24:12 +01:00
<li>ProfileListModel</li>
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
2020-01-30 15:47:04 +01:00
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
2019-12-05 15:24:12 +01:00
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">ProfileListModel Class</h1>
<span class="small-subtitle">class <a href="screenplay-module.html">ScreenPlay</a>::ProfileListModel</span>
2019-12-05 15:24:12 +01:00
<!-- $$$ProfileListModel-brief -->
<p>Used to save all active wallpapers and widgets position and configurations after a restart. <a href="#details">More...</a></p>
2019-12-05 15:24:12 +01:00
<!-- @@@ProfileListModel -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include &lt;ProfileListModel&gt;</span>
</td></tr></table></div><ul>
2020-01-30 15:47:04 +01:00
<li><a href="screenplay-profilelistmodel-members.html">List of all members, including inherited members</a></li>
2019-12-05 15:24:12 +01:00
</ul>
2020-01-30 15:47:04 +01:00
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
2020-08-11 16:20:07 +02:00
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#ProfileListModel">ProfileListModel</a></b>(const std::shared_ptr&lt;GlobalVariables&gt; &amp;<i>globalVariables</i>, QObject *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#append">append</a></b>(const ScreenPlay::Profile &amp;<i>profile</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#getProfileByName">getProfileByName</a></b>(QString <i>id</i>, ScreenPlay::Profile *<i>profile</i>)</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QVariant </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#data">data</a></b>(const QModelIndex &amp;<i>index</i>, int <i>role</i> = Qt::DisplayRole) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QHash&lt;int, QByteArray&gt; </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#roleNames">roleNames</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="screenplay-profilelistmodel.html#rowCount">rowCount</a></b>(const QModelIndex &amp;<i>parent</i> = QModelIndex()) const override</td></tr>
2020-01-30 15:47:04 +01:00
</table></div>
2019-12-05 15:24:12 +01:00
<a name="details"></a>
<!-- $$$ProfileListModel-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>Not yet in used class. Otherwhise it is a regular QAbstractListModel based list model.</p>
2019-12-05 15:24:12 +01:00
</div>
<!-- @@@ProfileListModel -->
2020-01-30 15:47:04 +01:00
<div class="func">
<h2>Member Function Documentation</h2>
2020-08-11 16:20:07 +02:00
<!-- $$$ProfileListModel[overload1]$$$ProfileListModelconststd::shared_ptr<GlobalVariables>&QObject* -->
<h3 class="fn" id="ProfileListModel"><a name="ProfileListModel"></a>ProfileListModel::<span class="name">ProfileListModel</span>(const <span class="type">std::shared_ptr</span>&lt;<span class="type"><a href="screenplay-globalvariables.html">GlobalVariables</a></span>&gt; &amp;<i>globalVariables</i>, <span class="type">QObject</span> *<i>parent</i> = nullptr)</h3>
2020-01-30 15:47:04 +01:00
<p>Constructor</p>
<!-- @@@ProfileListModel -->
<!-- $$$append[overload1]$$$appendconstScreenPlay::Profile& -->
<h3 class="fn" id="append"><a name="append"></a><span class="type">void</span> ProfileListModel::<span class="name">append</span>(const <span class="type">ScreenPlay::Profile</span> &amp;<i>profile</i>)</h3>
<p>.</p>
<!-- @@@append -->
<!-- $$$data[overload1]$$$dataconstQModelIndex&int -->
<h3 class="fn" id="data"><a name="data"></a><code>[override virtual] </code><span class="type">QVariant</span> ProfileListModel::<span class="name">data</span>(const <span class="type">QModelIndex</span> &amp;<i>index</i>, <span class="type">int</span> <i>role</i> = Qt::DisplayRole) const</h3>
<p>.</p>
<!-- @@@data -->
<!-- $$$getProfileByName[overload1]$$$getProfileByNameQStringScreenPlay::Profile* -->
<h3 class="fn" id="getProfileByName"><a name="getProfileByName"></a><span class="type">bool</span> ProfileListModel::<span class="name">getProfileByName</span>(<span class="type">QString</span> <i>id</i>, <span class="type">ScreenPlay::Profile</span> *<i>profile</i>)</h3>
<p>.</p>
<!-- @@@getProfileByName -->
<!-- $$$roleNames[overload1]$$$roleNames -->
<h3 class="fn" id="roleNames"><a name="roleNames"></a><code>[override virtual] </code><span class="type">QHash</span>&lt;<span class="type">int</span>, <span class="type">QByteArray</span>&gt; ProfileListModel::<span class="name">roleNames</span>() const</h3>
<p>.</p>
<!-- @@@roleNames -->
<!-- $$$rowCount[overload1]$$$rowCountconstQModelIndex& -->
<h3 class="fn" id="rowCount"><a name="rowCount"></a><code>[override virtual] </code><span class="type">int</span> ProfileListModel::<span class="name">rowCount</span>(const <span class="type">QModelIndex</span> &amp;<i>parent</i> = QModelIndex()) const</h3>
<p>.</p>
<!-- @@@rowCount -->
2020-01-30 15:47:04 +01:00
</div>
<div id= license class="footer center"><p>This documentation is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.</p></div> <script src="../js/bootstrap.bundle.min.js"></script> <script src="../js/mermaid.min.js"></script> <script>var config = {startOnLoad:true,flowchart:{useMaxWidth:true,htmlLabels:true}};mermaid.initialize(config);</script></body>
2019-12-05 15:24:12 +01:00
</html>