summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/mainwindowactions.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-26 02:33:14 +0900
committerMichele Calgaro <[email protected]>2023-11-26 17:32:41 +0900
commitd31a7027d0b8e2237b1b398e436e82e9944b38cb (patch)
tree1cd933e46759d2209dad0c74090f1e3487ab4b3e /kdevdesigner/designer/mainwindowactions.cpp
parent8308ebcedcc01c7588346da09b69b97b5c8e8059 (diff)
downloadtdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.tar.gz
tdevelop-d31a7027d0b8e2237b1b398e436e82e9944b38cb.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 676a13490dc7163e5c99a0f39094a2a4148d3963)
Diffstat (limited to 'kdevdesigner/designer/mainwindowactions.cpp')
-rw-r--r--kdevdesigner/designer/mainwindowactions.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kdevdesigner/designer/mainwindowactions.cpp b/kdevdesigner/designer/mainwindowactions.cpp
index 9ea32977..9733097e 100644
--- a/kdevdesigner/designer/mainwindowactions.cpp
+++ b/kdevdesigner/designer/mainwindowactions.cpp
@@ -958,15 +958,15 @@ void MainWindow::setupWindowActions()
int j = 0;
for ( int i = 0; i < int( windows.count() ); ++i ) {
TQWidget *w = windows.at( i );
- if ( !::tqqt_cast<FormWindow*>(w) && !::tqqt_cast<SourceEditor*>(w) )
+ if ( !::tqt_cast<FormWindow*>(w) && !::tqt_cast<SourceEditor*>(w) )
continue;
- if ( ::tqqt_cast<FormWindow*>(w) && ( ( (FormWindow*)w )->isFake() ) )
+ if ( ::tqt_cast<FormWindow*>(w) && ( ( (FormWindow*)w )->isFake() ) )
continue;
j++;
TQString itemText;
if ( j < 10 )
itemText = TQString("&%1 ").arg( j );
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
itemText += w->name();
else
itemText += w->caption();
@@ -1085,9 +1085,9 @@ void MainWindow::fileClose()
} else {
TQWidget *w = qworkspace->activeWindow();
if ( w ) {
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
( (FormWindow*)w )->formFile()->close();
- else if ( ::tqqt_cast<SourceEditor*>(w) )
+ else if ( ::tqt_cast<SourceEditor*>(w) )
( (SourceEditor*)w )->close();
}
}
@@ -1132,14 +1132,14 @@ void MainWindow::fileCloseProject()
while ( wit.current() ) {
TQWidget *w = wit.current();
++wit;
- if ( ::tqqt_cast<FormWindow*>(w) ) {
+ if ( ::tqt_cast<FormWindow*>(w) ) {
if ( ( (FormWindow*)w )->project() == pro ) {
if ( ( (FormWindow*)w )->formFile()->editor() )
windows.removeRef( ( (FormWindow*)w )->formFile()->editor() );
if ( !( (FormWindow*)w )->formFile()->close() )
return;
}
- } else if ( ::tqqt_cast<SourceEditor*>(w) ) {
+ } else if ( ::tqt_cast<SourceEditor*>(w) ) {
if ( !( (SourceEditor*)w )->close() )
return;
}
@@ -1157,7 +1157,7 @@ void MainWindow::fileCloseProject()
}
if ( !windows.isEmpty() ) {
for ( TQWidget *w = windows.first(); w; w = windows.next() ) {
- if ( !::tqqt_cast<FormWindow*>(w) )
+ if ( !::tqt_cast<FormWindow*>(w) )
continue;
w->setFocus();
activeWindowChanged( w );
@@ -1354,7 +1354,7 @@ bool MainWindow::fileSaveForm()
TQWidget *w = qWorkspace()->activeWindow();
if ( w ) {
- if ( ::tqqt_cast<SourceEditor*>(w) ) {
+ if ( ::tqt_cast<SourceEditor*>(w) ) {
SourceEditor *se = (SourceEditor*)w;
if ( se->formWindow() )
fw = se->formWindow();
@@ -1387,9 +1387,9 @@ bool MainWindow::fileSaveAs()
TQWidget *w = qworkspace->activeWindow();
if ( !w )
return TRUE;
- if ( ::tqqt_cast<FormWindow*>(w) )
+ if ( ::tqt_cast<FormWindow*>(w) )
return ( (FormWindow*)w )->formFile()->saveAs();
- else if ( ::tqqt_cast<SourceEditor*>(w) )
+ else if ( ::tqt_cast<SourceEditor*>(w) )
return ( (SourceEditor*)w )->saveAs();
return FALSE;
}
@@ -1486,7 +1486,7 @@ void MainWindow::createNewTemplate()
void MainWindow::editUndo()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editUndo();
return;
}
@@ -1497,7 +1497,7 @@ void MainWindow::editUndo()
void MainWindow::editRedo()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editRedo();
return;
}
@@ -1508,7 +1508,7 @@ void MainWindow::editRedo()
void MainWindow::editCut()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editCut();
return;
}
@@ -1519,7 +1519,7 @@ void MainWindow::editCut()
void MainWindow::editCopy()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editCopy();
return;
}
@@ -1530,7 +1530,7 @@ void MainWindow::editCopy()
void MainWindow::editPaste()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editPaste();
return;
}
@@ -1569,7 +1569,7 @@ void MainWindow::editDelete()
void MainWindow::editSelectAll()
{
if ( qWorkspace()->activeWindow() &&
- ::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
+ ::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) ) {
( (SourceEditor*)qWorkspace()->activeWindow() )->editSelectAll();
return;
}
@@ -1948,7 +1948,7 @@ void MainWindow::editPreferences()
void MainWindow::searchFind()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !findDialog )
@@ -1970,7 +1970,7 @@ void MainWindow::searchIncremetalFindMenu()
void MainWindow::searchIncremetalFind()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
@@ -1980,7 +1980,7 @@ void MainWindow::searchIncremetalFind()
void MainWindow::searchIncremetalFindNext()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
( (SourceEditor*)qWorkspace()->activeWindow() )->editorInterface()->find( incrementalSearch->text(),
@@ -1990,7 +1990,7 @@ void MainWindow::searchIncremetalFindNext()
void MainWindow::searchReplace()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !replaceDialog )
@@ -2006,7 +2006,7 @@ void MainWindow::searchReplace()
void MainWindow::searchGotoLine()
{
if ( !qWorkspace()->activeWindow() ||
- !::tqqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
+ !::tqt_cast<SourceEditor*>(qWorkspace()->activeWindow()) )
return;
if ( !gotoLineDialog )