diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-08 13:26:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-09 15:46:11 +0900 |
commit | 74b97723129f8f612e11a4395cba6cf2d91c022d (patch) | |
tree | 6507d9e9d1308bc5d82027156eb60e764db565a6 /smb4k/smb4k.cpp | |
parent | cfafca887c20cf9f855d52b48edbdad0491cc763 (diff) | |
download | smb4k-74b97723129f8f612e11a4395cba6cf2d91c022d.tar.gz smb4k-74b97723129f8f612e11a4395cba6cf2d91c022d.zip |
Remove various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4f622a40c9317344d8d2e98ec85c19b783923133)
Diffstat (limited to 'smb4k/smb4k.cpp')
-rw-r--r-- | smb4k/smb4k.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/smb4k/smb4k.cpp b/smb4k/smb4k.cpp index ee347d4..3893eb8 100644 --- a/smb4k/smb4k.cpp +++ b/smb4k/smb4k.cpp @@ -77,7 +77,7 @@ Smb4KApp::Smb4KApp( TQWidget *parent, const char *name ) // Setup all things that need to be done *after* createGUI() // was run: - TQPopupMenu *settings = static_cast<TQPopupMenu *>( TQT_TQWIDGET(child( "settings", "TQPopupMenu", true )) ); + TQPopupMenu *settings = static_cast<TQPopupMenu *>( child( "settings", "TQPopupMenu", true ) ); if ( settings ) { @@ -147,7 +147,7 @@ void Smb4KApp::setupActions() { actionCollection()->setHighlightingEnabled( true ); - (void) KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( slotQuit() ), actionCollection(), "quit_action" ); + (void) KStdAction::quit( this, TQT_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, - TQT_TQOBJECT(this), TQT_SLOT( slotChangeSharesView() ), actionCollection(), "icon_view_action" ); + this, TQT_SLOT( slotChangeSharesView() ), actionCollection(), "icon_view_action" ); icon_view->setExclusiveGroup( "SharesViewActions" ); TDERadioAction *list_view = new TDERadioAction( i18n( "List Vie&w" ), "view_detailed", CTRL+Key_W, - TQT_TQOBJECT(this), TQT_SLOT( slotChangeSharesView() ), actionCollection(), "list_view_action" ); + this, TQT_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( TQT_TQOBJECT(this), TQT_SLOT( slotConfigDialog() ), actionCollection(), "configure_action" ); + (void) KStdAction::preferences( this, TQT_SLOT( slotConfigDialog() ), actionCollection(), "configure_action" ); // Notes: // (1) Actions from the parts will be included by setupView(). @@ -248,7 +248,7 @@ void Smb4KApp::setupView() if ( shares_factory ) { - m_shares_part = static_cast<KParts::Part *>( shares_factory->create( TQT_TQOBJECT(this), "SharesPart", "KParts::Part" ) ); + m_shares_part = static_cast<KParts::Part *>( shares_factory->create( this, "SharesPart", "KParts::Part" ) ); if ( m_shares_part ) { @@ -261,7 +261,7 @@ void Smb4KApp::setupView() createGUI( m_shares_part ); - accel()->insert( i18n( "Jump to shares view" ).utf8().data(), CTRL+Key_3, TQT_TQOBJECT(this), TQT_SLOT( slotJumpToSharesView() ), false, true ); + accel()->insert( i18n( "Jump to shares view" ).utf8().data(), CTRL+Key_3, this, TQT_SLOT( slotJumpToSharesView() ), false, true ); } } else @@ -280,7 +280,7 @@ void Smb4KApp::setupView() if ( browser_factory ) { - m_browser_part = static_cast<KParts::Part *>( browser_factory->create( TQT_TQOBJECT(this), "BrowserPart", "KParts::Part" ) ); + m_browser_part = static_cast<KParts::Part *>( browser_factory->create( this, "BrowserPart", "KParts::Part" ) ); if ( m_browser_part ) { @@ -290,7 +290,7 @@ void Smb4KApp::setupView() factory()->addClient( m_browser_part ); - accel()->insert( i18n( "Jump to network browser" ).utf8().data(), CTRL+Key_1, TQT_TQOBJECT(this), TQT_SLOT( slotJumpToNetworkBrowser() ), false, true ); + accel()->insert( i18n( "Jump to network browser" ).utf8().data(), CTRL+Key_1, this, TQT_SLOT( slotJumpToNetworkBrowser() ), false, true ); } } else @@ -309,7 +309,7 @@ void Smb4KApp::setupView() if ( search_factory ) { - m_search_part = static_cast<KParts::Part *>( search_factory->create( TQT_TQOBJECT(this), "SearchDialogPart", "KParts::Part" ) ); + m_search_part = static_cast<KParts::Part *>( search_factory->create( this, "SearchDialogPart", "KParts::Part" ) ); if ( m_search_part ) { @@ -329,7 +329,7 @@ void Smb4KApp::setupView() factory()->addClient( m_search_part ); - accel()->insert( i18n( "Jump to search dialog" ).utf8().data(), CTRL+Key_2, TQT_TQOBJECT(this), TQT_SLOT( slotJumpToSearchDialog() ), false, true ); + accel()->insert( i18n( "Jump to search dialog" ).utf8().data(), CTRL+Key_2, this, TQT_SLOT( slotJumpToSearchDialog() ), false, true ); } } else @@ -403,7 +403,7 @@ void Smb4KApp::changeSharesView() if ( shares_factory ) { - m_shares_part = static_cast<KParts::Part *>( shares_factory->create( TQT_TQOBJECT(this), "SharesPart", "KParts::Part" ) ); + m_shares_part = static_cast<KParts::Part *>( shares_factory->create( this, "SharesPart", "KParts::Part" ) ); if ( m_shares_part ) { @@ -478,7 +478,7 @@ bool Smb4KApp::queryClose() void Smb4KApp::timerEvent( TQTimerEvent * ) { - KProgress *progress_bar = static_cast<KProgress *>( TQT_TQWIDGET(child( "StatusBarProgressBar", "KProgress", true )) ); + KProgress *progress_bar = static_cast<KProgress *>( child( "StatusBarProgressBar", "KProgress", true ) ); if ( progress_bar ) { @@ -571,11 +571,11 @@ void Smb4KApp::slotConfigDialog() if ( config_factory ) { - TDEConfigDialog *dlg = static_cast<TDEConfigDialog *>( TQT_TQWIDGET(config_factory->create( TQT_TQOBJECT(this), "ConfigDialog", "TDEConfigDialog" )) ); + TDEConfigDialog *dlg = static_cast<TDEConfigDialog *>( config_factory->create( this, "ConfigDialog", "TDEConfigDialog" ) ); if ( dlg ) { - connect( dlg, TQT_SIGNAL( settingsChanged() ), TQT_TQOBJECT(this), TQT_SLOT( slotSettingsChanged() ) ); + connect( dlg, TQT_SIGNAL( settingsChanged() ), this, TQT_SLOT( slotSettingsChanged() ) ); dlg->show(); } @@ -618,7 +618,7 @@ void Smb4KApp::slotSettingsChanged() void Smb4KApp::slotBookmarkEditor() { - Smb4KBookmarkEditor *dlg = static_cast<Smb4KBookmarkEditor *>( TQT_TQWIDGET(child( "BookmarkEditor", "Smb4KBookmarkEditor", true )) ); + Smb4KBookmarkEditor *dlg = static_cast<Smb4KBookmarkEditor *>( child( "BookmarkEditor", "Smb4KBookmarkEditor", true ) ); if ( !dlg ) { @@ -632,7 +632,7 @@ void Smb4KApp::slotBookmarkEditor() void Smb4KApp::slotRunStateChanged() { // Get the progress bar: - KProgress *progress_bar = static_cast<KProgress *>( TQT_TQWIDGET(child( "StatusBarProgressBar", "KProgress", true )) ); + KProgress *progress_bar = static_cast<KProgress *>( child( "StatusBarProgressBar", "KProgress", true ) ); // Clear the status bar: statusBar()->clear(); @@ -817,7 +817,7 @@ void Smb4KApp::slotSetupBookmarksMenu() // Create the "Edit Bookmarks" action: bookmark_actions.append( new TDEAction( i18n( "&Edit Bookmarks" ), "bookmark", CTRL+Key_E, - TQT_TQOBJECT(this), TQT_SLOT( slotBookmarkEditor() ), actionCollection(), + this, TQT_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() ), TQT_TQOBJECT(this), TQT_SLOT( slotBookmarkActivated() ) ); + connect( a, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotBookmarkActivated() ) ); bookmark_list.append( a ); } |