summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeactionclasses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/tdeactionclasses.cpp')
-rw-r--r--tdeui/tdeactionclasses.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/tdeui/tdeactionclasses.cpp b/tdeui/tdeactionclasses.cpp
index 5bea6cdaa..3fff45564 100644
--- a/tdeui/tdeactionclasses.cpp
+++ b/tdeui/tdeactionclasses.cpp
@@ -137,7 +137,7 @@ TDEToggleAction::~TDEToggleAction()
int TDEToggleAction::plug( TQWidget* widget, int index )
{
- if ( !::tqqt_cast<TQPopupMenu *>( widget ) && !::tqqt_cast<TDEToolBar *>( widget ) )
+ if ( !::tqt_cast<TQPopupMenu *>( widget ) && !::tqt_cast<TDEToolBar *>( widget ) )
{
kdWarning() << "Can not plug TDEToggleAction in " << widget->className() << endl;
return -1;
@@ -149,7 +149,7 @@ int TDEToggleAction::plug( TQWidget* widget, int index )
if ( _index == -1 )
return _index;
- if ( ::tqqt_cast<TDEToolBar *>( widget ) ) {
+ if ( ::tqt_cast<TDEToolBar *>( widget ) ) {
TDEToolBar *bar = static_cast<TDEToolBar *>( widget );
bar->setToggle( itemId( _index ), true );
@@ -180,7 +180,7 @@ void TDEToggleAction::setChecked( bool c )
if ( !list.isEmpty() ) {
TQObjectListIt it( list );
for( ; it.current(); ++it ) {
- if ( ::tqqt_cast<TDEToggleAction *>( it.current() ) && it.current() != this &&
+ if ( ::tqt_cast<TDEToggleAction *>( it.current() ) && it.current() != this &&
static_cast<TDEToggleAction*>(it.current())->exclusiveGroup() == exclusiveGroup() ) {
TDEToggleAction *a = static_cast<TDEToggleAction*>(it.current());
if( a->isChecked() ) {
@@ -197,7 +197,7 @@ void TDEToggleAction::updateChecked( int id )
{
TQWidget *w = container( id );
- if ( ::tqqt_cast<TQPopupMenu *>( w ) ) {
+ if ( ::tqt_cast<TQPopupMenu *>( w ) ) {
TQPopupMenu* pm = static_cast<TQPopupMenu*>(w);
int itemId_ = itemId( id );
if ( !d->m_checkedGuiItem )
@@ -219,12 +219,12 @@ void TDEToggleAction::updateChecked( int id )
updateShortcut( pm, itemId_ );
}
}
- else if ( ::tqqt_cast<TQMenuBar *>( w ) ) // not handled in plug...
+ else if ( ::tqt_cast<TQMenuBar *>( w ) ) // not handled in plug...
static_cast<TQMenuBar*>(w)->setItemChecked( itemId( id ), d->m_checked );
- else if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ else if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TQWidget* r = static_cast<TDEToolBar*>( w )->getButton( itemId( id ) );
- if ( r && ::tqqt_cast<TDEToolBarButton *>( r ) ) {
+ if ( r && ::tqt_cast<TDEToolBarButton *>( r ) ) {
static_cast<TDEToolBar*>( w )->setButton( itemId( id ), d->m_checked );
if ( d->m_checkedGuiItem && d->m_checkedGuiItem->hasIcon() ) {
const KGuiItem* gui = d->m_checked ? d->m_checkedGuiItem : &guiItem();
@@ -324,7 +324,7 @@ void TDERadioAction::slotActivated()
{
const TQObject *senderObj = sender();
- if ( !senderObj || !::tqqt_cast<const TDEToolBarButton *>( senderObj ) )
+ if ( !senderObj || !::tqt_cast<const TDEToolBarButton *>( senderObj ) )
return;
const_cast<TDEToolBarButton *>( static_cast<const TDEToolBarButton *>( senderObj ) )->on( true );
@@ -537,10 +537,10 @@ void TDESelectAction::changeItem( int id, int index, const TQString& text)
return;
TQWidget* w = container( id );
- if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TQWidget* r = (static_cast<TDEToolBar*>( w ))->getWidget( itemId( id ) );
- if ( ::tqqt_cast<TQComboBox *>( r ) )
+ if ( ::tqt_cast<TQComboBox *>( r ) )
{
TQComboBox *b = static_cast<TQComboBox*>( r );
b->changeItem(text, index );
@@ -587,9 +587,9 @@ void TDESelectAction::updateCurrentItem( int id )
return;
TQWidget* w = container( id );
- if ( ::tqqt_cast<TDEToolBar *>( w ) ) {
+ if ( ::tqt_cast<TDEToolBar *>( w ) ) {
TQWidget* r = static_cast<TDEToolBar*>( w )->getWidget( itemId( id ) );
- if ( ::tqqt_cast<TQComboBox *>( r ) ) {
+ if ( ::tqt_cast<TQComboBox *>( r ) ) {
TQComboBox *b = static_cast<TQComboBox*>( r );
b->setCurrentItem( d->m_current );
}
@@ -604,9 +604,9 @@ int TDESelectAction::comboWidth() const
void TDESelectAction::updateComboWidth( int id )
{
TQWidget* w = container( id );
- if ( ::tqqt_cast<TDEToolBar *>( w ) ) {
+ if ( ::tqt_cast<TDEToolBar *>( w ) ) {
TQWidget* r = static_cast<TDEToolBar*>( w )->getWidget( itemId( id ) );
- if ( ::tqqt_cast<TQComboBox *>( r ) ) {
+ if ( ::tqt_cast<TQComboBox *>( r ) ) {
TQComboBox *cb = static_cast<TQComboBox*>( r );
cb->setMinimumWidth( d->m_comboWidth );
cb->setMaximumWidth( d->m_comboWidth );
@@ -618,9 +618,9 @@ void TDESelectAction::updateItems( int id )
{
kdDebug(129) << "TDEAction::updateItems( " << id << ", lst )" << endl; // remove -- ellis
TQWidget* w = container( id );
- if ( ::tqqt_cast<TDEToolBar *>( w ) ) {
+ if ( ::tqt_cast<TDEToolBar *>( w ) ) {
TQWidget* r = static_cast<TDEToolBar*>( w )->getWidget( itemId( id ) );
- if ( ::tqqt_cast<TQComboBox *>( r ) ) {
+ if ( ::tqt_cast<TQComboBox *>( r ) ) {
TQComboBox *cb = static_cast<TQComboBox*>( r );
cb->clear();
TQStringList lst = comboItems();
@@ -641,7 +641,7 @@ int TDESelectAction::plug( TQWidget *widget, int index )
if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
kdDebug(129) << "TDESelectAction::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
- if ( ::tqqt_cast<TQPopupMenu *>( widget) )
+ if ( ::tqt_cast<TQPopupMenu *>( widget) )
{
// Create the PopupMenu and store it in m_menu
(void)popupMenu();
@@ -665,7 +665,7 @@ int TDESelectAction::plug( TQWidget *widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ else if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar* bar = static_cast<TDEToolBar*>( widget );
int id_ = TDEAction::getToolButtonID();
@@ -697,7 +697,7 @@ int TDESelectAction::plug( TQWidget *widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TQMenuBar *>( widget ) )
+ else if ( ::tqt_cast<TQMenuBar *>( widget ) )
{
// Create the PopupMenu and store it in m_menu
(void)popupMenu();
@@ -754,9 +754,9 @@ void TDESelectAction::clear()
void TDESelectAction::updateClear( int id )
{
TQWidget* w = container( id );
- if ( ::tqqt_cast<TDEToolBar *>( w ) ) {
+ if ( ::tqt_cast<TDEToolBar *>( w ) ) {
TQWidget* r = static_cast<TDEToolBar*>( w )->getWidget( itemId( id ) );
- if ( ::tqqt_cast<TQComboBox *>( r ) ) {
+ if ( ::tqt_cast<TQComboBox *>( r ) ) {
TQComboBox *b = static_cast<TQComboBox*>( r );
b->clear();
}
@@ -1272,7 +1272,7 @@ int TDERecentFilesAction::plug( TQWidget *widget, int index )
return -1;
// This is very related to TDEActionMenu::plug.
// In fact this class could be an interesting base class for TDEActionMenu
- if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar *bar = (TDEToolBar *)widget;
@@ -1526,7 +1526,7 @@ int TDEFontAction::plug( TQWidget *w, int index )
{
if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
- if ( ::tqqt_cast<TDEToolBar *>( w ) )
+ if ( ::tqt_cast<TDEToolBar *>( w ) )
{
TDEToolBar* bar = static_cast<TDEToolBar*>( w );
int id_ = TDEAction::getToolButtonID();
@@ -1796,7 +1796,7 @@ int TDEActionMenu::plug( TQWidget* widget, int index )
if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
kdDebug(129) << "TDEActionMenu::plug( " << widget << ", " << index << " )" << endl; // remove -- ellis
- if ( ::tqqt_cast<TQPopupMenu *>( widget ) )
+ if ( ::tqt_cast<TQPopupMenu *>( widget ) )
{
TQPopupMenu* menu = static_cast<TQPopupMenu*>( widget );
int id;
@@ -1816,7 +1816,7 @@ int TDEActionMenu::plug( TQWidget* widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ else if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar *bar = static_cast<TDEToolBar *>( widget );
@@ -1858,7 +1858,7 @@ int TDEActionMenu::plug( TQWidget* widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TQMenuBar *>( widget ) )
+ else if ( ::tqt_cast<TQMenuBar *>( widget ) )
{
TQMenuBar *bar = static_cast<TQMenuBar *>( widget );
@@ -1943,7 +1943,7 @@ int TDEToolBarPopupAction::plug( TQWidget *widget, int index )
return -1;
// This is very related to TDEActionMenu::plug.
// In fact this class could be an interesting base class for TDEActionMenu
- if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar *bar = (TDEToolBar *)widget;
@@ -2055,7 +2055,7 @@ void TDEToggleToolBarAction::setChecked( bool c )
m_toolBar->hide();
}
TQMainWindow* mw = m_toolBar->mainWindow();
- if ( mw && ::tqqt_cast<TDEMainWindow *>( mw ) )
+ if ( mw && ::tqt_cast<TDEMainWindow *>( mw ) )
static_cast<TDEMainWindow *>( mw )->setSettingsDirty();
}
TDEToggleAction::setChecked( c );
@@ -2153,7 +2153,7 @@ int KWidgetAction::plug( TQWidget* w, int index )
if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
- if ( !::tqqt_cast<TDEToolBar *>( w ) ) {
+ if ( !::tqt_cast<TDEToolBar *>( w ) ) {
kdError() << "KWidgetAction::plug: KWidgetAction must be plugged into TDEToolBar." << endl;
return -1;
}
@@ -2217,7 +2217,7 @@ TDEActionSeparator::~TDEActionSeparator()
int TDEActionSeparator::plug( TQWidget *widget, int index )
{
- if ( ::tqqt_cast<TQPopupMenu *>( widget) )
+ if ( ::tqt_cast<TQPopupMenu *>( widget) )
{
TQPopupMenu* menu = static_cast<TQPopupMenu*>( widget );
@@ -2228,7 +2228,7 @@ int TDEActionSeparator::plug( TQWidget *widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TQMenuBar *>( widget ) )
+ else if ( ::tqt_cast<TQMenuBar *>( widget ) )
{
TQMenuBar *menuBar = static_cast<TQMenuBar *>( widget );
@@ -2240,7 +2240,7 @@ int TDEActionSeparator::plug( TQWidget *widget, int index )
return containerCount() - 1;
}
- else if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ else if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar *toolBar = static_cast<TDEToolBar *>( widget );
@@ -2285,7 +2285,7 @@ int TDEPasteTextAction::plug( TQWidget *widget, int index )
{
if (kapp && !kapp->authorizeTDEAction(name()))
return -1;
- if ( ::tqqt_cast<TDEToolBar *>( widget ) )
+ if ( ::tqt_cast<TDEToolBar *>( widget ) )
{
TDEToolBar *bar = (TDEToolBar *)widget;