/*!
\brief Called when drop operation is finished.
-
+
Inserts dropped widget to the target workarea.
*/
void QtxWorkstackDrag::dropWidget()
myWidget->setParent( this, f );
myWidget->installEventFilter( this );
QVBoxLayout* base = new QVBoxLayout( this );
+ base->setMargin( 0 );
base->addWidget( myWidget );
connect( myWidget, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
if ( e->type() == QEvent::WindowTitleChange || e->type() == QEvent::WindowIconChange )
emit captionChanged( this );
- if ( !e->spontaneous() && ( e->type() == QEvent::Show || e->type() == QEvent::ShowToParent ) )
+ if ( !e->spontaneous() && e->type() == QEvent::ShowToParent )
emit shown( this );
- if ( !e->spontaneous() && ( e->type() == QEvent::Hide || e->type() == QEvent::HideToParent ) )
+ if ( !e->spontaneous() && e->type() == QEvent::HideToParent )
emit hidden( this );
if ( e->type() == QEvent::FocusIn )
\brief Workstack widget.
Organizes the child widgets in the tabbed space.
- Allows splitting the working area to arrange the child widgets in
+ Allows splitting the working area to arrange the child widgets in
arbitrary way. Any widgets can be moved to another working area with
drag-n-drop operation.
- This widget can be used as workspace of the application main window,
+ This widget can be used as workspace of the application main window,
for example, as kind of implementation of multi-document interface.
*/
/*!
\brief Set actions to be visible in the context popup menu.
-
- Actions, which IDs are set in \a flags parameter, will be shown in the
+
+ Actions, which IDs are set in \a flags parameter, will be shown in the
context popup menu. Other actions will not be shown.
\param flags ORed together actions flags
/*!
\brief Set actions to be visible in the context popup menu.
-
- Actions, which IDs are set in \a flags parameter, will be shown in the
+
+ Actions, which IDs are set in \a flags parameter, will be shown in the
context popup menu. Other actions will not be shown.
\param flags ORed together actions flags
/*!
\brief Get splitter's children descriptions from the string.
\internal
-
+
Child widgets descriptions are separated by '(' and ')' symbols.
\param str string to be processed