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/kchmnavtoolbar.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/kchmnavtoolbar.cpp')
-rw-r--r-- | src/kchmnavtoolbar.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/kchmnavtoolbar.cpp b/src/kchmnavtoolbar.cpp index f0f004f..a7ac446 100644 --- a/src/kchmnavtoolbar.cpp +++ b/src/kchmnavtoolbar.cpp @@ -26,38 +26,38 @@ #include "iconstorage.h" -KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent ) - : QToolBar( parent ) +KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *tqparent ) + : TQToolBar( tqparent ) { // Initialize toolbar setLabel( i18n( "Navigation") ); - QPixmap iconBackward (*gIconStorage.getToolbarPixmap(KCHMIconStorage::back)); - m_toolbarIconBackward = new QToolButton (iconBackward, + TQPixmap iconBackward (*gIconStorage.getToolbarPixmap(KCHMIconStorage::back)); + m_toolbarIconBackward = new TQToolButton (iconBackward, i18n( "Move backward in history"), - QString::null, - parent, - SLOT( slotNavigateBack() ), + TQString(), + tqparent, + TQT_SLOT( slotNavigateBack() ), this); - QWhatsThis::add( m_toolbarIconBackward, i18n( "Click this button to move backward in browser history") ); + TQWhatsThis::add( m_toolbarIconBackward, i18n( "Click this button to move backward in browser history") ); - QPixmap iconForward (*gIconStorage.getToolbarPixmap(KCHMIconStorage::forward)); - m_toolbarIconForward = new QToolButton (iconForward, + TQPixmap iconForward (*gIconStorage.getToolbarPixmap(KCHMIconStorage::forward)); + m_toolbarIconForward = new TQToolButton (iconForward, i18n( "Move forward in history"), - QString::null, - parent, - SLOT( slotNavigateForward() ), + TQString(), + tqparent, + TQT_SLOT( slotNavigateForward() ), this); - QWhatsThis::add( m_toolbarIconForward, i18n( "Click this button to move forward in browser history") ); + TQWhatsThis::add( m_toolbarIconForward, i18n( "Click this button to move forward in browser history") ); - QPixmap iconHome = (*gIconStorage.getToolbarPixmap(KCHMIconStorage::gohome)); - QToolButton * hb = new QToolButton (iconHome, + TQPixmap iconHome = (*gIconStorage.getToolbarPixmap(KCHMIconStorage::gohome)); + TQToolButton * hb = new TQToolButton (iconHome, i18n( "Go to the home page"), - QString::null, - parent, - SLOT( slotNavigateHome() ), + TQString(), + tqparent, + TQT_SLOT( slotNavigateHome() ), this); - QWhatsThis::add( hb, i18n( "Click this button to move to the home page") ); + TQWhatsThis::add( hb, i18n( "Click this button to move to the home page") ); } @@ -65,7 +65,7 @@ KCHMNavToolbar::~KCHMNavToolbar() { } -void KCHMNavToolbar::updateIconStatus( bool enable_backward, bool enable_forward ) +void KCHMNavToolbar::updateIcontqStatus( bool enable_backward, bool enable_forward ) { m_toolbarIconBackward->setEnabled( enable_backward ); m_toolbarIconForward->setEnabled ( enable_forward ); |