\hypertarget{class_drag_widget}{}\doxysection{Drag\+Widget Class Reference}
\label{class_drag_widget}\index{DragWidget@{DragWidget}}


Custom Widget for drag\&drop action.  




{\ttfamily \#include $<$dragwidget.\+h$>$}

Inheritance diagram for Drag\+Widget\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_drag_widget}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_drag_widget_ac1f0853a63e8f5855fd737e3009bffc8}{Drag\+Widget}} (Q\+Widget $\ast$parent=nullptr)
\begin{DoxyCompactList}\small\item\em Default c\textquotesingle{}tor. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_drag_widget_ac55783a3ae8f9f0217fb1dad0a07116f}{$\sim$\+Drag\+Widget}} ()
\begin{DoxyCompactList}\small\item\em Default d\textquotesingle{}tor. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_drag_widget_a6b8eb18f6fbb4d993a35cb54bddfecb5}{Clear\+Widget}} (bool flag)
\begin{DoxyCompactList}\small\item\em Clear\+Widget. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{class_drag_widget_a9bc7f764a595cd434fc5e17b6f8ce868}{drag\+Enter\+Event}} (Q\+Drag\+Enter\+Event $\ast$event) override
\begin{DoxyCompactList}\small\item\em drag\+Enter\+Event, overridden \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_drag_widget_ac7a0c36279f34f5dd311ca262085d4b8}{drag\+Move\+Event}} (Q\+Drag\+Move\+Event $\ast$event) override
\begin{DoxyCompactList}\small\item\em drag\+Move\+Event, overridden \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_drag_widget_a6ac832c29c49a14843736db10ba16bd4}{drop\+Event}} (Q\+Drop\+Event $\ast$event) override
\begin{DoxyCompactList}\small\item\em drop\+Event, overridden \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_drag_widget_accfb6c5b9bbab8c361dd319705ed9886}{mouse\+Press\+Event}} (Q\+Mouse\+Event $\ast$event) override
\begin{DoxyCompactList}\small\item\em mouse\+Press\+Event, overridden \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
Q\+String \mbox{\hyperlink{class_drag_widget_a69ee6642aa898a16bbfdfecc6000e998}{path\+To\+Img}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Custom Widget for drag\&drop action. 

Serves as a custom Widget for drag\&drop action (between two instances). In the UI reffered to as image\+\_\+source, image\+\_\+destination 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_drag_widget_ac1f0853a63e8f5855fd737e3009bffc8}\label{class_drag_widget_ac1f0853a63e8f5855fd737e3009bffc8}} 
\index{DragWidget@{DragWidget}!DragWidget@{DragWidget}}
\index{DragWidget@{DragWidget}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{DragWidget()}{DragWidget()}}
{\footnotesize\ttfamily Drag\+Widget\+::\+Drag\+Widget (\begin{DoxyParamCaption}\item[{Q\+Widget $\ast$}]{parent = {\ttfamily nullptr} }\end{DoxyParamCaption})}



Default c\textquotesingle{}tor. 

Creates a \mbox{\hyperlink{class_drag_widget}{Drag\+Widget}} instance on the parent Widget. 
\begin{DoxyParams}{Parameters}
{\em parent} & Widget to be created on \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_drag_widget_ac55783a3ae8f9f0217fb1dad0a07116f}\label{class_drag_widget_ac55783a3ae8f9f0217fb1dad0a07116f}} 
\index{DragWidget@{DragWidget}!````~DragWidget@{$\sim$DragWidget}}
\index{````~DragWidget@{$\sim$DragWidget}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{$\sim$DragWidget()}{~DragWidget()}}
{\footnotesize\ttfamily Drag\+Widget\+::$\sim$\+Drag\+Widget (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Default d\textquotesingle{}tor. 



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_drag_widget_a6b8eb18f6fbb4d993a35cb54bddfecb5}\label{class_drag_widget_a6b8eb18f6fbb4d993a35cb54bddfecb5}} 
\index{DragWidget@{DragWidget}!ClearWidget@{ClearWidget}}
\index{ClearWidget@{ClearWidget}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{ClearWidget()}{ClearWidget()}}
{\footnotesize\ttfamily void Drag\+Widget\+::\+Clear\+Widget (\begin{DoxyParamCaption}\item[{bool}]{flag }\end{DoxyParamCaption})}



