diff --git a/src/kchmbookmarkwindow.cpp b/src/kchmbookmarkwindow.cpp index a95953c..dc1b3e4 100644 --- a/src/kchmbookmarkwindow.cpp +++ b/src/kchmbookmarkwindow.cpp @@ -50,29 +50,29 @@ KCHMBookmarkWindow::KCHMBookmarkWindow(TQWidget *parent, const char *name) hlayout->addWidget (del); connect( m_bookmarkList, - TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), + TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, - TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); + TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); connect( add, - TQT_SIGNAL( clicked () ), + TQ_SIGNAL( clicked () ), this, - TQT_SLOT( onAddBookmarkPressed( ) ) ); + TQ_SLOT( onAddBookmarkPressed( ) ) ); connect( del, - TQT_SIGNAL( clicked () ), + TQ_SIGNAL( clicked () ), this, - TQT_SLOT( onDelBookmarkPressed( ) ) ); + TQ_SLOT( onDelBookmarkPressed( ) ) ); connect( edit, - TQT_SIGNAL( clicked () ), + TQ_SIGNAL( clicked () ), this, - TQT_SLOT( onEditBookmarkPressed( ) ) ); + TQ_SLOT( onEditBookmarkPressed( ) ) ); connect( m_bookmarkList, - TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), + TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), this, - TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); + TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); m_menuBookmarks = 0; m_contextMenu = 0; @@ -198,10 +198,10 @@ void KCHMBookmarkWindow::createMenu( KCHMMainWindow * parent ) m_menuBookmarks = new KTQPopupMenu( parent ); parent->menuBar()->insertItem( i18n( "&Bookmarks"), m_menuBookmarks ); - m_menuBookmarks->insertItem( i18n( "&Add bookmark"), this, TQT_SLOT(onAddBookmarkPressed()), CTRL+Key_B ); + m_menuBookmarks->insertItem( i18n( "&Add bookmark"), this, TQ_SLOT(onAddBookmarkPressed()), CTRL+Key_B ); m_menuBookmarks->insertSeparator(); - connect( m_menuBookmarks, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onBookmarkSelected(int) )); + connect( m_menuBookmarks, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onBookmarkSelected(int) )); } void KCHMBookmarkWindow::onBookmarkSelected( int bookmark ) diff --git a/src/kchmcontentswindow.cpp b/src/kchmcontentswindow.cpp index 200df61..eeaef20 100644 --- a/src/kchmcontentswindow.cpp +++ b/src/kchmcontentswindow.cpp @@ -42,11 +42,11 @@ KCHMContentsWindow::KCHMContentsWindow(TQWidget *parent, const char *name) header()->hide(); setShowToolTips( false ); - connect( this, TQT_SIGNAL( onItem ( TQListViewItem * ) ), this, TQT_SLOT( slotOnItem( TQListViewItem * ) ) ); + connect( this, TQ_SIGNAL( onItem ( TQListViewItem * ) ), this, TQ_SLOT( slotOnItem( TQListViewItem * ) ) ); connect( this, - TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), + TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), this, - TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); + TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); new KCHMListItemTooltip( this ); diff --git a/src/kchmdialogchooseurlfromlist.cpp b/src/kchmdialogchooseurlfromlist.cpp index bb50a13..a6b7738 100644 --- a/src/kchmdialogchooseurlfromlist.cpp +++ b/src/kchmdialogchooseurlfromlist.cpp @@ -46,11 +46,11 @@ KCHMDialogChooseUrlFromList::KCHMDialogChooseUrlFromList(const TQStringList& url hlayout->addWidget (bok); hlayout->addWidget (bcancel); - connect( m_urlsList, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); - connect( m_urlsList, TQT_SIGNAL( currentChanged ( TQListViewItem *) ), this, TQT_SLOT( onCurrentChanged ( TQListViewItem *) ) ); + connect( m_urlsList, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); + connect( m_urlsList, TQ_SIGNAL( currentChanged ( TQListViewItem *) ), this, TQ_SLOT( onCurrentChanged ( TQListViewItem *) ) ); - connect( bok, TQT_SIGNAL( clicked () ), this, TQT_SLOT( accept() ) ); - connect( bcancel, TQT_SIGNAL( clicked () ), this, TQT_SLOT( reject() ) ); + connect( bok, TQ_SIGNAL( clicked () ), this, TQ_SLOT( accept() ) ); + connect( bcancel, TQ_SIGNAL( clicked () ), this, TQ_SLOT( reject() ) ); m_acceptedurl = TQString(); } diff --git a/src/kchmindexwindow.cpp b/src/kchmindexwindow.cpp index b678187..061ad86 100644 --- a/src/kchmindexwindow.cpp +++ b/src/kchmindexwindow.cpp @@ -52,24 +52,24 @@ KCHMIndexWindow::KCHMIndexWindow ( TQWidget * parent, const char * name, WFlags layout->addWidget (m_indexList); connect( m_indexFinder, - TQT_SIGNAL( textChanged (const TQString &) ), + TQ_SIGNAL( textChanged (const TQString &) ), this, - TQT_SLOT( onTextChanged(const TQString &) ) ); + TQ_SLOT( onTextChanged(const TQString &) ) ); connect( m_indexFinder, - TQT_SIGNAL( returnPressed() ), + TQ_SIGNAL( returnPressed() ), this, - TQT_SLOT( onReturnPressed() ) ); + TQ_SLOT( onReturnPressed() ) ); connect( m_indexList, - TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), + TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, - TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); + TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); connect( m_indexList, - TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), + TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), this, - TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); + TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); m_indexListFilled = false; m_lastSelectedItem = 0; diff --git a/src/kchmmainwindow.cpp b/src/kchmmainwindow.cpp index 3361542..f6391d2 100644 --- a/src/kchmmainwindow.cpp +++ b/src/kchmmainwindow.cpp @@ -109,12 +109,12 @@ KCHMMainWindow::KCHMMainWindow() #endif /* defined (ENABLE_AUTOTEST_SUPPORT) */ TQAccel * accel = new TQAccel( this ); - accel->connectItem ( accel->insertItem ( Key_F11 ), this, TQT_SLOT ( slotToggleFullScreenMode() ) ); - accel->connectItem ( accel->insertItem ( CTRL + Key_1), this, TQT_SLOT ( slotActivateContentTab() ) ); - accel->connectItem ( accel->insertItem ( CTRL + Key_2), this, TQT_SLOT ( slotActivateIndexTab() ) ); - accel->connectItem ( accel->insertItem ( CTRL + Key_3), this, TQT_SLOT ( slotActivateSearchTab() ) ); - accel->connectItem ( accel->insertItem ( CTRL + Key_4), this, TQT_SLOT ( slotActivateBookmarkTab() ) ); - accel->connectItem ( accel->insertItem ( Key_F3 ), m_searchToolbar, TQT_SLOT ( onBtnNextSearchResult() ) ); + accel->connectItem ( accel->insertItem ( Key_F11 ), this, TQ_SLOT ( slotToggleFullScreenMode() ) ); + accel->connectItem ( accel->insertItem ( CTRL + Key_1), this, TQ_SLOT ( slotActivateContentTab() ) ); + accel->connectItem ( accel->insertItem ( CTRL + Key_2), this, TQ_SLOT ( slotActivateIndexTab() ) ); + accel->connectItem ( accel->insertItem ( CTRL + Key_3), this, TQ_SLOT ( slotActivateSearchTab() ) ); + accel->connectItem ( accel->insertItem ( CTRL + Key_4), this, TQ_SLOT ( slotActivateBookmarkTab() ) ); + accel->connectItem ( accel->insertItem ( Key_F3 ), m_searchToolbar, TQ_SLOT ( onBtnNextSearchResult() ) ); statusBar()->show(); setIcon( *gIconStorage.getApplicationIcon() ); @@ -474,7 +474,7 @@ void KCHMMainWindow::setupToolbarsAndMenu( ) i18n( "Open File" ), TQString(), this, - TQT_SLOT( slotOpenMenuItemActivated() ), + TQ_SLOT( slotOpenMenuItemActivated() ), toolbar); TQString fileOpenText = i18n( "Click this button to open an existing chm file." ); @@ -485,7 +485,7 @@ void KCHMMainWindow::setupToolbarsAndMenu( ) i18n( "Print File" ), TQString(), this, - TQT_SLOT( slotPrintMenuItemActivated() ), + TQ_SLOT( slotPrintMenuItemActivated() ), toolbar); TQString filePrintText = i18n( "Click this button to print the current page"); @@ -496,30 +496,30 @@ void KCHMMainWindow::setupToolbarsAndMenu( ) menuBar()->insertItem( i18n( "&File"), file ); int id; - id = file->insertItem ( iconFileOpen, i18n( "&Open..."), this, TQT_SLOT( slotOpenMenuItemActivated() ), CTRL+Key_O ); + id = file->insertItem ( iconFileOpen, i18n( "&Open..."), this, TQ_SLOT( slotOpenMenuItemActivated() ), CTRL+Key_O ); file->TQMenuData::setWhatsThis( id, fileOpenText ); - id = file->insertItem( iconFilePrint, i18n( "&Print..."), this, TQT_SLOT( slotPrintMenuItemActivated() ), CTRL+Key_P ); + id = file->insertItem( iconFilePrint, i18n( "&Print..."), this, TQ_SLOT( slotPrintMenuItemActivated() ), CTRL+Key_P ); file->TQMenuData::setWhatsThis( id, filePrintText ); file->insertSeparator(); - id = file->insertItem ( i18n( "E&xtract CHM content..."), this, TQT_SLOT( slotExtractCHM() ) ); + id = file->insertItem ( i18n( "E&xtract CHM content..."), this, TQ_SLOT( slotExtractCHM() ) ); file->TQMenuData::setWhatsThis( id, i18n( "Click this button to extract the whole CHM file content into a specific directory") ); file->insertSeparator(); m_menuHistory = new KTQPopupMenu( file ); - connect ( m_menuHistory, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( slotHistoryMenuItemActivated(int) )); + connect ( m_menuHistory, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( slotHistoryMenuItemActivated(int) )); file->insertItem( i18n( "&Recent files"), m_menuHistory ); file->insertSeparator(); - file->insertItem( i18n( "&Quit"), tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q ); + file->insertItem( i18n( "&Quit"), tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q ); KTQPopupMenu * menu_edit = new KTQPopupMenu( this ); menuBar()->insertItem( i18n( "&Edit"), menu_edit ); - menu_edit->insertItem ( i18n( "&Copy"), this, TQT_SLOT( slotBrowserCopy()), CTRL+Key_C ); - menu_edit->insertItem ( i18n( "&Select all"), this, TQT_SLOT( slotBrowserSelectAll()), CTRL+Key_A ); + menu_edit->insertItem ( i18n( "&Copy"), this, TQ_SLOT( slotBrowserCopy()), CTRL+Key_C ); + menu_edit->insertItem ( i18n( "&Select all"), this, TQ_SLOT( slotBrowserSelectAll()), CTRL+Key_A ); menu_edit->insertSeparator(); @@ -537,16 +537,16 @@ void KCHMMainWindow::setupToolbarsAndMenu( ) KTQPopupMenu * settings = new KTQPopupMenu( this ); menuBar()->insertItem( i18n( "&Settings"), settings ); - settings->insertItem( i18n( "&Change settings..."), this, TQT_SLOT( slotChangeSettingsMenuItemActivated() )); + settings->insertItem( i18n( "&Change settings..."), this, TQ_SLOT( slotChangeSettingsMenuItemActivated() )); #if defined(USE_KDE) TQPopupMenu *help = helpMenu( m_aboutDlgMenuText ); #else KTQPopupMenu * help = new KTQPopupMenu( this ); - help->insertItem( i18n( "&About"), this, TQT_SLOT( slotAboutMenuItemActivated() ), Key_F1 ); - help->insertItem( i18n( "About &TQt"), this, TQT_SLOT( slotAboutQtMenuItemActivated() )); + help->insertItem( i18n( "&About"), this, TQ_SLOT( slotAboutMenuItemActivated() ), Key_F1 ); + help->insertItem( i18n( "About &TQt"), this, TQ_SLOT( slotAboutQtMenuItemActivated() )); help->insertSeparator(); - help->insertItem( i18n( "What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 ); + help->insertItem( i18n( "What's &This"), this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 ); #endif menuBar()->insertItem( i18n( "&Help"), help ); @@ -916,14 +916,14 @@ void KCHMMainWindow::showOrHideContextWindow( int tabindex ) // Handle clicking on m_contentsWindow element connect( m_contentsWindow, - TQT_SIGNAL( clicked( TQListViewItem* ) ), + TQ_SIGNAL( clicked( TQListViewItem* ) ), this, - TQT_SLOT( slotOnTreeClicked( TQListViewItem* ) ) ); + TQ_SLOT( slotOnTreeClicked( TQListViewItem* ) ) ); connect( m_contentsWindow, - TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), + TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), this, - TQT_SLOT( slotOnTreeDoubleClicked ( TQListViewItem *, const TQPoint &, int ) ) ); + TQ_SLOT( slotOnTreeDoubleClicked ( TQListViewItem *, const TQPoint &, int ) ) ); m_tabWidget->insertTab (m_contentsWindow, i18n( "Contents" ), tabindex); } @@ -1260,7 +1260,7 @@ void KCHMMainWindow::runAutoTest() else m_autoteststate = STATE_OPEN_INDEX; - TQTimer::singleShot (500, this, TQT_SLOT(runAutoTest()) ); + TQTimer::singleShot (500, this, TQ_SLOT(runAutoTest()) ); break; // allow to finish the initialization sequence case STATE_CONTENTS_OPENNEXTPAGE: @@ -1272,7 +1272,7 @@ void KCHMMainWindow::runAutoTest() else m_autoteststate = STATE_OPEN_INDEX; - TQTimer::singleShot (50, this, TQT_SLOT(runAutoTest()) ); + TQTimer::singleShot (50, this, TQ_SLOT(runAutoTest()) ); break; case STATE_OPEN_INDEX: @@ -1280,7 +1280,7 @@ void KCHMMainWindow::runAutoTest() m_tabWidget->setCurrentPage (1); m_autoteststate = STATE_SHUTDOWN; - TQTimer::singleShot (500, this, TQT_SLOT(runAutoTest()) ); + TQTimer::singleShot (500, this, TQ_SLOT(runAutoTest()) ); break; case STATE_SHUTDOWN: diff --git a/src/kchmnavtoolbar.cpp b/src/kchmnavtoolbar.cpp index 7ebb6fc..e6215b4 100644 --- a/src/kchmnavtoolbar.cpp +++ b/src/kchmnavtoolbar.cpp @@ -37,7 +37,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent ) i18n( "Move backward in history"), TQString(), parent, - TQT_SLOT( slotNavigateBack() ), + TQ_SLOT( slotNavigateBack() ), this); TQWhatsThis::add( m_toolbarIconBackward, i18n( "Click this button to move backward in browser history") ); @@ -46,7 +46,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent ) i18n( "Move forward in history"), TQString(), parent, - TQT_SLOT( slotNavigateForward() ), + TQ_SLOT( slotNavigateForward() ), this); TQWhatsThis::add( m_toolbarIconForward, i18n( "Click this button to move forward in browser history") ); @@ -55,7 +55,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent ) i18n( "Go to the home page"), TQString(), parent, - TQT_SLOT( slotNavigateHome() ), + TQ_SLOT( slotNavigateHome() ), this); TQWhatsThis::add( hb, i18n( "Click this button to move to the home page") ); } diff --git a/src/kchmsearchengine.cpp b/src/kchmsearchengine.cpp index e9e2a35..7ef266f 100644 --- a/src/kchmsearchengine.cpp +++ b/src/kchmsearchengine.cpp @@ -74,9 +74,9 @@ bool KCHMSearchEngine::loadOrGenerateIndex( ) m_Index->setDocListFile( indexfiledoc ); m_progressDlg = new TQProgressDialog( 0 ); - connect( m_progressDlg, TQT_SIGNAL( canceled() ), this, TQT_SLOT( cancelButtonPressed() ) ); + connect( m_progressDlg, TQ_SIGNAL( canceled() ), this, TQ_SLOT( cancelButtonPressed() ) ); - connect( m_Index, TQT_SIGNAL( indexingProgress( int ) ), this, TQT_SLOT( setIndexingProgress( int ) ) ); + connect( m_Index, TQ_SIGNAL( indexingProgress( int ) ), this, TQ_SLOT( setIndexingProgress( int ) ) ); KCHMShowWaitCursor waitcursor; TQFile f( indexfiledict ); diff --git a/src/kchmsearchengine_impl.cpp b/src/kchmsearchengine_impl.cpp index b57e029..0536626 100644 --- a/src/kchmsearchengine_impl.cpp +++ b/src/kchmsearchengine_impl.cpp @@ -72,8 +72,8 @@ Index::Index( const TQString &dp, const TQString & ) : TQObject( 0, 0 ), dict( 8999 ), docPath( dp ) { lastWindowClosed = false; - connect( tqApp, TQT_SIGNAL( lastWindowClosed() ), - this, TQT_SLOT( setLastWinClosed() ) ); + connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), + this, TQ_SLOT( setLastWinClosed() ) ); } Index::Index( const TQStringList &dl, const TQString & ) @@ -81,8 +81,8 @@ Index::Index( const TQStringList &dl, const TQString & ) { docList = dl; lastWindowClosed = false; - connect( tqApp, TQT_SIGNAL( lastWindowClosed() ), - this, TQT_SLOT( setLastWinClosed() ) ); + connect( tqApp, TQ_SIGNAL( lastWindowClosed() ), + this, TQ_SLOT( setLastWinClosed() ) ); } void Index::setLastWinClosed() diff --git a/src/kchmsearchtoolbar.cpp b/src/kchmsearchtoolbar.cpp index a51bb5f..2c7e272 100644 --- a/src/kchmsearchtoolbar.cpp +++ b/src/kchmsearchtoolbar.cpp @@ -63,18 +63,18 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) // Create the combobox to enter the find text m_findBox = new TQComboBox (TRUE, this); m_findBox->setMinimumWidth (200); - connect( m_findBox->lineEdit(), TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( onReturnPressed() ) ); + connect( m_findBox->lineEdit(), TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( onReturnPressed() ) ); TQWhatsThis::add( m_findBox, i18n( "Enter here the text to search in the current page.") ); TQAccel *acc = new TQAccel( this ); - acc->connectItem( acc->insertItem(Key_F+CTRL), this, TQT_SLOT( onAccelFocusSearchField() ) ); + acc->connectItem( acc->insertItem(Key_F+CTRL), this, TQ_SLOT( onAccelFocusSearchField() ) ); // Button 'prevous search result' m_buttonPrev = new TQToolButton (iconPrev, i18n( "Previous search result"), TQString(), this, - TQT_SLOT(onBtnPrevSearchResult()), + TQ_SLOT(onBtnPrevSearchResult()), this); TQWhatsThis::add( m_buttonPrev, i18n( "Click this button to find previous search result.") ); @@ -83,7 +83,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Next search result"), TQString(), this, - TQT_SLOT(onBtnNextSearchResult()), + TQ_SLOT(onBtnNextSearchResult()), this); TQWhatsThis::add( m_buttonNext, i18n( "Click this button to find next search result.") ); @@ -92,7 +92,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Locate this topic in content window"), TQString(), this, - TQT_SLOT( onBtnLocateInContentWindow() ), + TQ_SLOT( onBtnLocateInContentWindow() ), this ); TQWhatsThis::add( m_buttonLocateInContent, i18n( "Click this button to find current topic in the content window, and open it.") ); @@ -101,7 +101,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Increase font size"), TQString(), this, - TQT_SLOT(onBtnFontInc()), + TQ_SLOT(onBtnFontInc()), this); TQWhatsThis::add( m_buttonFontInc, i18n( "Click this button to increase the font size.") ); @@ -110,7 +110,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Decrease font size"), TQString(), this, - TQT_SLOT(onBtnFontDec()), + TQ_SLOT(onBtnFontDec()), this); TQWhatsThis::add( m_buttonFontDec, i18n( "Click this button to decrease the font size.") ); @@ -119,7 +119,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "View HTML source"), TQString(), this, - TQT_SLOT(onBtnViewSource()), + TQ_SLOT(onBtnViewSource()), this); TQWhatsThis::add( m_buttonViewSource, i18n( "Click this button to open a separate window with the page HTML source.") ); @@ -128,7 +128,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Add to bookmarks"), TQString(), this, - TQT_SLOT(onBtnAddBookmark()), + TQ_SLOT(onBtnAddBookmark()), this); TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to add the current page to the bookmarks list.") ); @@ -136,7 +136,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Prev page in TOC"), TQString(), this, - TQT_SLOT(onBtnPrevPageInToc()), + TQ_SLOT(onBtnPrevPageInToc()), this); TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to go to previous page in Table Of Content.") ); @@ -144,7 +144,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) i18n( "Next page in TOC"), TQString(), this, - TQT_SLOT(onBtnNextPageInToc()), + TQ_SLOT(onBtnNextPageInToc()), this); TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to go to next page in Table of Content.") ); @@ -152,20 +152,20 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) m_MenuView = new KTQPopupMenu( parent ); parent->menuBar()->insertItem( i18n( "&View"), m_MenuView ); - m_MenuView->insertItem( i18n( "&Increase font"), this, TQT_SLOT(onBtnFontInc()), CTRL+Key_Plus ); - m_MenuView->insertItem( i18n( "&Decrease font"), this, TQT_SLOT(onBtnFontDec()), CTRL+Key_Minus ); - m_MenuView->insertItem( i18n( "&View HTML source"), this, TQT_SLOT(onBtnViewSource()), CTRL+Key_U ); + m_MenuView->insertItem( i18n( "&Increase font"), this, TQ_SLOT(onBtnFontInc()), CTRL+Key_Plus ); + m_MenuView->insertItem( i18n( "&Decrease font"), this, TQ_SLOT(onBtnFontDec()), CTRL+Key_Minus ); + m_MenuView->insertItem( i18n( "&View HTML source"), this, TQ_SLOT(onBtnViewSource()), CTRL+Key_U ); m_MenuView->insertSeparator(); - m_MenuView->insertItem( i18n( "&Bookmark this page"), this, TQT_SLOT(onBtnAddBookmark()), CTRL+Key_T ); + m_MenuView->insertItem( i18n( "&Bookmark this page"), this, TQ_SLOT(onBtnAddBookmark()), CTRL+Key_T ); m_MenuView->insertSeparator(); m_menuShowFullscreenMenuID = m_MenuView->insertItem( i18n( "&Full screen"), this, - TQT_SLOT(onBtnFullScreen()), Key_F11 ); + TQ_SLOT(onBtnFullScreen()), Key_F11 ); m_menuShowContentWindowMenuID = m_MenuView->insertItem( i18n( "&Show contents window"), this, - TQT_SLOT(onBtnToggleContentWindow()), Key_F9 ); + TQ_SLOT(onBtnToggleContentWindow()), Key_F9 ); m_MenuView->insertItem( i18n( "&Locate in contents window"), this, - TQT_SLOT(onBtnLocateInContentWindow()), CTRL+Key_L ); + TQ_SLOT(onBtnLocateInContentWindow()), CTRL+Key_L ); m_MenuView->setItemChecked( m_menuShowFullscreenMenuID, false ); m_MenuView->setItemChecked( m_menuShowContentWindowMenuID, true ); @@ -177,7 +177,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) // Because the encoding menu is very large, it is not reasonable to have a slot for every item. // It is simplier just to use a single slot for any menu item of this submenu. - connect (menu_langlist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) )); + connect (menu_langlist, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) )); // Add the language entries const LCHMTextEncoding * enctable = LCHMFileImpl::getTextEncodingTable(); @@ -197,7 +197,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) if ( !menu_sublang ) { menu_sublang = new KTQPopupMenu( menu_langlist ); - connect (menu_sublang, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) )); + connect (menu_sublang, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) )); } menu_sublang->insertItem( item->sublanguage, idx ); @@ -225,7 +225,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent ) TQMap addedCharsets; menu_enclist = new KTQPopupMenu( parent ); - connect (menu_enclist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) )); + connect (menu_enclist, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) )); // Add the codepage entries for ( idx = 0; (enctable + idx)->language; idx++ ) diff --git a/src/kchmsearchwindow.cpp b/src/kchmsearchwindow.cpp index be0122c..8d936c7 100644 --- a/src/kchmsearchwindow.cpp +++ b/src/kchmsearchwindow.cpp @@ -44,7 +44,7 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags labellayout->addStretch( 10 ); KCHMClickableLabel * helplink = new KCHMClickableLabel( i18n( "Help"), this ); - connect( helplink, TQT_SIGNAL( clicked() ), this, TQT_SLOT( onHelpClicked() ) ); + connect( helplink, TQ_SIGNAL( clicked() ), this, TQ_SLOT( onHelpClicked() ) ); helplink->setCursor( TQCursor( TQt::PointingHandCursor ) ); labellayout->addWidget ( helplink ); @@ -68,24 +68,24 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags m_searchList->setShowToolTips(true); connect( searchButton, - TQT_SIGNAL( clicked () ), + TQ_SIGNAL( clicked () ), this, - TQT_SLOT( onReturnPressed() ) ); + TQ_SLOT( onReturnPressed() ) ); connect( m_searchQuery->lineEdit(), - TQT_SIGNAL( returnPressed() ), + TQ_SIGNAL( returnPressed() ), this, - TQT_SLOT( onReturnPressed() ) ); + TQ_SLOT( onReturnPressed() ) ); connect( m_searchList, - TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), + TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, - TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); + TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) ); connect( m_searchList, - TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), + TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), this, - TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); + TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); //layout->addSpacing (10); layout->addWidget (m_searchList); diff --git a/src/kchmviewwindow.cpp b/src/kchmviewwindow.cpp index 71e0813..5edca53 100644 --- a/src/kchmviewwindow.cpp +++ b/src/kchmviewwindow.cpp @@ -145,8 +145,8 @@ KTQPopupMenu * KCHMViewWindow::createStandardContextMenu( TQWidget * parent ) { KTQPopupMenu * contextMenu = new KTQPopupMenu( parent ); - contextMenu->insertItem ( "&Copy", ::mainWindow, TQT_SLOT(slotBrowserCopy()) ); - contextMenu->insertItem ( "&Select all", ::mainWindow, TQT_SLOT(slotBrowserSelectAll()) ); + contextMenu->insertItem ( "&Copy", ::mainWindow, TQ_SLOT(slotBrowserCopy()) ); + contextMenu->insertItem ( "&Select all", ::mainWindow, TQ_SLOT(slotBrowserSelectAll()) ); return contextMenu; } @@ -171,9 +171,9 @@ KTQPopupMenu * KCHMViewWindow::getContextMenu( const TQString & link, TQWidget * m_contextMenuLink = createStandardContextMenu( parent ); m_contextMenuLink->insertSeparator(); - m_contextMenuLink->insertItem ( "&Open this link in a new tab", ::mainWindow, TQT_SLOT(slotOpenPageInNewTab()), TQKeySequence("Shift+Enter") ); + m_contextMenuLink->insertItem ( "&Open this link in a new tab", ::mainWindow, TQ_SLOT(slotOpenPageInNewTab()), TQKeySequence("Shift+Enter") ); - m_contextMenuLink->insertItem ( "&Open this link in a new background tab", ::mainWindow, TQT_SLOT(slotOpenPageInNewBackgroundTab()), TQKeySequence("Ctrl+Enter") ); + m_contextMenuLink->insertItem ( "&Open this link in a new background tab", ::mainWindow, TQ_SLOT(slotOpenPageInNewBackgroundTab()), TQKeySequence("Ctrl+Enter") ); } setTabKeeper( link ); @@ -286,12 +286,12 @@ KTQPopupMenu * KCHMViewWindow::createListItemContextMenu( TQWidget * w ) contextMenu->insertItem ( "&Open this link in a new tab", ::mainWindow, - TQT_SLOT( slotOpenPageInNewTab() ), + TQ_SLOT( slotOpenPageInNewTab() ), TQKeySequence( "Shift+Enter" ) ); contextMenu->insertItem ( "&Open this link in a new background tab", ::mainWindow, - TQT_SLOT( slotOpenPageInNewBackgroundTab() ), + TQ_SLOT( slotOpenPageInNewBackgroundTab() ), TQKeySequence( "Ctrl+Enter" ) ); return contextMenu; diff --git a/src/kchmviewwindow_qtextbrowser.cpp b/src/kchmviewwindow_qtextbrowser.cpp index 41db166..d3f1f72 100644 --- a/src/kchmviewwindow_qtextbrowser.cpp +++ b/src/kchmviewwindow_qtextbrowser.cpp @@ -47,7 +47,7 @@ KCHMViewWindow_QTextBrowser::KCHMViewWindow_QTextBrowser( TQTabWidget * parent ) invalidate(); setTextFormat ( TQt::RichText ); - connect( this, TQT_SIGNAL( linkClicked (const TQString &) ), this, TQT_SLOT( slotLinkClicked(const TQString &) ) ); + connect( this, TQ_SIGNAL( linkClicked (const TQString &) ), this, TQ_SLOT( slotLinkClicked(const TQString &) ) ); } diff --git a/src/kchmviewwindowmgr.cpp b/src/kchmviewwindowmgr.cpp index bf2bc69..ea66069 100644 --- a/src/kchmviewwindowmgr.cpp +++ b/src/kchmviewwindowmgr.cpp @@ -40,7 +40,7 @@ KCHMViewWindowMgr::KCHMViewWindowMgr( TQWidget *parent ) m_MenuWindow = 0; // on current tab changed - connect( this, TQT_SIGNAL( currentChanged(TQWidget *) ), this, TQT_SLOT( onTabChanged(TQWidget *) ) ); + connect( this, TQ_SIGNAL( currentChanged(TQWidget *) ), this, TQ_SLOT( onTabChanged(TQWidget *) ) ); // Create an iconset for the button TQIconSet iset( *gIconStorage.getCloseWindowIcon() ); @@ -49,7 +49,7 @@ KCHMViewWindowMgr::KCHMViewWindowMgr( TQWidget *parent ) m_closeButton = new TQPushButton( iset, TQString(), this ); m_closeButton->setFlat( true ); m_closeButton->setEnabled( false ); - connect( m_closeButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( closeCurrentWindow() ) ); + connect( m_closeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( closeCurrentWindow() ) ); setCornerWidget( m_closeButton, TopRight); } @@ -64,11 +64,11 @@ void KCHMViewWindowMgr::createMenu( KCHMMainWindow * parent ) m_MenuWindow = new KTQPopupMenu( parent ); parent->menuBar()->insertItem( i18n( "&Window"), m_MenuWindow ); - m_menuIdClose = m_MenuWindow->insertItem( i18n( "&Close"), this, TQT_SLOT( closeCurrentWindow()), CTRL+Key_W ); + m_menuIdClose = m_MenuWindow->insertItem( i18n( "&Close"), this, TQ_SLOT( closeCurrentWindow()), CTRL+Key_W ); m_MenuWindow->insertSeparator(); - //connect( m_MenuWindow, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onCloseWindow(int) )); - connect( m_MenuWindow, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onActiveWindow(int) )); + //connect( m_MenuWindow, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onCloseWindow(int) )); + connect( m_MenuWindow, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onActiveWindow(int) )); } void KCHMViewWindowMgr::invalidate() @@ -114,7 +114,7 @@ KCHMViewWindow * KCHMViewWindowMgr::addNewTab( bool set_active ) showPage( widget ); // Handle clicking on link in browser window - connect( viewvnd->getTQObject(), TQT_SIGNAL( signalLinkClicked (const TQString &, bool &) ), ::mainWindow, TQT_SLOT( slotLinkClicked(const TQString &, bool &) ) ); + connect( viewvnd->getTQObject(), TQ_SIGNAL( signalLinkClicked (const TQString &, bool &) ), ::mainWindow, TQ_SLOT( slotLinkClicked(const TQString &, bool &) ) ); return viewvnd; } diff --git a/src/main.cpp b/src/main.cpp index 35542f4..3bfe936 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -87,7 +87,7 @@ int main( int argc, char ** argv ) mainWindow->show(); #if !defined(USE_KDE) - app.connect( &app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()) ); + app.connect( &app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()) ); #else app.setMainWidget( mainWindow ); #endif diff --git a/src/tde/kchmviewwindow_tdehtmlpart.cpp b/src/tde/kchmviewwindow_tdehtmlpart.cpp index 3a57e35..ad4a617 100644 --- a/src/tde/kchmviewwindow_tdehtmlpart.cpp +++ b/src/tde/kchmviewwindow_tdehtmlpart.cpp @@ -46,11 +46,11 @@ KCHMViewWindow_TDEHTMLPart::KCHMViewWindow_TDEHTMLPart( TQTabWidget * parent ) invalidate(); - connect( browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), - this, TQT_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) ); + connect( browserExtension(), TQ_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ), + this, TQ_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) ); - connect( this, TQT_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ), - this, TQT_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) ); + connect( this, TQ_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ), + this, TQ_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) ); }