\hypertarget{a10096}{}\section{Tree\+Model Class Reference}
\label{a10096}\index{Tree\+Model@{Tree\+Model}}
Inheritance diagram for Tree\+Model\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a10096}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10096_a33d726e3eed272cfa6bbff6eb07b8a4d}\label{a10096_a33d726e3eed272cfa6bbff6eb07b8a4d}} 
void {\bfseries data\+Changed\+Inside} (int \+\_\+id, int \+\_\+column, const Q\+Variant \&\+\_\+value)
\item 
\mbox{\Hypertarget{a10096_a3ddc1bd8a6950328acb6dcc6eeb717c7}\label{a10096_a3ddc1bd8a6950328acb6dcc6eeb717c7}} 
void {\bfseries move\+Base\+Object} (int \+\_\+id, int \+\_\+new\+Parent\+Id)
\item 
\mbox{\Hypertarget{a10096_a33d726e3eed272cfa6bbff6eb07b8a4d}\label{a10096_a33d726e3eed272cfa6bbff6eb07b8a4d}} 
void {\bfseries data\+Changed\+Inside} (int \+\_\+id, int \+\_\+column, const Q\+Variant \&\+\_\+value)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a10096_a605d740105b2e3d86e765796f4cd3876}{Tree\+Model} (Q\+Object $\ast$\+\_\+parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{a10096_af0998d55a63c2b18be1f03e4e8567926}{$\sim$\+Tree\+Model} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a605d740105b2e3d86e765796f4cd3876}\label{a10096_a605d740105b2e3d86e765796f4cd3876}} 
\hyperlink{a10096_a605d740105b2e3d86e765796f4cd3876}{Tree\+Model} (Q\+Object $\ast$\+\_\+parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_af0998d55a63c2b18be1f03e4e8567926}\label{a10096_af0998d55a63c2b18be1f03e4e8567926}} 
\hyperlink{a10096_af0998d55a63c2b18be1f03e4e8567926}{$\sim$\+Tree\+Model} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}\textbf{ inherited from Q\+Abstract\+Item\+Model}\par
\begin{DoxyCompactItemize}
\item 
Q\+Variant \hyperlink{a10096_ab77a9938f178334289dd479726b05f91}{data} (const Q\+Model\+Index \&\+\_\+index, int \+\_\+role) const
\begin{DoxyCompactList}\small\item\em Get the data of the corresponding entry. \end{DoxyCompactList}\item 
Qt\+::\+Item\+Flags \hyperlink{a10096_aec6b58064928442061c050005ead799f}{flags} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em return the types of the corresponding entry \end{DoxyCompactList}\item 
Q\+Variant \hyperlink{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}{header\+Data} (int \+\_\+section, Qt\+::\+Orientation \+\_\+orientation, int \+\_\+role=Qt\+::\+Display\+Role) const
\begin{DoxyCompactList}\small\item\em return the header data of the model \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a10096_afba4d5490a93aa7d0d3cc86425622560}{index} (int \+\_\+row, int \+\_\+column, const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em Get the Model\+Index at given row,column. \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}{parent} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the parent Model\+Index. \end{DoxyCompactList}\item 
int \hyperlink{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}{row\+Count} (const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em get the number of rows \end{DoxyCompactList}\item 
int \hyperlink{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}{column\+Count} (const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em Return the number of columns. \end{DoxyCompactList}\item 
bool \hyperlink{a10096_a29d154fc78f244967115288440b74b75}{set\+Data} (const Q\+Model\+Index \&\+\_\+index, const Q\+Variant \&\+\_\+value, int \+\_\+role)
\begin{DoxyCompactList}\small\item\em Set Data at \textquotesingle{}index\textquotesingle{} to \textquotesingle{}value\textquotesingle{}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_ab77a9938f178334289dd479726b05f91}\label{a10096_ab77a9938f178334289dd479726b05f91}} 
Q\+Variant \hyperlink{a10096_ab77a9938f178334289dd479726b05f91}{data} (const Q\+Model\+Index \&\+\_\+index, int \+\_\+role) const
\begin{DoxyCompactList}\small\item\em Get the data of the corresponding entry. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_aec6b58064928442061c050005ead799f}\label{a10096_aec6b58064928442061c050005ead799f}} 
Qt\+::\+Item\+Flags \hyperlink{a10096_aec6b58064928442061c050005ead799f}{flags} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em return the types of the corresponding entry \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}\label{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}} 
Q\+Variant \hyperlink{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}{header\+Data} (int \+\_\+section, Qt\+::\+Orientation \+\_\+orientation, int \+\_\+role=Qt\+::\+Display\+Role) const
\begin{DoxyCompactList}\small\item\em return the header data of the model \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_afba4d5490a93aa7d0d3cc86425622560}\label{a10096_afba4d5490a93aa7d0d3cc86425622560}} 
Q\+Model\+Index \hyperlink{a10096_afba4d5490a93aa7d0d3cc86425622560}{index} (int \+\_\+row, int \+\_\+column, const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em Get the Model\+Index at given row,column. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}\label{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}} 
Q\+Model\+Index \hyperlink{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}{parent} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the parent Model\+Index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}\label{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}} 
int \hyperlink{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}{row\+Count} (const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em get the number of rows \end{DoxyCompactList}\item 
int \hyperlink{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}{column\+Count} (const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const
\begin{DoxyCompactList}\small\item\em Return the number of columns. \end{DoxyCompactList}\item 
bool \hyperlink{a10096_a29d154fc78f244967115288440b74b75}{set\+Data} (const Q\+Model\+Index \&\+\_\+index, const Q\+Variant \&\+\_\+value, int \+\_\+role)
\begin{DoxyCompactList}\small\item\em Set Data at \textquotesingle{}index\textquotesingle{} to \textquotesingle{}value\textquotesingle{}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ Drag and Drop}\par
\begin{DoxyCompactItemize}
\item 
Qt\+::\+Drop\+Actions \hyperlink{a10096_ad1d06d65f5752772657c6c84ae970953}{supported\+Drop\+Actions} () const
\begin{DoxyCompactList}\small\item\em supported drag \& Drop actions \end{DoxyCompactList}\item 
Q\+String\+List \hyperlink{a10096_a12f7c355fed5ca5fcf9602c0de834040}{mime\+Types} () const
\begin{DoxyCompactList}\small\item\em stores the mime\+Type for Drag \& Drop \end{DoxyCompactList}\item 
Q\+Mime\+Data $\ast$ \hyperlink{a10096_a8c4faa828dbbe92df8755182b2a99723}{mime\+Data} (const Q\+Model\+Index\+List \&indexes) const
\begin{DoxyCompactList}\small\item\em get the mime\+Data for a given Model\+Index \end{DoxyCompactList}\item 
bool \hyperlink{a10096_a2bfd4082df0b5b609e13ade9ebe725fb}{drop\+Mime\+Data} (const Q\+Mime\+Data $\ast$\hyperlink{a10096_ab77a9938f178334289dd479726b05f91}{data}, Qt\+::\+Drop\+Action action, int row, int column, const Q\+Model\+Index \&\hyperlink{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}{parent})
\begin{DoxyCompactList}\small\item\em This is called when mime\+Data is dropped. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Internal Data\+Structure (the Tree\+Item Tree)}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a10092}{Tree\+Item} $\ast$ \hyperlink{a10096_ab29a74f3b4f8d83b0be6e38fee13fa9a}{root\+Item\+\_\+}
\begin{DoxyCompactList}\small\item\em Root item of the tree. \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a10096_af867dd3680bd5ef48aa738d75b673963}{get\+Model\+Index} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+object, int \+\_\+column)
\begin{DoxyCompactList}\small\item\em Return the Model\+Index corresponding to a given \hyperlink{a10092}{Tree\+Item} and Column. \end{DoxyCompactList}\item 
bool \hyperlink{a10096_a0cb484387996dbf23f145000caacd8b1}{is\+Root} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+item)
\begin{DoxyCompactList}\small\item\em Check if the given item is the root item. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}\label{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}} 
bool \hyperlink{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}{get\+Object\+Name} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+object, Q\+String \&\+\_\+name)
\begin{DoxyCompactList}\small\item\em Get the name of a given object. \end{DoxyCompactList}\item 
\hyperlink{a10092}{Tree\+Item} $\ast$ \hyperlink{a10096_ae7fa98baba0cd9157a0e124303ba9577}{get\+Item} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a553ad64bb4fe86f82f890d390c3edb67}\label{a10096_a553ad64bb4fe86f82f890d390c3edb67}} 
\hyperlink{a10092}{Tree\+Item} $\ast$ \hyperlink{a10096_a553ad64bb4fe86f82f890d390c3edb67}{get\+Item} (const int \+\_\+id) const
\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a10092}{Tree\+Item} corresponding to a given Open\+Flipper Object\+ID. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a10096_a174f75e4d56ce53c119a9f9b2152f104}{item\+Name} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the name of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
int \hyperlink{a10096_a8e54e47323ec1d7045bf90a86b5af785}{item\+Id} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the id of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
void \hyperlink{a10096_ad2e09a6eee7e7513e9d854b6f5d2ff50}{object\+Changed} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em The object with the given id has been changed. Check if model also has to be changed. \end{DoxyCompactList}\item 
void \hyperlink{a10096_ae58fb3c53884a8b3aab527bb051a6dda}{object\+Added} (\hyperlink{a07036}{Base\+Object} $\ast$\+\_\+object)
\begin{DoxyCompactList}\small\item\em The object with the given id has been added. add it to the internal tree. \end{DoxyCompactList}\item 
void \hyperlink{a10096_a83d62f1baad7a0f3ee678cd25b8198fe}{object\+Deleted} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em The object with the given id has been deleted. delete it from the internal tree. \end{DoxyCompactList}\item 
void \hyperlink{a10096_a8e3d8a114aff5a3d005c21244144d3a2}{move\+Item} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+item, \hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+parent)
\begin{DoxyCompactList}\small\item\em move the item to a new parent \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_af867dd3680bd5ef48aa738d75b673963}\label{a10096_af867dd3680bd5ef48aa738d75b673963}} 
Q\+Model\+Index \hyperlink{a10096_af867dd3680bd5ef48aa738d75b673963}{get\+Model\+Index} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+object, int \+\_\+column)
\begin{DoxyCompactList}\small\item\em Return the Model\+Index corresponding to a given \hyperlink{a10092}{Tree\+Item} and Column. \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a10096_ae3621abf9f7648bb683c555b01ed24dc}{get\+Model\+Index} (int \+\_\+id, int \+\_\+column)
\begin{DoxyCompactList}\small\item\em Return the Model\+Index corresponding to a given object id and Column. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a0cb484387996dbf23f145000caacd8b1}\label{a10096_a0cb484387996dbf23f145000caacd8b1}} 
bool \hyperlink{a10096_a0cb484387996dbf23f145000caacd8b1}{is\+Root} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+item)
\begin{DoxyCompactList}\small\item\em Check if the given item is the root item. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}\label{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}} 
bool \hyperlink{a10096_a463f70d6ab97b6cac26d2fd9399e8d0b}{get\+Object\+Name} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+object, Q\+String \&\+\_\+name)
\begin{DoxyCompactList}\small\item\em Get the name of a given object. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_aeaeffaf2b2def01b760835637f94d225}\label{a10096_aeaeffaf2b2def01b760835637f94d225}} 
\hyperlink{a10092}{Tree\+Item} $\ast$ \hyperlink{a10096_aeaeffaf2b2def01b760835637f94d225}{get\+Item} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a174f75e4d56ce53c119a9f9b2152f104}\label{a10096_a174f75e4d56ce53c119a9f9b2152f104}} 
Q\+String \hyperlink{a10096_a174f75e4d56ce53c119a9f9b2152f104}{item\+Name} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the name of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a8e54e47323ec1d7045bf90a86b5af785}\label{a10096_a8e54e47323ec1d7045bf90a86b5af785}} 
int \hyperlink{a10096_a8e54e47323ec1d7045bf90a86b5af785}{item\+Id} (const Q\+Model\+Index \&\+\_\+index) const
\begin{DoxyCompactList}\small\item\em Get the id of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a4f5621949653baabef0b954303d8d7b7}\label{a10096_a4f5621949653baabef0b954303d8d7b7}} 
void \hyperlink{a10096_a4f5621949653baabef0b954303d8d7b7}{object\+Changed} (int id\+\_\+)
\begin{DoxyCompactList}\small\item\em The object with the given id has been changed. Check if model also has to be changed. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_ae58fb3c53884a8b3aab527bb051a6dda}\label{a10096_ae58fb3c53884a8b3aab527bb051a6dda}} 
void \hyperlink{a10096_ae58fb3c53884a8b3aab527bb051a6dda}{object\+Added} (\hyperlink{a07036}{Base\+Object} $\ast$\+\_\+object)
\begin{DoxyCompactList}\small\item\em The object with the given id has been added. add it to the internal tree. \end{DoxyCompactList}\item 
void \hyperlink{a10096_aa6960ebff6e473425f24ef65aa56e3d0}{object\+Added} (\hyperlink{a07036}{Base\+Object} $\ast$\+\_\+object, \hyperlink{a07036}{Base\+Object} $\ast$\+\_\+parent)
\begin{DoxyCompactList}\small\item\em The object with the given id has been added. add it to the internal tree. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a865f36d96eddfd549b97bb05f5b86e81}\label{a10096_a865f36d96eddfd549b97bb05f5b86e81}} 
void \hyperlink{a10096_a865f36d96eddfd549b97bb05f5b86e81}{object\+Deleted} (int id\+\_\+)
\begin{DoxyCompactList}\small\item\em The object with the given id has been deleted. delete it from the internal tree. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10096_a8e3d8a114aff5a3d005c21244144d3a2}\label{a10096_a8e3d8a114aff5a3d005c21244144d3a2}} 
void \hyperlink{a10096_a8e3d8a114aff5a3d005c21244144d3a2}{move\+Item} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+item, \hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+parent)
\begin{DoxyCompactList}\small\item\em move the item to a new parent \end{DoxyCompactList}\item 
void \hyperlink{a10096_ad10da570c03e86f30b08dab248eb07b5}{propagate\+Upwards} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+obj, int \+\_\+column, bool \+\_\+value)
\begin{DoxyCompactList}\small\item\em Recursively update a column up to the root of the tree. \end{DoxyCompactList}\item 
void \hyperlink{a10096_a7b2bc9e82b9b1c457232ce728cd2a200}{propagate\+Downwards} (\hyperlink{a10092}{Tree\+Item} $\ast$\+\_\+obj, int \+\_\+column)
\begin{DoxyCompactList}\small\item\em Recursively update a column up to the root of the tree. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 53 of file Tree\+Model.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a10096_a605d740105b2e3d86e765796f4cd3876}\label{a10096_a605d740105b2e3d86e765796f4cd3876}} 
\index{Tree\+Model@{Tree\+Model}!Tree\+Model@{Tree\+Model}}
\index{Tree\+Model@{Tree\+Model}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{Tree\+Model()}{TreeModel()}}
{\footnotesize\ttfamily Tree\+Model\+::\+Tree\+Model (\begin{DoxyParamCaption}\item[{Q\+Object $\ast$}]{\+\_\+parent = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



Constructor. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+parent} & parent Object \\
\hline
\end{DoxyParams}


Definition at line 61 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_af0998d55a63c2b18be1f03e4e8567926}\label{a10096_af0998d55a63c2b18be1f03e4e8567926}} 
\index{Tree\+Model@{Tree\+Model}!````~Tree\+Model@{$\sim$\+Tree\+Model}}
\index{````~Tree\+Model@{$\sim$\+Tree\+Model}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{$\sim$\+Tree\+Model()}{~TreeModel()}}
{\footnotesize\ttfamily Tree\+Model\+::$\sim$\+Tree\+Model (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Destructor. 



Definition at line 72 of file Tree\+Model.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}\label{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}} 
\index{Tree\+Model@{Tree\+Model}!column\+Count@{column\+Count}}
\index{column\+Count@{column\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{column\+Count()}{columnCount()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily int Tree\+Model\+::column\+Count (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()} }\end{DoxyParamCaption}) const}



