From 25794f504692e5a36c490438814e9dfda8aaa2dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 29 May 2011 19:00:37 +0000 Subject: TQt4 port kchmviewer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/kchmcontentswindow.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/kchmcontentswindow.cpp') diff --git a/src/kchmcontentswindow.cpp b/src/kchmcontentswindow.cpp index d145d41..dce5383 100644 --- a/src/kchmcontentswindow.cpp +++ b/src/kchmcontentswindow.cpp @@ -30,8 +30,8 @@ #include "kchmcontentswindow.moc" -KCHMContentsWindow::KCHMContentsWindow(QWidget *parent, const char *name) - : KQListView(parent, name) +KCHMContentsWindow::KCHMContentsWindow(TQWidget *tqparent, const char *name) + : KQListView(tqparent, name) { m_contextMenu = 0; @@ -42,11 +42,11 @@ KCHMContentsWindow::KCHMContentsWindow(QWidget *parent, const char *name) header()->hide(); setShowToolTips( false ); - connect( this, SIGNAL( onItem ( QListViewItem * ) ), this, SLOT( slotOnItem( QListViewItem * ) ) ); + connect( this, TQT_SIGNAL( onItem ( TQListViewItem * ) ), this, TQT_SLOT( slotOnItem( TQListViewItem * ) ) ); connect( this, - SIGNAL( contextMenuRequested( QListViewItem *, const QPoint& , int ) ), + TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ), this, - SLOT( slotContextMenuRequested ( QListViewItem *, const QPoint &, int ) ) ); + TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) ); new KCHMListItemTooltip( this ); @@ -56,7 +56,7 @@ KCHMContentsWindow::~KCHMContentsWindow() { } -void KCHMContentsWindow::slotContextMenuRequested( QListViewItem * item, const QPoint & point, int ) +void KCHMContentsWindow::slotContextMenuRequested( TQListViewItem * item, const TQPoint & point, int ) { if ( !m_contextMenu ) m_contextMenu = ::mainWindow->currentBrowser()->createListItemContextMenu( this ); @@ -71,7 +71,7 @@ void KCHMContentsWindow::slotContextMenuRequested( QListViewItem * item, const Q void KCHMContentsWindow::refillTableOfContents( ) { - QValueVector< LCHMParsedEntry > data; + TQValueVector< LCHMParsedEntry > data; if ( !::mainWindow->chmFile()->parseTableOfContents( &data ) || data.size() == 0 ) @@ -83,10 +83,10 @@ void KCHMContentsWindow::refillTableOfContents( ) kchmFillListViewWithParsedData( this, data, &m_urlListMap ); } -KCHMIndTocItem * KCHMContentsWindow::getTreeItem( const QString & url ) +KCHMIndTocItem * KCHMContentsWindow::getTreeItem( const TQString & url ) { - QString fixedstr = ::mainWindow->chmFile()->normalizeUrl( url ); - QMap::const_iterator it = m_urlListMap.find( fixedstr ); + TQString fixedstr = ::mainWindow->chmFile()->normalizeUrl( url ); + TQMap::const_iterator it = m_urlListMap.tqfind( fixedstr ); if ( it == m_urlListMap.end() ) return 0; -- cgit v1.2.3