diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-17 20:55:09 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-18 22:42:15 +0900 |
commit | 1a75f32008be8c5bcb3add8055f1db5ae8bd602f (patch) | |
tree | a3af1b0cb9c2e5d45b2fa8da72b974ab8e34251a /src/app | |
parent | 9fd8fe68c729033cd9e4f75ca53b86a054d336a6 (diff) | |
download | filelight-1a75f32008be8c5bcb3add8055f1db5ae8bd602f.tar.gz filelight-1a75f32008be8c5bcb3add8055f1db5ae8bd602f.zip |
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/mainWindow.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/app/mainWindow.cpp b/src/app/mainWindow.cpp index 1b35f70..fc855dd 100644 --- a/src/app/mainWindow.cpp +++ b/src/app/mainWindow.cpp @@ -43,7 +43,7 @@ MainWindow::MainWindow() exit( 1 ); //don't use TQApplication::exit() - it causes a crash } - m_part = (Part *)factory->create( TQT_TQOBJECT(this), "part", "KParts::ReadOnlyPart" ); + m_part = (Part *)factory->create( this, "part", "KParts::ReadOnlyPart" ); setCentralWidget( m_part->widget() ); setStandardToolBarMenuEnabled( true ); @@ -82,22 +82,22 @@ MainWindow::setupActions() //singleton function m_combo->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); m_combo->setDuplicatesEnabled( false ); - KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(slotScanDirectory()), ac, "scan_directory" ); - KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), ac ); - KStdAction::up( TQT_TQOBJECT(this), TQT_SLOT(slotUp()), ac ); - KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configToolbars()), ac); - KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(configKeys()), ac); + KStdAction::open( this, TQT_SLOT(slotScanDirectory()), ac, "scan_directory" ); + KStdAction::quit( this, TQT_SLOT(close()), ac ); + KStdAction::up( this, TQT_SLOT(slotUp()), ac ); + KStdAction::configureToolbars(this, TQT_SLOT(configToolbars()), ac); + KStdAction::keyBindings(this, TQT_SLOT(configKeys()), ac); - new TDEAction( i18n( "Scan &Home Directory" ), "folder_home", CTRL+Key_Home, TQT_TQOBJECT(this), TQT_SLOT(slotScanHomeDirectory()), ac, "scan_home" ); - new TDEAction( i18n( "Scan &Root Directory" ), "folder_red", 0, TQT_TQOBJECT(this), TQT_SLOT(slotScanRootDirectory()), ac, "scan_root" ); - new TDEAction( i18n( "Rescan" ), "reload", TDEStdAccel::reload(), TQT_TQOBJECT(m_part), TQT_SLOT(rescan()), ac, "scan_rescan" ); - new TDEAction( i18n( "Stop" ), "process-stop", TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(slotAbortScan()), ac, "scan_stop" ); - new TDEAction( i18n( "Clear Location Bar" ), TDEApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, TQT_TQOBJECT(m_combo), TQT_SLOT(clearEdit()), ac, "clear_location" ); - new TDEAction( i18n( "Go" ), "key_enter", 0, TQT_TQOBJECT(m_combo), TQT_SIGNAL(returnPressed()), ac, "go" ); + new TDEAction( i18n( "Scan &Home Directory" ), "folder_home", CTRL+Key_Home, this, TQT_SLOT(slotScanHomeDirectory()), ac, "scan_home" ); + new TDEAction( i18n( "Scan &Root Directory" ), "folder_red", 0, this, TQT_SLOT(slotScanRootDirectory()), ac, "scan_root" ); + new TDEAction( i18n( "Rescan" ), "reload", TDEStdAccel::reload(), m_part, TQT_SLOT(rescan()), ac, "scan_rescan" ); + new TDEAction( i18n( "Stop" ), "process-stop", TQt::Key_Escape, this, TQT_SLOT(slotAbortScan()), ac, "scan_stop" ); + new TDEAction( i18n( "Clear Location Bar" ), TDEApplication::reverseLayout() ? "clear_left" : "locationbar_erase", 0, m_combo, TQT_SLOT(clearEdit()), ac, "clear_location" ); + new TDEAction( i18n( "Go" ), "key_enter", 0, m_combo, TQT_SIGNAL(returnPressed()), ac, "go" ); KWidgetAction *combo = new KWidgetAction( m_combo, i18n( "Location Bar" ), 0, 0, 0, ac, "location_bar" ); m_recentScans = new TDERecentFilesAction( i18n( "&Recent Scans" ), 0, ac, "scan_recent", 8 ); - m_histories = new HistoryCollection( ac, TQT_TQOBJECT(this), "history_collection" ); + m_histories = new HistoryCollection( ac, this, "history_collection" ); ac->action( "scan_directory" )->setText( i18n( "&Scan Directory..." ) ); m_recentScans->loadEntries( TDEGlobal::config() ); |