Return the number of columns. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+parent} & unused \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
return always 2 
\end{DoxyReturn}
\mbox{\Hypertarget{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}\label{a10096_a9ca6abbc6e4d4deff4fc2add03b1bc5a}} 
\index{Tree\+Model@{Tree\+Model}!column\+Count@{column\+Count}}
\index{column\+Count@{column\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{column\+Count()}{columnCount()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily int Tree\+Model\+::column\+Count (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()} }\end{DoxyParamCaption}) const}



Return the number of columns. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+parent} & unused \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
return always 4 
\end{DoxyReturn}


Definition at line 80 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ab77a9938f178334289dd479726b05f91}\label{a10096_ab77a9938f178334289dd479726b05f91}} 
\index{Tree\+Model@{Tree\+Model}!data@{data}}
\index{data@{data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{data()}{data()}}
{\footnotesize\ttfamily Q\+Variant Tree\+Model\+::data (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index,  }\item[{int}]{\+\_\+role }\end{DoxyParamCaption}) const}



Get the data of the corresponding entry. 

Returns the data stored under the given role for the item referred to by the index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index that defines the item in the tree \\
\hline
{\em \+\_\+role} & defines the kind of data requested \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
requested data 
\end{DoxyReturn}


Definition at line 95 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a2bfd4082df0b5b609e13ade9ebe725fb}\label{a10096_a2bfd4082df0b5b609e13ade9ebe725fb}} 
\index{Tree\+Model@{Tree\+Model}!drop\+Mime\+Data@{drop\+Mime\+Data}}
\index{drop\+Mime\+Data@{drop\+Mime\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{drop\+Mime\+Data()}{dropMimeData()}}
{\footnotesize\ttfamily bool Tree\+Model\+::drop\+Mime\+Data (\begin{DoxyParamCaption}\item[{const Q\+Mime\+Data $\ast$}]{data,  }\item[{Qt\+::\+Drop\+Action}]{action,  }\item[{int}]{row,  }\item[{int}]{column,  }\item[{const Q\+Model\+Index \&}]{parent }\end{DoxyParamCaption})}



This is called when mime\+Data is dropped. 


\begin{DoxyParams}{Parameters}
{\em data} & The dropped data \\
\hline
{\em action} & The definition of the drop\+Action which occurred \\
\hline
{\em row} & Unused \\
\hline
{\em column} & Unused \\
\hline
{\em parent} & Parent under which the drop occurred \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
returns if the drop was successful 
\end{DoxyReturn}


Definition at line 659 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_aec6b58064928442061c050005ead799f}\label{a10096_aec6b58064928442061c050005ead799f}} 
\index{Tree\+Model@{Tree\+Model}!flags@{flags}}
\index{flags@{flags}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{flags()}{flags()}}
{\footnotesize\ttfamily Qt\+::\+Item\+Flags Tree\+Model\+::flags (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index }\end{DoxyParamCaption}) const}



