summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-26 02:19:19 +0900
committerMichele Calgaro <[email protected]>2023-11-26 02:19:19 +0900
commitb727f4b3b1957bec28a350575237b93f8f278cdb (patch)
tree798a12c2a92121c5683a7a0338fdaec289e1c7fd
parentdcc4dc7a89e5f5f7fb4217815b892f4b0106d5a0 (diff)
downloadkoffice-b727f4b3b1957bec28a350575237b93f8f278cdb.tar.gz
koffice-b727f4b3b1957bec28a350575237b93f8f278cdb.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--chalk/ui/kis_previewwidget.cpp2
-rw-r--r--filters/kspread/csv/csvexport.cpp2
-rw-r--r--filters/kspread/csv/csvimport.cpp2
-rw-r--r--filters/kspread/gnumeric/gnumericexport.cpp2
-rw-r--r--filters/kspread/gnumeric/gnumericimport.cpp2
-rw-r--r--filters/kspread/html/htmlexport.cpp2
-rw-r--r--filters/kspread/kexi/kspread_kexiimport.cpp2
-rw-r--r--filters/kspread/libkspreadexport/KSpreadLeader.cpp2
-rw-r--r--filters/kspread/opencalc/opencalcexport.cpp2
-rw-r--r--filters/kspread/opencalc/opencalcimport.cpp2
-rw-r--r--filters/kspread/qpro/qproimport.cpp2
-rw-r--r--kivio/kiviopart/stencilbardockmanager.cpp8
-rw-r--r--kivio/kiviopart/tools/mousetoolaction.cpp2
-rw-r--r--kspread/kspread_object.cpp2
-rw-r--r--kword/KWPartFrameSet.cpp2
-rw-r--r--lib/kofficecore/KoMainWindow.cpp2
-rw-r--r--lib/kofficecore/kkbdaccessextensions.cpp16
17 files changed, 27 insertions, 27 deletions
diff --git a/chalk/ui/kis_previewwidget.cpp b/chalk/ui/kis_previewwidget.cpp
index a95c4920..f2fe0bb7 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<KisPaintLayer*>(m_scaledImage->findLayer(layerName));
+ KisPaintLayerSP pl = ::tqt_cast<KisPaintLayer*>(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 ceeb8b5e..e5d7a045 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<const KSpread::Doc *>( document ) )
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 72cadfa2..7b6f740c 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<const KSpread::Doc *>( document ) )
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 77926298..4e88e6be 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<const KSpread::Doc *>( document ) ) // it's safer that way :)
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 d763fdef..511cfb0b 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<const KSpread::Doc *>( document ) ) // it's safer that way :)
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 f680207e..68f4081c 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<const KSpread::Doc *>( document ) ) // it's safer that way :)
+ if( !::tqt_cast<const KSpread::Doc *>( 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 6100dabe..090f05ce 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<const KSpread::Doc *>( document ) )
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 8e300c7d..3e8441b0 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<const KSpread::Doc *>( document ) ) {
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 8f8018c5..c0fe3c2e 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<const KSpread::Doc *>( document ) )
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 2ccf3173..25c0d94a 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<const KSpread::Doc *>( document ) ) // it's safer that way :)
+ if ( !::tqt_cast<const KSpread::Doc *>( 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 e282a769..ea989f9a 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<const KSpread::Doc *>( document ) ) // it's safer that way :)
+ if( !::tqt_cast<const KSpread::Doc *>( 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 4cce5b20..e0aef5f8 100644
--- a/kivio/kiviopart/stencilbardockmanager.cpp
+++ b/kivio/kiviopart/stencilbardockmanager.cpp
@@ -81,7 +81,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti
TQPtrList<TQDockWindow> dockList = m_pView->mainWindow()->dockWindows(TQt::DockLeft);
for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) {
- if(::tqqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
+ if(::tqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
bar = static_cast<KivioStackBar*>(dock);
break;
}
@@ -95,7 +95,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti
TQPtrList<TQDockWindow> dockList = m_pView->mainWindow()->dockWindows(TQt::DockTop);
for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) {
- if(::tqqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
+ if(::tqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
bar = static_cast<KivioStackBar*>(dock);
break;
}
@@ -109,7 +109,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti
TQPtrList<TQDockWindow> dockList = m_pView->mainWindow()->dockWindows(TQt::DockRight);
for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) {
- if(::tqqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
+ if(::tqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
bar = static_cast<KivioStackBar*>(dock);
break;
}
@@ -123,7 +123,7 @@ void StencilBarDockManager::insertStencilSet( TQWidget* w, const TQString& capti
TQPtrList<TQDockWindow> dockList = m_pView->mainWindow()->dockWindows(TQt::DockBottom);
for(TQDockWindow* dock = dockList.first(); dock; dock = dockList.next()) {
- if(::tqqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
+ if(::tqt_cast<KivioStackBar*>(dock) && (static_cast<KivioStackBar*>(dock)->view() == m_pView)) {
bar = static_cast<KivioStackBar*>(dock);
break;
}
diff --git a/kivio/kiviopart/tools/mousetoolaction.cpp b/kivio/kiviopart/tools/mousetoolaction.cpp
index 38a8af69..51b2481e 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<TDEToolBar*>(widget)) {
+ if(::tqt_cast<TDEToolBar*>(widget)) {
TDEToolBar* toolBar = static_cast<TDEToolBar*>(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 6f397b52..ad699e4e 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<KoChart::Part *>( m_embeddedObject->document() );
+ return ::tqt_cast<KoChart::Part *>( m_embeddedObject->document() );
}
/**********************************************************
diff --git a/kword/KWPartFrameSet.cpp b/kword/KWPartFrameSet.cpp
index d347871a..255f084e 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<KWView *>( parentDocument()->hitTestView() );
+ KWView* kwView = ::tqt_cast<KWView *>( 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 3641f58c..a1675514 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<KoFrame *>( obj ) )
+ if ( !obj->isWidgetType() || ::tqt_cast<KoFrame *>( obj ) )
return false;
return KParts::PartManager::eventFilter( obj, ev );
}
diff --git a/lib/kofficecore/kkbdaccessextensions.cpp b/lib/kofficecore/kkbdaccessextensions.cpp
index 646606d0..3ef20eb5 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<TQSplitter*>( widget )) {
+ if (::tqt_cast<TQSplitter*>( widget )) {
// Only size TQSplitters with at least two handles (there is always one hidden).
if (dynamic_cast<TQSplitter *>(widget)->sizes().count() >= 2)
allPanels->append(widget);
- } else if (::tqqt_cast<TQDockWindow*>( widget )) {
+ } else if (::tqt_cast<TQDockWindow*>( widget )) {
if (dynamic_cast<TQDockWindow *>(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<TQSplitter*>( panel ))
+ if (::tqt_cast<TQSplitter*>( panel ))
advance = (d->handleNdx >= dynamic_cast<TQSplitter *>(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<TQSplitter*>( panel ))
+ if (::tqt_cast<TQSplitter*>( panel ))
d->handleNdx = dynamic_cast<TQSplitter *>(panel)->sizes().count() - 1;
else {
if (dynamic_cast<TQDockWindow *>(panel)->area())
@@ -361,7 +361,7 @@ void KKbdAccessExtensions::prevHandle()
panel = allWidgets->last();
delete allWidgets;
if (panel) {
- if (::tqqt_cast<TQSplitter*>( panel ))
+ if (::tqt_cast<TQSplitter*>( panel ))
d->handleNdx = dynamic_cast<TQSplitter *>(panel)->sizes().count() - 1;
else {
if (dynamic_cast<TQDockWindow *>(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<TQSplitter*>( d->panel )) {
+ if (::tqt_cast<TQSplitter*>( d->panel )) {
TQSplitter* splitter = dynamic_cast<TQSplitter *>(d->panel);
int handleNdx = d->handleNdx - 1;
TQValueList<int> 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<TQSplitter*>( d->panel )) {
+ if (::tqt_cast<TQSplitter*>( d->panel )) {
TQSplitter* splitter = dynamic_cast<TQSplitter *>(d->panel);
int handleNdx = d->handleNdx - 1;
TQValueList<int> 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<TQDockWindow*>( d->panel )) {
+ if (key == TQt::Key_Enter && ::tqt_cast<TQDockWindow*>( d->panel )) {
TQDockWindow* dockWindow = dynamic_cast<TQDockWindow *>(d->panel);
if (dockWindow->area())
dockWindow->undock();