Clear\+Widget. 

\mbox{\Hypertarget{class_drag_widget_a9bc7f764a595cd434fc5e17b6f8ce868}\label{class_drag_widget_a9bc7f764a595cd434fc5e17b6f8ce868}} 
\index{DragWidget@{DragWidget}!dragEnterEvent@{dragEnterEvent}}
\index{dragEnterEvent@{dragEnterEvent}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{dragEnterEvent()}{dragEnterEvent()}}
{\footnotesize\ttfamily void Drag\+Widget\+::drag\+Enter\+Event (\begin{DoxyParamCaption}\item[{Q\+Drag\+Enter\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}



drag\+Enter\+Event, overridden 

Checks for the mime-\/data of the object that triggered the event. Chooses whether to accept the event. 
\begin{DoxyParams}{Parameters}
{\em event} & Event that triggers the method \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_drag_widget_ac7a0c36279f34f5dd311ca262085d4b8}\label{class_drag_widget_ac7a0c36279f34f5dd311ca262085d4b8}} 
\index{DragWidget@{DragWidget}!dragMoveEvent@{dragMoveEvent}}
\index{dragMoveEvent@{dragMoveEvent}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{dragMoveEvent()}{dragMoveEvent()}}
{\footnotesize\ttfamily void Drag\+Widget\+::drag\+Move\+Event (\begin{DoxyParamCaption}\item[{Q\+Drag\+Move\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}



drag\+Move\+Event, overridden 

Checks for the mime-\/data of the object that triggered the event. Chooses whether to accept the event. 
\begin{DoxyParams}{Parameters}
{\em event} & Event that triggers the method \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_drag_widget_a6ac832c29c49a14843736db10ba16bd4}\label{class_drag_widget_a6ac832c29c49a14843736db10ba16bd4}} 
\index{DragWidget@{DragWidget}!dropEvent@{dropEvent}}
\index{dropEvent@{dropEvent}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{dropEvent()}{dropEvent()}}
{\footnotesize\ttfamily void Drag\+Widget\+::drop\+Event (\begin{DoxyParamCaption}\item[{Q\+Drop\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}



drop\+Event, overridden 

Extracts the data from mime-\/data and creates a new instance of \mbox{\hyperlink{class_svg_label}{Svg\+Label}} class on the drop position with the source\textquotesingle{}s pixmap and initializes some members of said \mbox{\hyperlink{class_svg_label}{Svg\+Label}} instance 
\begin{DoxyParams}{Parameters}
{\em event} & Event that triggers the method \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_drag_widget_accfb6c5b9bbab8c361dd319705ed9886}\label{class_drag_widget_accfb6c5b9bbab8c361dd319705ed9886}} 
\index{DragWidget@{DragWidget}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{mousePressEvent()}{mousePressEvent()}}
{\footnotesize\ttfamily void Drag\+Widget\+::mouse\+Press\+Event (\begin{DoxyParamCaption}\item[{Q\+Mouse\+Event $\ast$}]{event }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [protected]}}



mouse\+Press\+Event, overridden 

Checks whether the event source is a child (\mbox{\hyperlink{class_svg_label}{Svg\+Label}}). If not, deselects all the children. If so, sets the path to the image(which is later passed on to the child in the drop event) and initializes the start of the Drag\+Event process. 
\begin{DoxyParams}{Parameters}
{\em event} & Event that triggers the method \\
\hline
\end{DoxyParams}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_drag_widget_a69ee6642aa898a16bbfdfecc6000e998}\label{class_drag_widget_a69ee6642aa898a16bbfdfecc6000e998}} 
\index{DragWidget@{DragWidget}!pathToImg@{pathToImg}}
\index{pathToImg@{pathToImg}!DragWidget@{DragWidget}}
\doxysubsubsection{\texorpdfstring{pathToImg}{pathToImg}}
{\footnotesize\ttfamily Q\+String Drag\+Widget\+::path\+To\+Img\hspace{0.3cm}{\ttfamily [private]}}



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{dragwidget_8h}{dragwidget.\+h}}\item 
\mbox{\hyperlink{dragwidget_8cpp}{dragwidget.\+cpp}}\end{DoxyCompactItemize}
