diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 18:17:24 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-01 20:24:57 +0900 |
commit | b703a19e4396fe12092253fd4d69cb02a64f59a3 (patch) | |
tree | 8d0caee136603ad7e1cb1a5953c580b42c3c461a /smb4k/smb4k.cpp | |
parent | 74b97723129f8f612e11a4395cba6cf2d91c022d (diff) | |
download | smb4k-b703a19e4396fe12092253fd4d69cb02a64f59a3.tar.gz smb4k-b703a19e4396fe12092253fd4d69cb02a64f59a3.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7e5d553752153c1cd05c1b6561e33727f87b8f6f)
Diffstat (limited to 'smb4k/smb4k.cpp')
-rw-r--r-- | smb4k/smb4k.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/smb4k/smb4k.cpp b/smb4k/smb4k.cpp index 3893eb8..03a0828 100644 --- a/smb4k/smb4k.cpp +++ b/smb4k/smb4k.cpp @@ -124,17 +124,17 @@ Smb4KApp::Smb4KApp( TQWidget *parent, const char *name ) } // Connections - connect( actionCollection(), TQT_SIGNAL( actionHighlighted( TDEAction * ) ), - this, TQT_SLOT( slotActionHighlighted( TDEAction * ) ) ); + connect( actionCollection(), TQ_SIGNAL( actionHighlighted( TDEAction * ) ), + this, TQ_SLOT( slotActionHighlighted( TDEAction * ) ) ); - connect( Smb4KCore::self(), TQT_SIGNAL( runStateChanged() ), - this, TQT_SLOT( slotRunStateChanged() ) ); + connect( Smb4KCore::self(), TQ_SIGNAL( runStateChanged() ), + this, TQ_SLOT( slotRunStateChanged() ) ); - connect( Smb4KCore::bookmarkHandler(), TQT_SIGNAL( bookmarksUpdated() ), - this, TQT_SLOT( slotSetupBookmarksMenu() ) ); + connect( Smb4KCore::bookmarkHandler(), TQ_SIGNAL( bookmarksUpdated() ), + this, TQ_SLOT( slotSetupBookmarksMenu() ) ); - connect( Smb4KCore::mounter(), TQT_SIGNAL( updated() ), - this, TQT_SLOT( slotShareListUpdated() ) ); + connect( Smb4KCore::mounter(), TQ_SIGNAL( updated() ), + this, TQ_SLOT( slotShareListUpdated() ) ); } @@ -147,7 +147,7 @@ void Smb4KApp::setupActions() { actionCollection()->setHighlightingEnabled( true ); - (void) KStdAction::quit( this, TQT_SLOT( slotQuit() ), actionCollection(), "quit_action" ); + (void) KStdAction::quit( this, TQ_SLOT( slotQuit() ), actionCollection(), "quit_action" ); // Set up the "Settings" menu: setStandardToolBarMenuEnabled( true ); @@ -157,11 +157,11 @@ void Smb4KApp::setupActions() actionCollection(), "view_modes_menu" ); TDERadioAction *icon_view = new TDERadioAction( i18n( "&Icon View" ), "view_icon", CTRL+Key_I, - this, TQT_SLOT( slotChangeSharesView() ), actionCollection(), "icon_view_action" ); + this, TQ_SLOT( slotChangeSharesView() ), actionCollection(), "icon_view_action" ); icon_view->setExclusiveGroup( "SharesViewActions" ); TDERadioAction *list_view = new TDERadioAction( i18n( "List Vie&w" ), "view_detailed", CTRL+Key_W, - this, TQT_SLOT( slotChangeSharesView() ), actionCollection(), "list_view_action" ); + this, TQ_SLOT( slotChangeSharesView() ), actionCollection(), "list_view_action" ); list_view->setExclusiveGroup( "SharesViewActions" ); switch ( Smb4KSettings::sharesView() ) @@ -187,7 +187,7 @@ void Smb4KApp::setupActions() view_modes->insert( icon_view, -1 ); view_modes->insert( list_view, -1 ); - (void) KStdAction::preferences( this, TQT_SLOT( slotConfigDialog() ), actionCollection(), "configure_action" ); + (void) KStdAction::preferences( this, TQ_SLOT( slotConfigDialog() ), actionCollection(), "configure_action" ); // Notes: // (1) Actions from the parts will be included by setupView(). @@ -261,7 +261,7 @@ void Smb4KApp::setupView() createGUI( m_shares_part ); - accel()->insert( i18n( "Jump to shares view" ).utf8().data(), CTRL+Key_3, this, TQT_SLOT( slotJumpToSharesView() ), false, true ); + accel()->insert( i18n( "Jump to shares view" ).utf8().data(), CTRL+Key_3, this, TQ_SLOT( slotJumpToSharesView() ), false, true ); } } else @@ -290,7 +290,7 @@ void Smb4KApp::setupView() factory()->addClient( m_browser_part ); - accel()->insert( i18n( "Jump to network browser" ).utf8().data(), CTRL+Key_1, this, TQT_SLOT( slotJumpToNetworkBrowser() ), false, true ); + accel()->insert( i18n( "Jump to network browser" ).utf8().data(), CTRL+Key_1, this, TQ_SLOT( slotJumpToNetworkBrowser() ), false, true ); } } else @@ -329,7 +329,7 @@ void Smb4KApp::setupView() factory()->addClient( m_search_part ); - accel()->insert( i18n( "Jump to search dialog" ).utf8().data(), CTRL+Key_2, this, TQT_SLOT( slotJumpToSearchDialog() ), false, true ); + accel()->insert( i18n( "Jump to search dialog" ).utf8().data(), CTRL+Key_2, this, TQ_SLOT( slotJumpToSearchDialog() ), false, true ); } } else @@ -350,11 +350,11 @@ void Smb4KApp::setupSystemTray() m_system_tray = new Smb4KSystemTray( this, "SystemTray" ); } - connect( m_system_tray, TQT_SIGNAL( quitSelected() ), - this, TQT_SLOT( slotQuit() ) ); + connect( m_system_tray, TQ_SIGNAL( quitSelected() ), + this, TQ_SLOT( slotQuit() ) ); - connect( m_system_tray, TQT_SIGNAL( settingsChanged() ), - this, TQT_SLOT( slotSettingsChanged() ) ); + connect( m_system_tray, TQ_SIGNAL( settingsChanged() ), + this, TQ_SLOT( slotSettingsChanged() ) ); m_system_tray->embed( Smb4KSettings::embedIntoSystemTray() ); } @@ -488,7 +488,7 @@ void Smb4KApp::timerEvent( TQTimerEvent * ) ///////////////////////////////////////////////////////////////////// -// TQT_SLOT IMPLEMENTATIONS +// SLOT IMPLEMENTATIONS ///////////////////////////////////////////////////////////////////// void Smb4KApp::slotQuit() @@ -575,7 +575,7 @@ void Smb4KApp::slotConfigDialog() if ( dlg ) { - connect( dlg, TQT_SIGNAL( settingsChanged() ), this, TQT_SLOT( slotSettingsChanged() ) ); + connect( dlg, TQ_SIGNAL( settingsChanged() ), this, TQ_SLOT( slotSettingsChanged() ) ); dlg->show(); } @@ -817,7 +817,7 @@ void Smb4KApp::slotSetupBookmarksMenu() // Create the "Edit Bookmarks" action: bookmark_actions.append( new TDEAction( i18n( "&Edit Bookmarks" ), "bookmark", CTRL+Key_E, - this, TQT_SLOT( slotBookmarkEditor() ), actionCollection(), + this, TQ_SLOT( slotBookmarkEditor() ), actionCollection(), "edit_bookmarks_action" ) ); // Get the "Add Bookmark" action from the browser: @@ -888,7 +888,7 @@ void Smb4KApp::slotSetupBookmarksMenu() { TDEAction *a = new TDEAction( *it, "folder", TDEShortcut::null(), 0, 0, actionCollection(), (*it).utf8() ); a->setGroup( "Bookmarks" ); - connect( a, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotBookmarkActivated() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( slotBookmarkActivated() ) ); bookmark_list.append( a ); } |