return the types of the corresponding entry 

Returns the item flags for the given index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & Model\+Index that defines an item in the tree \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
flags for the given Model\+Index 
\end{DoxyReturn}


Definition at line 221 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ae7fa98baba0cd9157a0e124303ba9577}\label{a10096_ae7fa98baba0cd9157a0e124303ba9577}} 
\index{Tree\+Model@{Tree\+Model}!get\+Item@{get\+Item}}
\index{get\+Item@{get\+Item}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{get\+Item()}{getItem()}}
{\footnotesize\ttfamily \hyperlink{a10092}{Tree\+Item} $\ast$ Tree\+Model\+::get\+Item (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index }\end{DoxyParamCaption}) const}



Get the \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. 

Return item at given index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
item at given index 
\end{DoxyReturn}


Definition at line 508 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_af867dd3680bd5ef48aa738d75b673963}\label{a10096_af867dd3680bd5ef48aa738d75b673963}} 
\index{Tree\+Model@{Tree\+Model}!get\+Model\+Index@{get\+Model\+Index}}
\index{get\+Model\+Index@{get\+Model\+Index}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{get\+Model\+Index()}{getModelIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Q\+Model\+Index Tree\+Model\+::get\+Model\+Index (\begin{DoxyParamCaption}\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+object,  }\item[{int}]{\+\_\+column }\end{DoxyParamCaption})}



