updateTitle();
}
-#if QT_VER < 3
-
-/*!
- \return the width of the empty space between the items in the group and the frame of the group
-*/
-int QtxGroupBox::insideMargin() const
-{
- int m = 0;
- if ( layout() )
- m = layout()->margin();
- return m;
-}
-
-/*!
- \return the width of the empty space between each of the items in the group
-*/
-int QtxGroupBox::insideSpacing() const
-{
- int s = 0;
- if ( layout() )
- s = layout()->spacing();
- return s;
-}
-
-/*!
- Sets the width of the empty space between the items in the group and the frame of the group
-*/
-void QtxGroupBox::setInsideMargin( int m )
-{
- if ( layout() )
- layout()->setMargin( m );
-}
-
-/*!
- Sets the width of the empty space between each of the items in the group
-*/
-void QtxGroupBox::setInsideSpacing( int s )
-{
- if ( layout() )
- layout()->setSpacing( s );
-}
-
-#endif
-
/*!
Inserts title widget
\param wid - new title widget
QtxGroupBox( int, Orientation, const QString&, QWidget* = 0, const char* = 0 );
virtual ~QtxGroupBox();
-#if QT_VER < 3
- int insideMargin() const;
- int insideSpacing() const;
- void setInsideMargin( int );
- void setInsideSpacing( int );
-#endif
-
virtual void setAlignment( int );
virtual void setTitle( const QString& );
virtual void setColumnLayout( int, Orientation );
if ( !QtxAction::addTo( w ) )
return false;
-#if QT_VER < 3
- if ( w->children() )
- addedTo( (QWidget*)w->children()->getLast(), w );
-#endif
-
if ( w->inherits( "QToolBar" ) )
{
Buttons& entry = myButtons[w];
connect( entry.popup, SIGNAL( activated( int ) ), this, SLOT( onActivated( int ) ) );
}
-#if QT_VER >= 3
- connect( w, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
-#endif
+ connect( w, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
return true;
}
else if ( w->inherits( "QPopupMenu" ) )
myPopups.remove( w );
-#if QT_VER >= 3
- disconnect( w, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
-#endif
+ disconnect( w, SIGNAL( destroyed( QObject* ) ), this, SLOT( onDestroyed( QObject* ) ) );
return true;
}
void QtxListAction::addedTo( QWidget* actionWidget, QWidget* container )
{
-#if QT_VER >= 3
QtxAction::addedTo( actionWidget, container );
-#endif
if ( !container->inherits( "QToolBar" ) )
return;