summaryrefslogtreecommitdiffstats
path: root/khelpcenter
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-22 18:45:07 +0900
committerMichele Calgaro <[email protected]>2023-12-26 21:27:31 +0900
commit0e5ef873f0394ebc87c08d030130cf4089cb1d42 (patch)
tree39b0a54ef4dfc173c556d6e6c7ece5107aed464a /khelpcenter
parentdcda00127ea03e99ca6253422624e2d3c2e62f3a (diff)
downloadtdebase-0e5ef873f0394ebc87c08d030130cf4089cb1d42.tar.gz
tdebase-0e5ef873f0394ebc87c08d030130cf4089cb1d42.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit c4a6487c827add9382001ff1892b8fb3bfa94682)
Diffstat (limited to 'khelpcenter')
-rw-r--r--khelpcenter/mainwindow.cpp22
-rw-r--r--khelpcenter/navigator.cpp4
2 files changed, 13 insertions, 13 deletions
diff --git a/khelpcenter/mainwindow.cpp b/khelpcenter/mainwindow.cpp
index 8a79b536c..3579b1afe 100644
--- a/khelpcenter/mainwindow.cpp
+++ b/khelpcenter/mainwindow.cpp
@@ -90,7 +90,7 @@ MainWindow::MainWindow()
{
mSplitter = new TQSplitter( this );
- mDoc = new View( mSplitter, 0, TQT_TQOBJECT(this), 0, TDEHTMLPart::DefaultGUI, actionCollection() );
+ mDoc = new View( mSplitter, 0, this, 0, TDEHTMLPart::DefaultGUI, actionCollection() );
connect( mDoc, TQT_SIGNAL( setWindowCaption( const TQString & ) ),
TQT_SLOT( setCaption( const TQString & ) ) );
connect( mDoc, TQT_SIGNAL( setStatusBarText( const TQString & ) ),
@@ -208,8 +208,8 @@ void MainWindow::writeConfig()
void MainWindow::setupActions()
{
- KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() );
- KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT( print() ), actionCollection(),
+ KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
+ KStdAction::print( this, TQT_SLOT( print() ), actionCollection(),
"printFrame" );
TDEAction *prevPage = new TDEAction( i18n( "Previous Page" ), CTRL+Key_PageUp, mDoc, TQT_SLOT( prevPage() ),
@@ -220,19 +220,19 @@ void MainWindow::setupActions()
actionCollection(), "nextPage" );
nextPage->setWhatsThis( i18n( "Moves to the next page of the document" ) );
- TDEAction *home = KStdAction::home( TQT_TQOBJECT(this), TQT_SLOT( slotShowHome() ), actionCollection() );
+ TDEAction *home = KStdAction::home( this, TQT_SLOT( slotShowHome() ), actionCollection() );
home->setText(i18n("Table of &Contents"));
home->setToolTip(i18n("Table of contents"));
home->setWhatsThis(i18n("Go back to the table of contents"));
- mCopyText = KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(slotCopySelectedText()), actionCollection(), "copy_text");
+ mCopyText = KStdAction::copy( this, TQT_SLOT(slotCopySelectedText()), actionCollection(), "copy_text");
- mLastSearchAction = new TDEAction( i18n("&Last Search Result"), 0, TQT_TQOBJECT(this),
+ mLastSearchAction = new TDEAction( i18n("&Last Search Result"), 0, this,
TQT_SLOT( slotLastSearch() ),
actionCollection(), "lastsearch" );
mLastSearchAction->setEnabled( false );
- new TDEAction( i18n("Build Search Index..."), 0, TQT_TQOBJECT(mNavigator),
+ new TDEAction( i18n("Build Search Index..."), 0, mNavigator,
TQT_SLOT( showIndexDialog() ), actionCollection(), "build_index" );
KStdAction::keyBindings( guiFactory(), TQT_SLOT( configureShortcuts() ),
actionCollection() );
@@ -240,16 +240,16 @@ void MainWindow::setupActions()
TDEConfig *cfg = TDEGlobal::config();
cfg->setGroup( "Debug" );
if ( cfg->readBoolEntry( "SearchErrorLog", false ) ) {
- new TDEAction( i18n("Show Search Error Log"), 0, TQT_TQOBJECT(this),
+ new TDEAction( i18n("Show Search Error Log"), 0, this,
TQT_SLOT( showSearchStderr() ), actionCollection(),
"show_search_stderr" );
}
History::self().setupActions( actionCollection() );
- new TDEAction( i18n( "Configure Fonts..." ), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotConfigureFonts() ), actionCollection(), "configure_fonts" );
- new TDEAction( i18n( "Increase Font Sizes" ), "zoom-in", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotIncFontSizes() ), actionCollection(), "incFontSizes" );
- new TDEAction( i18n( "Decrease Font Sizes" ), "zoom-out", TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( slotDecFontSizes() ), actionCollection(), "decFontSizes" );
+ new TDEAction( i18n( "Configure Fonts..." ), TDEShortcut(), this, TQT_SLOT( slotConfigureFonts() ), actionCollection(), "configure_fonts" );
+ new TDEAction( i18n( "Increase Font Sizes" ), "zoom-in", TDEShortcut(), this, TQT_SLOT( slotIncFontSizes() ), actionCollection(), "incFontSizes" );
+ new TDEAction( i18n( "Decrease Font Sizes" ), "zoom-out", TDEShortcut(), this, TQT_SLOT( slotDecFontSizes() ), actionCollection(), "decFontSizes" );
}
void MainWindow::slotCopySelectedText()
diff --git a/khelpcenter/navigator.cpp b/khelpcenter/navigator.cpp
index 05bd68129..4cb3b2f00 100644
--- a/khelpcenter/navigator.cpp
+++ b/khelpcenter/navigator.cpp
@@ -294,14 +294,14 @@ void Navigator::createItemFromDesktopFile( NavigatorItem *topItem,
void Navigator::insertInfoDocs( NavigatorItem *topItem )
{
- InfoTree *infoTree = new InfoTree( TQT_TQOBJECT(this) );
+ InfoTree *infoTree = new InfoTree( this );
infoTree->build( topItem );
}
NavigatorItem *Navigator::insertScrollKeeperDocs( NavigatorItem *topItem,
NavigatorItem *after )
{
- ScrollKeeperTreeBuilder *builder = new ScrollKeeperTreeBuilder( TQT_TQOBJECT(this) );
+ ScrollKeeperTreeBuilder *builder = new ScrollKeeperTreeBuilder( this );
return builder->build( topItem, after );
}