Return the Model\+Index corresponding to a given \hyperlink{a10092}{Tree\+Item} and Column. 

Return index of given item.

Warning\+: Only use this function if you know that all Model\+Indices are created


\begin{DoxyParams}{Parameters}
{\em \+\_\+object} & an object \\
\hline
{\em \+\_\+column} & a column \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
index of object and column 
\end{DoxyReturn}


Definition at line 562 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ae3621abf9f7648bb683c555b01ed24dc}\label{a10096_ae3621abf9f7648bb683c555b01ed24dc}} 
\index{Tree\+Model@{Tree\+Model}!get\+Model\+Index@{get\+Model\+Index}}
\index{get\+Model\+Index@{get\+Model\+Index}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{get\+Model\+Index()}{getModelIndex()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Q\+Model\+Index Tree\+Model\+::get\+Model\+Index (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id,  }\item[{int}]{\+\_\+column }\end{DoxyParamCaption})}



Return the Model\+Index corresponding to a given object id and Column. 

Return index of given item.

Warning\+: Only use this function if you know that all Model\+Indices are created


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & an object id \\
\hline
{\em \+\_\+column} & a column \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
index of object and column 
\end{DoxyReturn}


Definition at line 494 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}\label{a10096_a86b9d1f0b6b86b3c8908d7020fb67083}} 
\index{Tree\+Model@{Tree\+Model}!header\+Data@{header\+Data}}
\index{header\+Data@{header\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{header\+Data()}{headerData()}}
{\footnotesize\ttfamily Q\+Variant Tree\+Model\+::header\+Data (\begin{DoxyParamCaption}\item[{int}]{\+\_\+section,  }\item[{Qt\+::\+Orientation}]{\+\_\+orientation,  }\item[{int}]{\+\_\+role = {\ttfamily Qt\+:\+:DisplayRole} }\end{DoxyParamCaption}) const}



return the header data of the model 

Returns the data in the header.


\begin{DoxyParams}{Parameters}
{\em \+\_\+section} & the column in the header \\
\hline
{\em \+\_\+orientation} & header orientation (only horizontal handled) \\
\hline
{\em \+\_\+role} & the role that defines the type of data \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the requested data 
\end{DoxyReturn}


Definition at line 258 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_afba4d5490a93aa7d0d3cc86425622560}\label{a10096_afba4d5490a93aa7d0d3cc86425622560}} 
\index{Tree\+Model@{Tree\+Model}!index@{index}}
\index{index@{index}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{index()}{index()}}
{\footnotesize\ttfamily Q\+Model\+Index Tree\+Model\+::index (\begin{DoxyParamCaption}\item[{int}]{\+\_\+row,  }\item[{int}]{\+\_\+column,  }\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()} }\end{DoxyParamCaption}) const}



