\hypertarget{a01325}{\section{Tree\+Model Class Reference}
\label{a01325}\index{Tree\+Model@{Tree\+Model}}
}
Inheritance diagram for Tree\+Model\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01325}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01325_a33d726e3eed272cfa6bbff6eb07b8a4d}{void {\bfseries data\+Changed\+Inside} (int \+\_\+id, int \+\_\+column, const Q\+Variant \&\+\_\+value)}\label{a01325_a33d726e3eed272cfa6bbff6eb07b8a4d}

\item 
\hypertarget{a01325_a3ddc1bd8a6950328acb6dcc6eeb717c7}{void {\bfseries move\+Base\+Object} (int \+\_\+id, int \+\_\+new\+Parent\+Id)}\label{a01325_a3ddc1bd8a6950328acb6dcc6eeb717c7}

\item 
\hypertarget{a01325_a33d726e3eed272cfa6bbff6eb07b8a4d}{void {\bfseries data\+Changed\+Inside} (int \+\_\+id, int \+\_\+column, const Q\+Variant \&\+\_\+value)}\label{a01325_a33d726e3eed272cfa6bbff6eb07b8a4d}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01325_a605d740105b2e3d86e765796f4cd3876}{Tree\+Model} (Q\+Object $\ast$\+\_\+parent=0)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hyperlink{a01325_af0998d55a63c2b18be1f03e4e8567926}{$\sim$\+Tree\+Model} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a01325_a605d740105b2e3d86e765796f4cd3876}{\hyperlink{a01325_a605d740105b2e3d86e765796f4cd3876}{Tree\+Model} (Q\+Object $\ast$\+\_\+parent=0)}\label{a01325_a605d740105b2e3d86e765796f4cd3876}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a01325_af0998d55a63c2b18be1f03e4e8567926}{\hyperlink{a01325_af0998d55a63c2b18be1f03e4e8567926}{$\sim$\+Tree\+Model} ()}\label{a01325_af0998d55a63c2b18be1f03e4e8567926}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf inherited from Q\+Abstract\+Item\+Model}\par
\begin{DoxyCompactItemize}
\item 
Q\+Variant \hyperlink{a01325_a033e358ee7132464e27d3dccb7d25f6f}{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{a01325_ad4b3f418e57a496b28861fefa6bb66ba}{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{a01325_ad1dd731fb5f87ed9a54732152b3b5608}{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{a01325_a105d7a0a26f970aa38c12076e9e2bc71}{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{a01325_a0f3317f198c5e93440d95f9f007145f5}{parent} (const Q\+Model\+Index \&\+\_\+index) const 
\begin{DoxyCompactList}\small\item\em Get the parent Model\+Index. \end{DoxyCompactList}\item 
int \hyperlink{a01325_a7bf525fab49bf80ff9b4589beedf9305}{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{a01325_afa08f4fae3decb0d3369bca0b78a1669}{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{a01325_a29d154fc78f244967115288440b74b75}{set\+Data} (const Q\+Model\+Index \&\+\_\+index, const Q\+Variant \&\+\_\+value, int \+\_\+role)
\begin{DoxyCompactList}\small\item\em Set Data at 'index' to 'value'. \end{DoxyCompactList}\item 
\hypertarget{a01325_a033e358ee7132464e27d3dccb7d25f6f}{Q\+Variant \hyperlink{a01325_a033e358ee7132464e27d3dccb7d25f6f}{data} (const Q\+Model\+Index \&\+\_\+index, int \+\_\+role) const }\label{a01325_a033e358ee7132464e27d3dccb7d25f6f}

\begin{DoxyCompactList}\small\item\em Get the data of the corresponding entry. \end{DoxyCompactList}\item 
\hypertarget{a01325_ad4b3f418e57a496b28861fefa6bb66ba}{Qt\+::\+Item\+Flags \hyperlink{a01325_ad4b3f418e57a496b28861fefa6bb66ba}{flags} (const Q\+Model\+Index \&\+\_\+index) const }\label{a01325_ad4b3f418e57a496b28861fefa6bb66ba}

\begin{DoxyCompactList}\small\item\em return the types of the corresponding entry \end{DoxyCompactList}\item 
\hypertarget{a01325_ad1dd731fb5f87ed9a54732152b3b5608}{Q\+Variant \hyperlink{a01325_ad1dd731fb5f87ed9a54732152b3b5608}{header\+Data} (int \+\_\+section, Qt\+::\+Orientation \+\_\+orientation, int \+\_\+role=Qt\+::\+Display\+Role) const }\label{a01325_ad1dd731fb5f87ed9a54732152b3b5608}

\begin{DoxyCompactList}\small\item\em return the header data of the model \end{DoxyCompactList}\item 
\hypertarget{a01325_a105d7a0a26f970aa38c12076e9e2bc71}{Q\+Model\+Index \hyperlink{a01325_a105d7a0a26f970aa38c12076e9e2bc71}{index} (int \+\_\+row, int \+\_\+column, const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const }\label{a01325_a105d7a0a26f970aa38c12076e9e2bc71}

\begin{DoxyCompactList}\small\item\em Get the Model\+Index at given row,column. \end{DoxyCompactList}\item 
\hypertarget{a01325_a0f3317f198c5e93440d95f9f007145f5}{Q\+Model\+Index \hyperlink{a01325_a0f3317f198c5e93440d95f9f007145f5}{parent} (const Q\+Model\+Index \&\+\_\+index) const }\label{a01325_a0f3317f198c5e93440d95f9f007145f5}

\begin{DoxyCompactList}\small\item\em Get the parent Model\+Index. \end{DoxyCompactList}\item 
\hypertarget{a01325_a7bf525fab49bf80ff9b4589beedf9305}{int \hyperlink{a01325_a7bf525fab49bf80ff9b4589beedf9305}{row\+Count} (const Q\+Model\+Index \&\+\_\+parent=Q\+Model\+Index()) const }\label{a01325_a7bf525fab49bf80ff9b4589beedf9305}

\begin{DoxyCompactList}\small\item\em get the number of rows \end{DoxyCompactList}\item 
int \hyperlink{a01325_afa08f4fae3decb0d3369bca0b78a1669}{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{a01325_a29d154fc78f244967115288440b74b75}{set\+Data} (const Q\+Model\+Index \&\+\_\+index, const Q\+Variant \&\+\_\+value, int \+\_\+role)
\begin{DoxyCompactList}\small\item\em Set Data at 'index' to 'value'. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}{\bf Drag and Drop}\par
\begin{DoxyCompactItemize}
\item 
Qt\+::\+Drop\+Actions \hyperlink{a01325_a9235ae7e8d3a9f623b998e5fbed8692b}{supported\+Drop\+Actions} () const 
\begin{DoxyCompactList}\small\item\em supported drag \& Drop actions \end{DoxyCompactList}\item 
Q\+String\+List \hyperlink{a01325_a8bdf203664d126a6e420f6cd207f8251}{mime\+Types} () const 
\begin{DoxyCompactList}\small\item\em stores the mime\+Type for Drag \& Drop \end{DoxyCompactList}\item 
Q\+Mime\+Data $\ast$ \hyperlink{a01325_ac527e9fedb0f87b8ca5706f856ca9c03}{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{a01325_a2bfd4082df0b5b609e13ade9ebe725fb}{drop\+Mime\+Data} (const Q\+Mime\+Data $\ast$\hyperlink{a01325_a033e358ee7132464e27d3dccb7d25f6f}{data}, Qt\+::\+Drop\+Action action, int row, int column, const Q\+Model\+Index \&\hyperlink{a01325_a0f3317f198c5e93440d95f9f007145f5}{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{a01323}{Tree\+Item} $\ast$ \hyperlink{a01325_ab29a74f3b4f8d83b0be6e38fee13fa9a}{root\+Item\+\_\+}
\begin{DoxyCompactList}\small\item\em Root item of the tree. \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a01325_af867dd3680bd5ef48aa738d75b673963}{get\+Model\+Index} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+object, int \+\_\+column)
\begin{DoxyCompactList}\small\item\em Return the Model\+Index corresponding to a given \hyperlink{a01323}{Tree\+Item} and Column. \end{DoxyCompactList}\item 
bool \hyperlink{a01325_a0cb484387996dbf23f145000caacd8b1}{is\+Root} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+item)
\begin{DoxyCompactList}\small\item\em Check if the given item is the root item. \end{DoxyCompactList}\item 
\hypertarget{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}{bool \hyperlink{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}{get\+Object\+Name} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+object, Q\+String \&\+\_\+name)}\label{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}

\begin{DoxyCompactList}\small\item\em Get the name of a given object. \end{DoxyCompactList}\item 
\hyperlink{a01323}{Tree\+Item} $\ast$ \hyperlink{a01325_a777ff1650ff8c13e0cfb0635e490414b}{get\+Item} (const Q\+Model\+Index \&\+\_\+index) const 
\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\hypertarget{a01325_aad522ff10923afd0ba11f244845cdfdd}{\hyperlink{a01323}{Tree\+Item} $\ast$ \hyperlink{a01325_aad522ff10923afd0ba11f244845cdfdd}{get\+Item} (const int \+\_\+id) const }\label{a01325_aad522ff10923afd0ba11f244845cdfdd}

\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a01323}{Tree\+Item} corresponding to a given Open\+Flipper Object\+I\+D. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}{item\+Name} (const Q\+Model\+Index \&\+\_\+index) const 
\begin{DoxyCompactList}\small\item\em Get the name of a \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
int \hyperlink{a01325_ae328cc72b1e30aa4453997e69a0efcdc}{item\+Id} (const Q\+Model\+Index \&\+\_\+index) const 
\begin{DoxyCompactList}\small\item\em Get the id of a \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
void \hyperlink{a01325_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{a01325_ae58fb3c53884a8b3aab527bb051a6dda}{object\+Added} (\hyperlink{a00329}{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{a01325_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{a01325_a8e3d8a114aff5a3d005c21244144d3a2}{move\+Item} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+item, \hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+parent)
\begin{DoxyCompactList}\small\item\em move the item to a new parent \end{DoxyCompactList}\item 
\hypertarget{a01325_af867dd3680bd5ef48aa738d75b673963}{Q\+Model\+Index \hyperlink{a01325_af867dd3680bd5ef48aa738d75b673963}{get\+Model\+Index} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+object, int \+\_\+column)}\label{a01325_af867dd3680bd5ef48aa738d75b673963}

\begin{DoxyCompactList}\small\item\em Return the Model\+Index corresponding to a given \hyperlink{a01323}{Tree\+Item} and Column. \end{DoxyCompactList}\item 
Q\+Model\+Index \hyperlink{a01325_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 
\hypertarget{a01325_a0cb484387996dbf23f145000caacd8b1}{bool \hyperlink{a01325_a0cb484387996dbf23f145000caacd8b1}{is\+Root} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+item)}\label{a01325_a0cb484387996dbf23f145000caacd8b1}

\begin{DoxyCompactList}\small\item\em Check if the given item is the root item. \end{DoxyCompactList}\item 
\hypertarget{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}{bool \hyperlink{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}{get\+Object\+Name} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+object, Q\+String \&\+\_\+name)}\label{a01325_a463f70d6ab97b6cac26d2fd9399e8d0b}

\begin{DoxyCompactList}\small\item\em Get the name of a given object. \end{DoxyCompactList}\item 
\hypertarget{a01325_ada28644856c81aa53c376b8fa19d9e9d}{\hyperlink{a01323}{Tree\+Item} $\ast$ \hyperlink{a01325_ada28644856c81aa53c376b8fa19d9e9d}{get\+Item} (const Q\+Model\+Index \&\+\_\+index) const }\label{a01325_ada28644856c81aa53c376b8fa19d9e9d}

\begin{DoxyCompactList}\small\item\em Get the \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\hypertarget{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}{Q\+String \hyperlink{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}{item\+Name} (const Q\+Model\+Index \&\+\_\+index) const }\label{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}

\begin{DoxyCompactList}\small\item\em Get the name of a \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\hypertarget{a01325_ae328cc72b1e30aa4453997e69a0efcdc}{int \hyperlink{a01325_ae328cc72b1e30aa4453997e69a0efcdc}{item\+Id} (const Q\+Model\+Index \&\+\_\+index) const }\label{a01325_ae328cc72b1e30aa4453997e69a0efcdc}

\begin{DoxyCompactList}\small\item\em Get the id of a \hyperlink{a01323}{Tree\+Item} corresponding to a given Model\+Index. \end{DoxyCompactList}\item 
\hypertarget{a01325_a4f5621949653baabef0b954303d8d7b7}{void \hyperlink{a01325_a4f5621949653baabef0b954303d8d7b7}{object\+Changed} (int id\+\_\+)}\label{a01325_a4f5621949653baabef0b954303d8d7b7}

\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 
\hypertarget{a01325_ae58fb3c53884a8b3aab527bb051a6dda}{void \hyperlink{a01325_ae58fb3c53884a8b3aab527bb051a6dda}{object\+Added} (\hyperlink{a00329}{Base\+Object} $\ast$\+\_\+object)}\label{a01325_ae58fb3c53884a8b3aab527bb051a6dda}

\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{a01325_aa6960ebff6e473425f24ef65aa56e3d0}{object\+Added} (\hyperlink{a00329}{Base\+Object} $\ast$\+\_\+object, \hyperlink{a00329}{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 
\hypertarget{a01325_a865f36d96eddfd549b97bb05f5b86e81}{void \hyperlink{a01325_a865f36d96eddfd549b97bb05f5b86e81}{object\+Deleted} (int id\+\_\+)}\label{a01325_a865f36d96eddfd549b97bb05f5b86e81}

\begin{DoxyCompactList}\small\item\em The object with the given id has been deleted. delete it from the internal tree. \end{DoxyCompactList}\item 
\hypertarget{a01325_a8e3d8a114aff5a3d005c21244144d3a2}{void \hyperlink{a01325_a8e3d8a114aff5a3d005c21244144d3a2}{move\+Item} (\hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+item, \hyperlink{a01323}{Tree\+Item} $\ast$\+\_\+parent)}\label{a01325_a8e3d8a114aff5a3d005c21244144d3a2}

\begin{DoxyCompactList}\small\item\em move the item to a new parent \end{DoxyCompactList}\item 
void \hyperlink{a01325_ad10da570c03e86f30b08dab248eb07b5}{propagate\+Upwards} (\hyperlink{a01323}{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{a01325_a7b2bc9e82b9b1c457232ce728cd2a200}{propagate\+Downwards} (\hyperlink{a01323}{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 59 of file Tree\+Model.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01325_a605d740105b2e3d86e765796f4cd3876}{\index{Tree\+Model@{Tree\+Model}!Tree\+Model@{Tree\+Model}}
\index{Tree\+Model@{Tree\+Model}!Tree\+Model@{Tree\+Model}}
\subsubsection[{Tree\+Model}]{\setlength{\rightskip}{0pt plus 5cm}Tree\+Model\+::\+Tree\+Model (
\begin{DoxyParamCaption}
\item[{Q\+Object $\ast$}]{\+\_\+parent = {\ttfamily 0}}
\end{DoxyParamCaption}
)}}\label{a01325_a605d740105b2e3d86e765796f4cd3876}


Constructor. 


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


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

\hypertarget{a01325_af0998d55a63c2b18be1f03e4e8567926}{\index{Tree\+Model@{Tree\+Model}!````~Tree\+Model@{$\sim$\+Tree\+Model}}
\index{````~Tree\+Model@{$\sim$\+Tree\+Model}!Tree\+Model@{Tree\+Model}}
\subsubsection[{$\sim$\+Tree\+Model}]{\setlength{\rightskip}{0pt plus 5cm}Tree\+Model\+::$\sim$\+Tree\+Model (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{a01325_af0998d55a63c2b18be1f03e4e8567926}


Destructor. 



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



\subsection{Member Function Documentation}
\hypertarget{a01325_afa08f4fae3decb0d3369bca0b78a1669}{\index{Tree\+Model@{Tree\+Model}!column\+Count@{column\+Count}}
\index{column\+Count@{column\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection[{column\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Tree\+Model\+::column\+Count (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()}}
\end{DoxyParamCaption}
) const}}\label{a01325_afa08f4fae3decb0d3369bca0b78a1669}


Return the number of columns. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+parent} & unused \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
return always 2 
\end{DoxyReturn}
\hypertarget{a01325_afa08f4fae3decb0d3369bca0b78a1669}{\index{Tree\+Model@{Tree\+Model}!column\+Count@{column\+Count}}
\index{column\+Count@{column\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection[{column\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Tree\+Model\+::column\+Count (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()}}
\end{DoxyParamCaption}
) const}}\label{a01325_afa08f4fae3decb0d3369bca0b78a1669}


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 90 of file Tree\+Model.\+cc.

\hypertarget{a01325_a033e358ee7132464e27d3dccb7d25f6f}{\index{Tree\+Model@{Tree\+Model}!data@{data}}
\index{data@{data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{data}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Variant Tree\+Model\+::data (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index, }
\item[{int}]{\+\_\+role}
\end{DoxyParamCaption}
) const}}\label{a01325_a033e358ee7132464e27d3dccb7d25f6f}


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 105 of file Tree\+Model.\+cc.

\hypertarget{a01325_a2bfd4082df0b5b609e13ade9ebe725fb}{\index{Tree\+Model@{Tree\+Model}!drop\+Mime\+Data@{drop\+Mime\+Data}}
\index{drop\+Mime\+Data@{drop\+Mime\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{drop\+Mime\+Data}]{\setlength{\rightskip}{0pt plus 5cm}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}
)}}\label{a01325_a2bfd4082df0b5b609e13ade9ebe725fb}


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 669 of file Tree\+Model.\+cc.

\hypertarget{a01325_ad4b3f418e57a496b28861fefa6bb66ba}{\index{Tree\+Model@{Tree\+Model}!flags@{flags}}
\index{flags@{flags}!Tree\+Model@{Tree\+Model}}
\subsubsection[{flags}]{\setlength{\rightskip}{0pt plus 5cm}Qt\+::\+Item\+Flags Tree\+Model\+::flags (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index}
\end{DoxyParamCaption}
) const}}\label{a01325_ad4b3f418e57a496b28861fefa6bb66ba}


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 231 of file Tree\+Model.\+cc.

\hypertarget{a01325_a777ff1650ff8c13e0cfb0635e490414b}{\index{Tree\+Model@{Tree\+Model}!get\+Item@{get\+Item}}
\index{get\+Item@{get\+Item}!Tree\+Model@{Tree\+Model}}
\subsubsection[{get\+Item}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tree\+Item} $\ast$ Tree\+Model\+::get\+Item (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index}
\end{DoxyParamCaption}
) const}}\label{a01325_a777ff1650ff8c13e0cfb0635e490414b}


Get the \hyperlink{a01323}{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 518 of file Tree\+Model.\+cc.

\hypertarget{a01325_af867dd3680bd5ef48aa738d75b673963}{\index{Tree\+Model@{Tree\+Model}!get\+Model\+Index@{get\+Model\+Index}}
\index{get\+Model\+Index@{get\+Model\+Index}!Tree\+Model@{Tree\+Model}}
\subsubsection[{get\+Model\+Index}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Model\+Index Tree\+Model\+::get\+Model\+Index (
\begin{DoxyParamCaption}
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+object, }
\item[{int}]{\+\_\+column}
\end{DoxyParamCaption}
)}}\label{a01325_af867dd3680bd5ef48aa738d75b673963}


Return the Model\+Index corresponding to a given \hyperlink{a01323}{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 572 of file Tree\+Model.\+cc.

\hypertarget{a01325_ae3621abf9f7648bb683c555b01ed24dc}{\index{Tree\+Model@{Tree\+Model}!get\+Model\+Index@{get\+Model\+Index}}
\index{get\+Model\+Index@{get\+Model\+Index}!Tree\+Model@{Tree\+Model}}
\subsubsection[{get\+Model\+Index}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Model\+Index Tree\+Model\+::get\+Model\+Index (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{int}]{\+\_\+column}
\end{DoxyParamCaption}
)}}\label{a01325_ae3621abf9f7648bb683c555b01ed24dc}


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 503 of file Tree\+Model.\+cc.

\hypertarget{a01325_ad1dd731fb5f87ed9a54732152b3b5608}{\index{Tree\+Model@{Tree\+Model}!header\+Data@{header\+Data}}
\index{header\+Data@{header\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{header\+Data}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Variant Tree\+Model\+::header\+Data (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+section, }
\item[{Qt\+::\+Orientation}]{\+\_\+orientation, }
\item[{int}]{\+\_\+role = {\ttfamily Qt\+:\+:DisplayRole}}
\end{DoxyParamCaption}
) const}}\label{a01325_ad1dd731fb5f87ed9a54732152b3b5608}


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 268 of file Tree\+Model.\+cc.

\hypertarget{a01325_a105d7a0a26f970aa38c12076e9e2bc71}{\index{Tree\+Model@{Tree\+Model}!index@{index}}
\index{index@{index}!Tree\+Model@{Tree\+Model}}
\subsubsection[{index}]{\setlength{\rightskip}{0pt plus 5cm}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}}\label{a01325_a105d7a0a26f970aa38c12076e9e2bc71}


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 295 of file Tree\+Model.\+cc.

\hypertarget{a01325_a0cb484387996dbf23f145000caacd8b1}{\index{Tree\+Model@{Tree\+Model}!is\+Root@{is\+Root}}
\index{is\+Root@{is\+Root}!Tree\+Model@{Tree\+Model}}
\subsubsection[{is\+Root}]{\setlength{\rightskip}{0pt plus 5cm}bool Tree\+Model\+::is\+Root (
\begin{DoxyParamCaption}
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+item}
\end{DoxyParamCaption}
)}}\label{a01325_a0cb484387996dbf23f145000caacd8b1}


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 602 of file Tree\+Model.\+cc.

\hypertarget{a01325_ae328cc72b1e30aa4453997e69a0efcdc}{\index{Tree\+Model@{Tree\+Model}!item\+Id@{item\+Id}}
\index{item\+Id@{item\+Id}!Tree\+Model@{Tree\+Model}}
\subsubsection[{item\+Id}]{\setlength{\rightskip}{0pt plus 5cm}int Tree\+Model\+::item\+Id (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index}
\end{DoxyParamCaption}
) const}}\label{a01325_ae328cc72b1e30aa4453997e69a0efcdc}


Get the id of a \hyperlink{a01323}{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 552 of file Tree\+Model.\+cc.

\hypertarget{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}{\index{Tree\+Model@{Tree\+Model}!item\+Name@{item\+Name}}
\index{item\+Name@{item\+Name}!Tree\+Model@{Tree\+Model}}
\subsubsection[{item\+Name}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Tree\+Model\+::item\+Name (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index}
\end{DoxyParamCaption}
) const}}\label{a01325_a7ca7658dda7c9e0ef5e5628b7e278d07}


Get the name of a \hyperlink{a01323}{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 535 of file Tree\+Model.\+cc.

\hypertarget{a01325_ac527e9fedb0f87b8ca5706f856ca9c03}{\index{Tree\+Model@{Tree\+Model}!mime\+Data@{mime\+Data}}
\index{mime\+Data@{mime\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{mime\+Data}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Mime\+Data $\ast$ Tree\+Model\+::mime\+Data (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index\+List \&}]{\+\_\+indexes}
\end{DoxyParamCaption}
) const}}\label{a01325_ac527e9fedb0f87b8ca5706f856ca9c03}


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 641 of file Tree\+Model.\+cc.

\hypertarget{a01325_a8bdf203664d126a6e420f6cd207f8251}{\index{Tree\+Model@{Tree\+Model}!mime\+Types@{mime\+Types}}
\index{mime\+Types@{mime\+Types}!Tree\+Model@{Tree\+Model}}
\subsubsection[{mime\+Types}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String\+List Tree\+Model\+::mime\+Types (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a01325_a8bdf203664d126a6e420f6cd207f8251}


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 626 of file Tree\+Model.\+cc.

\hypertarget{a01325_a8e3d8a114aff5a3d005c21244144d3a2}{\index{Tree\+Model@{Tree\+Model}!move\+Item@{move\+Item}}
\index{move\+Item@{move\+Item}!Tree\+Model@{Tree\+Model}}
\subsubsection[{move\+Item}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::move\+Item (
\begin{DoxyParamCaption}
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+item, }
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+parent}
\end{DoxyParamCaption}
)}}\label{a01325_a8e3d8a114aff5a3d005c21244144d3a2}


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 498 of file Tree\+Model.\+cc.

\hypertarget{a01325_ae58fb3c53884a8b3aab527bb051a6dda}{\index{Tree\+Model@{Tree\+Model}!object\+Added@{object\+Added}}
\index{object\+Added@{object\+Added}!Tree\+Model@{Tree\+Model}}
\subsubsection[{object\+Added}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::object\+Added (
\begin{DoxyParamCaption}
\item[{{\bf Base\+Object} $\ast$}]{\+\_\+object}
\end{DoxyParamCaption}
)}}\label{a01325_ae58fb3c53884a8b3aab527bb051a6dda}


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 436 of file Tree\+Model.\+cc.

\hypertarget{a01325_aa6960ebff6e473425f24ef65aa56e3d0}{\index{Tree\+Model@{Tree\+Model}!object\+Added@{object\+Added}}
\index{object\+Added@{object\+Added}!Tree\+Model@{Tree\+Model}}
\subsubsection[{object\+Added}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::object\+Added (
\begin{DoxyParamCaption}
\item[{{\bf Base\+Object} $\ast$}]{\+\_\+object, }
\item[{{\bf Base\+Object} $\ast$}]{\+\_\+parent}
\end{DoxyParamCaption}
)}}\label{a01325_aa6960ebff6e473425f24ef65aa56e3d0}


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 337 of file Tree\+Model.\+cc.

\hypertarget{a01325_ad2e09a6eee7e7513e9d854b6f5d2ff50}{\index{Tree\+Model@{Tree\+Model}!object\+Changed@{object\+Changed}}
\index{object\+Changed@{object\+Changed}!Tree\+Model@{Tree\+Model}}
\subsubsection[{object\+Changed}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::object\+Changed (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)}}\label{a01325_ad2e09a6eee7e7513e9d854b6f5d2ff50}


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 363 of file Tree\+Model.\+cc.

\hypertarget{a01325_a83d62f1baad7a0f3ee678cd25b8198fe}{\index{Tree\+Model@{Tree\+Model}!object\+Deleted@{object\+Deleted}}
\index{object\+Deleted@{object\+Deleted}!Tree\+Model@{Tree\+Model}}
\subsubsection[{object\+Deleted}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::object\+Deleted (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)}}\label{a01325_a83d62f1baad7a0f3ee678cd25b8198fe}


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 471 of file Tree\+Model.\+cc.

\hypertarget{a01325_a0f3317f198c5e93440d95f9f007145f5}{\index{Tree\+Model@{Tree\+Model}!parent@{parent}}
\index{parent@{parent}!Tree\+Model@{Tree\+Model}}
\subsubsection[{parent}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Model\+Index Tree\+Model\+::parent (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index}
\end{DoxyParamCaption}
) const}}\label{a01325_a0f3317f198c5e93440d95f9f007145f5}


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 322 of file Tree\+Model.\+cc.

\hypertarget{a01325_a7b2bc9e82b9b1c457232ce728cd2a200}{\index{Tree\+Model@{Tree\+Model}!propagate\+Downwards@{propagate\+Downwards}}
\index{propagate\+Downwards@{propagate\+Downwards}!Tree\+Model@{Tree\+Model}}
\subsubsection[{propagate\+Downwards}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::propagate\+Downwards (
\begin{DoxyParamCaption}
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+item, }
\item[{int}]{\+\_\+column}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a01325_a7b2bc9e82b9b1c457232ce728cd2a200}


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 552 of file Tree\+Model.\+cc.

\hypertarget{a01325_ad10da570c03e86f30b08dab248eb07b5}{\index{Tree\+Model@{Tree\+Model}!propagate\+Upwards@{propagate\+Upwards}}
\index{propagate\+Upwards@{propagate\+Upwards}!Tree\+Model@{Tree\+Model}}
\subsubsection[{propagate\+Upwards}]{\setlength{\rightskip}{0pt plus 5cm}void Tree\+Model\+::propagate\+Upwards (
\begin{DoxyParamCaption}
\item[{{\bf Tree\+Item} $\ast$}]{\+\_\+item, }
\item[{int}]{\+\_\+column, }
\item[{bool}]{\+\_\+value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{a01325_ad10da570c03e86f30b08dab248eb07b5}


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 522 of file Tree\+Model.\+cc.

\hypertarget{a01325_a7bf525fab49bf80ff9b4589beedf9305}{\index{Tree\+Model@{Tree\+Model}!row\+Count@{row\+Count}}
\index{row\+Count@{row\+Count}!Tree\+Model@{Tree\+Model}}
\subsubsection[{row\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Tree\+Model\+::row\+Count (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+parent = {\ttfamily QModelIndex()}}
\end{DoxyParamCaption}
) const}}\label{a01325_a7bf525fab49bf80ff9b4589beedf9305}


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 344 of file Tree\+Model.\+cc.

\hypertarget{a01325_a29d154fc78f244967115288440b74b75}{\index{Tree\+Model@{Tree\+Model}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}bool Tree\+Model\+::set\+Data (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index, }
\item[{const Q\+Variant \&}]{\+\_\+value, }
\item[{int}]{\+\_\+role}
\end{DoxyParamCaption}
)}}\label{a01325_a29d154fc78f244967115288440b74b75}


Set Data at 'index' to 'value'. 


\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}
\hypertarget{a01325_a29d154fc78f244967115288440b74b75}{\index{Tree\+Model@{Tree\+Model}!set\+Data@{set\+Data}}
\index{set\+Data@{set\+Data}!Tree\+Model@{Tree\+Model}}
\subsubsection[{set\+Data}]{\setlength{\rightskip}{0pt plus 5cm}bool Tree\+Model\+::set\+Data (
\begin{DoxyParamCaption}
\item[{const Q\+Model\+Index \&}]{\+\_\+index, }
\item[{const Q\+Variant \&}]{\+\_\+value, }
\item[{int}]{\+\_\+role}
\end{DoxyParamCaption}
)}}\label{a01325_a29d154fc78f244967115288440b74b75}


Set Data at 'index' to 'value'. 


\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 585 of file Tree\+Model.\+cc.

\hypertarget{a01325_a9235ae7e8d3a9f623b998e5fbed8692b}{\index{Tree\+Model@{Tree\+Model}!supported\+Drop\+Actions@{supported\+Drop\+Actions}}
\index{supported\+Drop\+Actions@{supported\+Drop\+Actions}!Tree\+Model@{Tree\+Model}}
\subsubsection[{supported\+Drop\+Actions}]{\setlength{\rightskip}{0pt plus 5cm}Qt\+::\+Drop\+Actions Tree\+Model\+::supported\+Drop\+Actions (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{a01325_a9235ae7e8d3a9f623b998e5fbed8692b}


supported drag \& Drop actions 

return the supported drop actions

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


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



\subsection{Member Data Documentation}
\hypertarget{a01325_ab29a74f3b4f8d83b0be6e38fee13fa9a}{\index{Tree\+Model@{Tree\+Model}!root\+Item\+\_\+@{root\+Item\+\_\+}}
\index{root\+Item\+\_\+@{root\+Item\+\_\+}!Tree\+Model@{Tree\+Model}}
\subsubsection[{root\+Item\+\_\+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Tree\+Item} $\ast$ Tree\+Model\+::root\+Item\+\_\+\hspace{0.3cm}{\ttfamily [private]}}}\label{a01325_ab29a74f3b4f8d83b0be6e38fee13fa9a}


Root item of the tree. 

Rootitem of the tree. 

Definition at line 167 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}
