diff --git a/chalk/ui/kis_previewwidget.cpp b/chalk/ui/kis_previewwidget.cpp index a95c4920a..f2fe0bb7a 100644 --- a/chalk/ui/kis_previewwidget.cpp +++ b/chalk/ui/kis_previewwidget.cpp @@ -335,7 +335,7 @@ void KisPreviewWidget::runFilterHelper() { m_scaledImage = new KisImage(*m_origDevice->image()); if(!m_origDevice->parentLayer()) return; TQString layerName = m_origDevice->parentLayer()->name(); - KisPaintLayerSP pl = ::tqqt_cast(m_scaledImage->findLayer(layerName)); + KisPaintLayerSP pl = ::tqt_cast(m_scaledImage->findLayer(layerName)); if(!pl) return; scaledDevice = pl->paintDevice(); diff --git a/filters/kspread/csv/csvexport.cpp b/filters/kspread/csv/csvexport.cpp index ceeb8b5ec..e5d7a045e 100644 --- a/filters/kspread/csv/csvexport.cpp +++ b/filters/kspread/csv/csvexport.cpp @@ -126,7 +126,7 @@ KoFilter::ConversionStatus CSVExport::convert( const TQCString & from, const TQC if ( !document ) return KoFilter::StupidError; - if ( !::tqqt_cast( document ) ) + if ( !::tqt_cast( document ) ) { kdWarning(30501) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/csv/csvimport.cpp b/filters/kspread/csv/csvimport.cpp index 72cadfa2b..7b6f740c0 100644 --- a/filters/kspread/csv/csvimport.cpp +++ b/filters/kspread/csv/csvimport.cpp @@ -67,7 +67,7 @@ KoFilter::ConversionStatus CSVFilter::convert( const TQCString& from, const TQCS kdDebug(30501) << "here we go... " << document->className() << endl; - if ( !::tqqt_cast( document ) ) + if ( !::tqt_cast( document ) ) { kdWarning(30501) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/gnumeric/gnumericexport.cpp b/filters/kspread/gnumeric/gnumericexport.cpp index 77926298d..4e88e6be5 100644 --- a/filters/kspread/gnumeric/gnumericexport.cpp +++ b/filters/kspread/gnumeric/gnumericexport.cpp @@ -949,7 +949,7 @@ KoFilter::ConversionStatus GNUMERICExport::convert( const TQCString& from, const if (!document) return KoFilter::StupidError; - if ( !::tqqt_cast( document ) ) // it's safer that way :) + if ( !::tqt_cast( document ) ) // it's safer that way :) { kdWarning(30521) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/gnumeric/gnumericimport.cpp b/filters/kspread/gnumeric/gnumericimport.cpp index d763fdef4..511cfb0ba 100644 --- a/filters/kspread/gnumeric/gnumericimport.cpp +++ b/filters/kspread/gnumeric/gnumericimport.cpp @@ -1835,7 +1835,7 @@ KoFilter::ConversionStatus GNUMERICFilter::convert( const TQCString & from, cons kdDebug(30521) << "here we go... " << document->className() << endl; - if ( !::tqqt_cast( document ) ) // it's safer that way :) + if ( !::tqt_cast( document ) ) // it's safer that way :) { kdWarning(30521) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/html/htmlexport.cpp b/filters/kspread/html/htmlexport.cpp index f680207e4..68f4081cf 100644 --- a/filters/kspread/html/htmlexport.cpp +++ b/filters/kspread/html/htmlexport.cpp @@ -89,7 +89,7 @@ KoFilter::ConversionStatus HTMLExport::convert( const TQCString& from, const TQC if ( !document ) return KoFilter::StupidError; - if( !::tqqt_cast( document ) ) // it's safer that way :) + if( !::tqt_cast( document ) ) // it's safer that way :) { kdWarning(30501) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/kexi/kspread_kexiimport.cpp b/filters/kspread/kexi/kspread_kexiimport.cpp index 6100dabe3..090f05ce1 100644 --- a/filters/kspread/kexi/kspread_kexiimport.cpp +++ b/filters/kspread/kexi/kspread_kexiimport.cpp @@ -99,7 +99,7 @@ KoFilter::ConversionStatus KSpreadKexiImport::convert( const TQCString& from, co kdDebug() << "here we go... " << document->className() << endl; - if ( !::tqqt_cast( document ) ) + if ( !::tqt_cast( document ) ) { kdWarning() << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/libkspreadexport/KSpreadLeader.cpp b/filters/kspread/libkspreadexport/KSpreadLeader.cpp index 8e300c7d1..3e8441b0c 100644 --- a/filters/kspread/libkspreadexport/KSpreadLeader.cpp +++ b/filters/kspread/libkspreadexport/KSpreadLeader.cpp @@ -74,7 +74,7 @@ KoFilter::ConversionStatus Leader::convert() { kdWarning(30508) << "the KSpreadDoc is NULL!" << endl; return KoFilter::StupidError; } - if ( !::tqqt_cast( document ) ) { + if ( !::tqt_cast( document ) ) { kdWarning(30508) << "the document is not a KSpreadDoc!" << endl; return KoFilter::StupidError; } diff --git a/filters/kspread/opencalc/opencalcexport.cpp b/filters/kspread/opencalc/opencalcexport.cpp index 8f8018c53..c0fe3c2e0 100644 --- a/filters/kspread/opencalc/opencalcexport.cpp +++ b/filters/kspread/opencalc/opencalcexport.cpp @@ -104,7 +104,7 @@ KoFilter::ConversionStatus OpenCalcExport::convert( const TQCString & from, if ( !document ) return KoFilter::StupidError; - if ( !::tqqt_cast( document ) ) + if ( !::tqt_cast( document ) ) { kdWarning(30518) << "document isn't a KSpread::Doc but a " << document->className() << endl; diff --git a/filters/kspread/opencalc/opencalcimport.cpp b/filters/kspread/opencalc/opencalcimport.cpp index 2ccf31739..25c0d94aa 100644 --- a/filters/kspread/opencalc/opencalcimport.cpp +++ b/filters/kspread/opencalc/opencalcimport.cpp @@ -2743,7 +2743,7 @@ KoFilter::ConversionStatus OpenCalcImport::convert( TQCString const & from, TQCS if ( !document ) return KoFilter::StupidError; - if ( !::tqqt_cast( document ) ) // it's safer that way :) + if ( !::tqt_cast( document ) ) // it's safer that way :) { kdWarning(30518) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/filters/kspread/qpro/qproimport.cpp b/filters/kspread/qpro/qproimport.cpp index e282a7698..ea989f9a6 100644 --- a/filters/kspread/qpro/qproimport.cpp +++ b/filters/kspread/qpro/qproimport.cpp @@ -104,7 +104,7 @@ KoFilter::ConversionStatus QpImport::convert( const TQCString& from, const TQCSt kdDebug(30523) << "here we go... " << document->className() << endl; - if( !::tqqt_cast( document ) ) // it's safer that way :) + if( !::tqt_cast( document ) ) // it's safer that way :) { kdWarning(30501) << "document isn't a KSpread::Doc but a " << document->className() << endl; return KoFilter::NotImplemented; diff --git a/kivio/kiviopart/stencilbardockmanager.cpp b/kivio/kiviopart/stencilbardockmanager.cpp index 4cce5b20b..e0aef5f8b 100644 --- a/kivio/kiviopart/stencilbardockmanager.cpp +++ b/kivio/kiviopart/stencilbardockmanager.cpp @@ -81,7 +81,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti TQPtrList dockList = m_pView->mainWindow()->dockWindows(TQt::DockLeft); for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) { - if(::tqqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { + if(::tqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { bar = static_cast(dock); break; } @@ -95,7 +95,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti TQPtrList dockList = m_pView->mainWindow()->dockWindows(TQt::DockTop); for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) { - if(::tqqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { + if(::tqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { bar = static_cast(dock); break; } @@ -109,7 +109,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti TQPtrList dockList = m_pView->mainWindow()->dockWindows(TQt::DockRight); for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) { - if(::tqqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { + if(::tqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { bar = static_cast(dock); break; } @@ -123,7 +123,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti TQPtrList dockList = m_pView->mainWindow()->dockWindows(TQt::DockBottom); for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) { - if(::tqqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { + if(::tqt_cast(dock) && (static_cast(dock)->view() == m_pView)) { bar = static_cast(dock); break; } diff --git a/kivio/kiviopart/tools/mousetoolaction.cpp b/kivio/kiviopart/tools/mousetoolaction.cpp index 38a8af695..51b2481e6 100644 --- a/kivio/kiviopart/tools/mousetoolaction.cpp +++ b/kivio/kiviopart/tools/mousetoolaction.cpp @@ -84,7 +84,7 @@ int MouseToolAction::plug(TQWidget* widget, int index) return usedIndex; } - if(::tqqt_cast(widget)) { + if(::tqt_cast(widget)) { TDEToolBar* toolBar = static_cast(widget); TDEToolBarButton* button = toolBar->getButton(itemId(usedIndex)); connect(button, TQT_SIGNAL(doubleClicked(int)), this, TQT_SIGNAL(doubleClicked())); diff --git a/kspread/kspread_object.cpp b/kspread/kspread_object.cpp index 6f397b527..ad699e4ee 100644 --- a/kspread/kspread_object.cpp +++ b/kspread/kspread_object.cpp @@ -679,7 +679,7 @@ bool EmbeddedChart::loadDocument( KoStore* _store ) KoChart::Part* EmbeddedChart::chart() { // Returns 0 when the chart couldn't be loaded and we get KoUnavailPart instead. - return ::tqqt_cast( m_embeddedObject->document() ); + return ::tqt_cast( m_embeddedObject->document() ); } /********************************************************** diff --git a/kword/KWPartFrameSet.cpp b/kword/KWPartFrameSet.cpp index d347871a8..255f084ed 100644 --- a/kword/KWPartFrameSet.cpp +++ b/kword/KWPartFrameSet.cpp @@ -360,7 +360,7 @@ KoDocument* KWDocumentChild::hitTest( const TQPoint& p, const TQWMatrix& _matrix // Only activate when it's already selected, and when not clicking on the border. // KWFrameView and the part frame policy have that logic already. - KWView* kwView = ::tqqt_cast( parentDocument()->hitTestView() ); + KWView* kwView = ::tqt_cast( parentDocument()->hitTestView() ); Q_ASSERT( kwView ); if ( kwView ) { KWFrame* frame = m_partFrameSet->frame(0); diff --git a/lib/kofficecore/KoMainWindow.cpp b/lib/kofficecore/KoMainWindow.cpp index 3641f58c5..a16755140 100644 --- a/lib/kofficecore/KoMainWindow.cpp +++ b/lib/kofficecore/KoMainWindow.cpp @@ -76,7 +76,7 @@ public: } virtual bool eventFilter( TQObject *obj, TQEvent *ev ) { - if ( !obj->isWidgetType() || ::tqqt_cast( obj ) ) + if ( !obj->isWidgetType() || ::tqt_cast( obj ) ) return false; return KParts::PartManager::eventFilter( obj, ev ); } diff --git a/lib/kofficecore/kkbdaccessextensions.cpp b/lib/kofficecore/kkbdaccessextensions.cpp index 646606d05..3ef20eb52 100644 --- a/lib/kofficecore/kkbdaccessextensions.cpp +++ b/lib/kofficecore/kkbdaccessextensions.cpp @@ -279,11 +279,11 @@ TQWidgetList* KKbdAccessExtensions::getAllPanels() TQWidget* widget = allWidgets->first(); while (widget) { if (widget->isVisible()) { - if (::tqqt_cast( widget )) { + if (::tqt_cast( widget )) { // Only size TQSplitters with at least two handles (there is always one hidden). if (dynamic_cast(widget)->sizes().count() >= 2) allPanels->append(widget); - } else if (::tqqt_cast( widget )) { + } else if (::tqt_cast( widget )) { if (dynamic_cast(widget)->isResizeEnabled()) { // kdDebug() << "KKbdAccessExtensions::getAllPanels: TQDockWindow = " << widget->name() << endl; allPanels->append(widget); @@ -303,7 +303,7 @@ void KKbdAccessExtensions::nextHandle() if (panel) { bool advance = true; d->handleNdx++; - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) advance = (d->handleNdx >= dynamic_cast(panel)->sizes().count()); else // Undocked windows have only one "handle" (center). @@ -345,7 +345,7 @@ void KKbdAccessExtensions::prevHandle() if (allWidgets->current()) panel = allWidgets->prev(); delete allWidgets; if (panel) { - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) d->handleNdx = dynamic_cast(panel)->sizes().count() - 1; else { if (dynamic_cast(panel)->area()) @@ -361,7 +361,7 @@ void KKbdAccessExtensions::prevHandle() panel = allWidgets->last(); delete allWidgets; if (panel) { - if (::tqqt_cast( panel )) + if (::tqt_cast( panel )) d->handleNdx = dynamic_cast(panel)->sizes().count() - 1; else { if (dynamic_cast(panel)->area()) @@ -391,7 +391,7 @@ void KKbdAccessExtensions::showIcon() if (!d->panel) return; TQPoint p; // kdDebug() << "KKbdAccessExtensions::showIcon: topLevelWidget = " << d->panel->topLevelWidget()->name() << endl; - if (::tqqt_cast( d->panel )) { + if (::tqt_cast( d->panel )) { TQSplitter* splitter = dynamic_cast(d->panel); int handleNdx = d->handleNdx - 1; TQValueList sizes = splitter->sizes(); @@ -461,7 +461,7 @@ void KKbdAccessExtensions::resizePanel(int dx, int dy, int state) int adj = dx + dy; if (adj == 0) return; // kdDebug() << "KKbdAccessExtensions::resizePanel: panel = " << d->panel->name() << endl; - if (::tqqt_cast( d->panel )) { + if (::tqt_cast( d->panel )) { TQSplitter* splitter = dynamic_cast(d->panel); int handleNdx = d->handleNdx - 1; TQValueList sizes = splitter->sizes(); @@ -534,7 +534,7 @@ void KKbdAccessExtensions::resizePanelFromKey(int key, int state) if (adj != 0) resizePanel(dx, dy, state); else { - if (key == TQt::Key_Enter && ::tqqt_cast( d->panel )) { + if (key == TQt::Key_Enter && ::tqt_cast( d->panel )) { TQDockWindow* dockWindow = dynamic_cast(d->panel); if (dockWindow->area()) dockWindow->undock();