Get the Model\+Index at given row,column. 

Returns the index of the item in the model specified by the given row, column and parent index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+row} & the row \\
\hline
{\em \+\_\+column} & the column \\
\hline
{\em \+\_\+parent} & parent item \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
corresponding Model\+Index 
\end{DoxyReturn}


Definition at line 285 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a0cb484387996dbf23f145000caacd8b1}\label{a10096_a0cb484387996dbf23f145000caacd8b1}} 
\index{Tree\+Model@{Tree\+Model}!is\+Root@{is\+Root}}
\index{is\+Root@{is\+Root}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{is\+Root()}{isRoot()}}
{\footnotesize\ttfamily bool Tree\+Model\+::is\+Root (\begin{DoxyParamCaption}\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+item }\end{DoxyParamCaption})}



Check if the given item is the root item. 

return if an object is equal to the root object


\begin{DoxyParams}{Parameters}
{\em \+\_\+item} & the item to be checked \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
is it the root object? 
\end{DoxyReturn}


Definition at line 592 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a8e54e47323ec1d7045bf90a86b5af785}\label{a10096_a8e54e47323ec1d7045bf90a86b5af785}} 
\index{Tree\+Model@{Tree\+Model}!item\+Id@{item\+Id}}
\index{item\+Id@{item\+Id}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{item\+Id()}{itemId()}}
{\footnotesize\ttfamily int Tree\+Model\+::item\+Id (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index }\end{DoxyParamCaption}) const}



