diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-22 18:06:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-02-03 22:58:51 +0900 |
commit | a1304520200eb5596854e7d4ee9019093a271769 (patch) | |
tree | 0e92d1c79e99732875e53b38cd67d2bfe5c221a5 /src/app/mainWindow.cpp | |
parent | fc0e59180568a65a158f8a356679315fee818544 (diff) | |
download | codeine-a1304520200eb5596854e7d4ee9019093a271769.tar.gz codeine-a1304520200eb5596854e7d4ee9019093a271769.zip |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/app/mainWindow.cpp')
-rw-r--r-- | src/app/mainWindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/app/mainWindow.cpp b/src/app/mainWindow.cpp index 5861427..78bf592 100644 --- a/src/app/mainWindow.cpp +++ b/src/app/mainWindow.cpp @@ -57,7 +57,7 @@ namespace Codeine { /// @see codeine.h - TQWidget *mainWindow() { return kapp->mainWidget(); } + TQWidget *mainWindow() { return tdeApp->mainWidget(); } MainWindow::MainWindow() @@ -70,7 +70,7 @@ MainWindow::MainWindow() clearWFlags( WDestructiveClose ); //we are allocated on the stack - kapp->setMainWidget( this ); + tdeApp->setMainWidget( this ); m_widgetStack = new TQWidgetStack(this, "m_widgetStack"); @@ -169,7 +169,7 @@ MainWindow::MainWindow() KXMLGUIClient::stateChanged( "empty" ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - if( args->count() || args->isSet( "play-dvd" ) || kapp->isRestored() ) + if( args->count() || args->isSet( "play-dvd" ) || tdeApp->isRestored() ) //we need to resize the window, so we can't show the window yet init(); else { @@ -208,7 +208,7 @@ MainWindow::init() TQApplication::restoreOverrideCursor(); - if( !kapp->isRestored() ) { + if( !tdeApp->isRestored() ) { TDECmdLineArgs &args = *TDECmdLineArgs::parsedArgs(); if (args.isSet( "play-dvd" )) open( "dvd:/" ); @@ -266,7 +266,7 @@ MainWindow::setupActions() TDEActionCollection * const ac = actionCollection(); - KStdAction::quit( kapp, TQ_SLOT(quit()), ac ); + KStdAction::quit( tdeApp, TQ_SLOT(quit()), ac ); KStdAction::open( this, TQ_SLOT(playMedia()), ac, "play_media" )->setText( i18n("Play &Media...") ); connect( new FullScreenAction( this, ac ), TQ_SIGNAL(toggled( bool )), TQ_SLOT(fullScreenToggled( bool )) ); @@ -713,7 +713,7 @@ MainWindow::menu( const TQString& name ) TDEActionCollection* actionCollection() { - return static_cast<MainWindow*>(kapp->mainWidget())->actionCollection(); + return static_cast<MainWindow*>(tdeApp->mainWidget())->actionCollection(); } /// Convenience class for other classes that need access to the actions @@ -726,7 +726,7 @@ action( const char *name ) TDEActionCollection *actionCollection = nullptr; TDEAction *action = nullptr; - mainWindow = dynamic_cast<MainWindow *>(kapp->mainWidget()); + mainWindow = dynamic_cast<MainWindow *>(tdeApp->mainWidget()); if (mainWindow) { actionCollection = mainWindow->actionCollection(); |