diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmcontentswindow.cpp | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
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
Diffstat (limited to 'src/kchmcontentswindow.cpp')
-rw-r--r-- | src/kchmcontentswindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<QString, KCHMIndTocItem*>::const_iterator it = m_urlListMap.find( fixedstr ); + TQString fixedstr = ::mainWindow->chmFile()->normalizeUrl( url ); + TQMap<TQString, KCHMIndTocItem*>::const_iterator it = m_urlListMap.tqfind( fixedstr ); if ( it == m_urlListMap.end() ) return 0; |