Get the id of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. 

Return item-\/id at given index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
item-\/id at given index 
\end{DoxyReturn}


Definition at line 542 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a174f75e4d56ce53c119a9f9b2152f104}\label{a10096_a174f75e4d56ce53c119a9f9b2152f104}} 
\index{Tree\+Model@{Tree\+Model}!item\+Name@{item\+Name}}
\index{item\+Name@{item\+Name}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{item\+Name()}{itemName()}}
{\footnotesize\ttfamily Q\+String Tree\+Model\+::item\+Name (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index }\end{DoxyParamCaption}) const}



Get the name of a \hyperlink{a10092}{Tree\+Item} corresponding to a given Model\+Index. 

Return item-\/name at given index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & A Model\+Index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
name of the item at given index
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
name of the item at given index 
\end{DoxyReturn}


Definition at line 525 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a8c4faa828dbbe92df8755182b2a99723}\label{a10096_a8c4faa828dbbe92df8755182b2a99723}} 
\index{Tree\+Model@{Tree\+Model}!mime\+Data@{mime\+Data}}
\index{mime\+Data@{mime\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{mime\+Data()}{mimeData()}}
{\footnotesize\ttfamily Q\+Mime\+Data $\ast$ Tree\+Model\+::mime\+Data (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index\+List \&}]{\+\_\+indexes }\end{DoxyParamCaption}) const}



get the mime\+Data for a given Model\+Index 

generate mime\+Data for given Model\+Indexes


\begin{DoxyParams}{Parameters}
{\em \+\_\+indexes} & list of Model\+Indexes \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the mime\+Data 
\end{DoxyReturn}


Definition at line 631 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a12f7c355fed5ca5fcf9602c0de834040}\label{a10096_a12f7c355fed5ca5fcf9602c0de834040}} 
\index{Tree\+Model@{Tree\+Model}!mime\+Types@{mime\+Types}}
\index{mime\+Types@{mime\+Types}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{mime\+Types()}{mimeTypes()}}
{\footnotesize\ttfamily Q\+String\+List Tree\+Model\+::mime\+Types (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



stores the mime\+Type for Drag \& Drop 

return the mime\+Type for drag \& drop

\begin{DoxyReturn}{Returns}
the mime\+Type 
\end{DoxyReturn}


Definition at line 616 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a8e3d8a114aff5a3d005c21244144d3a2}\label{a10096_a8e3d8a114aff5a3d005c21244144d3a2}} 
\index{Tree\+Model@{Tree\+Model}!move\+Item@{move\+Item}}
\index{move\+Item@{move\+Item}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{move\+Item()}{moveItem()}}
{\footnotesize\ttfamily void Tree\+Model\+::move\+Item (\begin{DoxyParamCaption}\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+item,  }\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+parent }\end{DoxyParamCaption})}



move the item to a new parent 


\begin{DoxyParams}{Parameters}
{\em \+\_\+item} & the item \\
\hline
{\em \+\_\+parent} & new parent \\
\hline
\end{DoxyParams}


Definition at line 488 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ae58fb3c53884a8b3aab527bb051a6dda}\label{a10096_ae58fb3c53884a8b3aab527bb051a6dda}} 
\index{Tree\+Model@{Tree\+Model}!object\+Added@{object\+Added}}
\index{object\+Added@{object\+Added}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{object\+Added()}{objectAdded()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Tree\+Model\+::object\+Added (\begin{DoxyParamCaption}\item[{\hyperlink{a07036}{Base\+Object} $\ast$}]{\+\_\+object }\end{DoxyParamCaption})}



The object with the given id has been added. add it to the internal tree. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+object} & The added object \\
\hline
\end{DoxyParams}


Definition at line 426 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_aa6960ebff6e473425f24ef65aa56e3d0}\label{a10096_aa6960ebff6e473425f24ef65aa56e3d0}} 
\index{Tree\+Model@{Tree\+Model}!object\+Added@{object\+Added}}
\index{object\+Added@{object\+Added}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{object\+Added()}{objectAdded()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Tree\+Model\+::object\+Added (\begin{DoxyParamCaption}\item[{\hyperlink{a07036}{Base\+Object} $\ast$}]{\+\_\+object,  }\item[{\hyperlink{a07036}{Base\+Object} $\ast$}]{\+\_\+parent }\end{DoxyParamCaption})}



The object with the given id has been added. add it to the internal tree. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+object} & The added object \\
\hline
{\em \+\_\+parent} & The new parent object \\
\hline
\end{DoxyParams}


Definition at line 328 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ad2e09a6eee7e7513e9d854b6f5d2ff50}\label{a10096_ad2e09a6eee7e7513e9d854b6f5d2ff50}} 
\index{Tree\+Model@{Tree\+Model}!object\+Changed@{object\+Changed}}
\index{object\+Changed@{object\+Changed}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{object\+Changed()}{objectChanged()}}
{\footnotesize\ttfamily void Tree\+Model\+::object\+Changed (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})}



The object with the given id has been changed. Check if model also has to be changed. 

The object with the given id has been changed. Update the model.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 353 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a83d62f1baad7a0f3ee678cd25b8198fe}\label{a10096_a83d62f1baad7a0f3ee678cd25b8198fe}} 
\index{Tree\+Model@{Tree\+Model}!object\+Deleted@{object\+Deleted}}
\index{object\+Deleted@{object\+Deleted}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{object\+Deleted()}{objectDeleted()}}
{\footnotesize\ttfamily void Tree\+Model\+::object\+Deleted (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})}



The object with the given id has been deleted. delete it from the internal tree. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & id of the object \\
\hline
\end{DoxyParams}


Definition at line 461 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}\label{a10096_aa1b2a0447e47d2d4eb7445096291e7ac}} 
\index{Tree\+Model@{Tree\+Model}!parent@{parent}}
\index{parent@{parent}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{parent()}{parent()}}
{\footnotesize\ttfamily Q\+Model\+Index Tree\+Model\+::parent (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index }\end{DoxyParamCaption}) const}



Get the parent Model\+Index. 

Return index of parent item.


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
parent of the given Model\+Index 
\end{DoxyReturn}


Definition at line 312 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a7b2bc9e82b9b1c457232ce728cd2a200}\label{a10096_a7b2bc9e82b9b1c457232ce728cd2a200}} 
\index{Tree\+Model@{Tree\+Model}!propagate\+Downwards@{propagate\+Downwards}}
\index{propagate\+Downwards@{propagate\+Downwards}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{propagate\+Downwards()}{propagateDownwards()}}
{\footnotesize\ttfamily void Tree\+Model\+::propagate\+Downwards (\begin{DoxyParamCaption}\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+item,  }\item[{int}]{\+\_\+column }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Recursively update a column up to the root of the tree. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+item} & item to start with \\
\hline
{\em \+\_\+column} & column which needs the update (1\+: visibility) \\
\hline
\end{DoxyParams}


Definition at line 543 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ad10da570c03e86f30b08dab248eb07b5}\label{a10096_ad10da570c03e86f30b08dab248eb07b5}} 
\index{Tree\+Model@{Tree\+Model}!propagate\+Upwards@{propagate\+Upwards}}
\index{propagate\+Upwards@{propagate\+Upwards}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{propagate\+Upwards()}{propagateUpwards()}}
{\footnotesize\ttfamily void Tree\+Model\+::propagate\+Upwards (\begin{DoxyParamCaption}\item[{\hyperlink{a10092}{Tree\+Item} $\ast$}]{\+\_\+item,  }\item[{int}]{\+\_\+column,  }\item[{bool}]{\+\_\+value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Recursively update a column up to the root of the tree. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+item} & item to start with \\
\hline
{\em \+\_\+column} & column which needs the update (1\+: visibility) \\
\hline
{\em \+\_\+value} & value which will be assigned \\
\hline
\end{DoxyParams}


Definition at line 513 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}\label{a10096_a64a60f056ff6ca9ff5a54b6d223b8d7a}} 
\index{Tree\+Model@{Tree\+Model}!row\+Count@{row\+Count}}
\index{row\+Count@{row\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{row\+Count()}{rowCount()}}
{\footnotesize\ttfamily int Tree\+Model\+::row\+Count (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()} }\end{DoxyParamCaption}) const}



get the number of rows 

Returns the number of rows under given parent.


\begin{DoxyParams}{Parameters}
{\em \+\_\+parent} & parent Item \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
number of rows that are children of given parent 
\end{DoxyReturn}


Definition at line 334 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_a29d154fc78f244967115288440b74b75}\label{a10096_a29d154fc78f244967115288440b74b75}} 
\index{Tree\+Model@{Tree\+Model}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{set\+Data()}{setData()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Tree\+Model\+::set\+Data (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index,  }\item[{const Q\+Variant \&}]{\+\_\+value,  }\item[{int}]{\+\_\+role }\end{DoxyParamCaption})}



Set Data at \textquotesingle{}index\textquotesingle{} to \textquotesingle{}value\textquotesingle{}. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index defining the positin in the model \\
\hline
{\em \+\_\+value} & the new value \\
\hline
{\em \+\_\+role} & unused \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
return if the data was set successfully 
\end{DoxyReturn}
\mbox{\Hypertarget{a10096_a29d154fc78f244967115288440b74b75}\label{a10096_a29d154fc78f244967115288440b74b75}} 
\index{Tree\+Model@{Tree\+Model}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{set\+Data()}{setData()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Tree\+Model\+::set\+Data (\begin{DoxyParamCaption}\item[{const Q\+Model\+Index \&}]{\+\_\+index,  }\item[{const Q\+Variant \&}]{\+\_\+value,  }\item[{int}]{\+\_\+role }\end{DoxyParamCaption})}



Set Data at \textquotesingle{}index\textquotesingle{} to \textquotesingle{}value\textquotesingle{}. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+index} & a Model\+Index defining the positin in the model \\
\hline
{\em \+\_\+value} & the new value \\
\hline
{\em \+\_\+role} & unused \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
return if the data was set successfully 
\end{DoxyReturn}


Definition at line 575 of file Tree\+Model.\+cc.

\mbox{\Hypertarget{a10096_ad1d06d65f5752772657c6c84ae970953}\label{a10096_ad1d06d65f5752772657c6c84ae970953}} 
\index{Tree\+Model@{Tree\+Model}!supported\+Drop\+Actions@{supported\+Drop\+Actions}}
\index{supported\+Drop\+Actions@{supported\+Drop\+Actions}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{supported\+Drop\+Actions()}{supportedDropActions()}}
{\footnotesize\ttfamily Qt\+::\+Drop\+Actions Tree\+Model\+::supported\+Drop\+Actions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



supported drag \& Drop actions 

return the supported drop actions

\begin{DoxyReturn}{Returns}
drop actions 
\end{DoxyReturn}


Definition at line 604 of file Tree\+Model.\+cc.



\subsection{Member Data Documentation}
\mbox{\Hypertarget{a10096_ab29a74f3b4f8d83b0be6e38fee13fa9a}\label{a10096_ab29a74f3b4f8d83b0be6e38fee13fa9a}} 
\index{Tree\+Model@{Tree\+Model}!root\+Item\+\_\+@{root\+Item\+\_\+}}
\index{root\+Item\+\_\+@{root\+Item\+\_\+}!Tree\+Model@{Tree\+Model}}
\subsubsection{\texorpdfstring{root\+Item\+\_\+}{rootItem\_}}
{\footnotesize\ttfamily \hyperlink{a10092}{Tree\+Item} $\ast$ Tree\+Model\+::root\+Item\+\_\+\hspace{0.3cm}{\ttfamily [private]}}



Root item of the tree. 

Rootitem of the tree. 

Definition at line 161 of file Tree\+Model.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin-\/\+Datacontrol/Tree\+Model.\+hh\item 
Plugin-\/\+Datacontrol/Tree\+Model.\+cc\end{DoxyCompactItemize}
