diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-26 21:04:57 +0000 |
commit | bf7f88413be3831a9372d323d02fc0335b9f9188 (patch) | |
tree | 516fdef9206245b40a14f99b4e3d9ef9289196e0 /src/app/history.cpp | |
parent | e238aa77b1fb3c2f55aef2ef2c91ce52166d2cc8 (diff) | |
download | gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.tar.gz gwenview-bf7f88413be3831a9372d323d02fc0335b9f9188.zip |
TQt4 port Gwenview
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/app/history.cpp')
-rw-r--r-- | src/app/history.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/app/history.cpp b/src/app/history.cpp index 03d3682..9c38ae7 100644 --- a/src/app/history.cpp +++ b/src/app/history.cpp @@ -40,24 +40,24 @@ History::History(KActionCollection* actionCollection) { mMovingInHistory=false; // Actions - QPair<KGuiItem, KGuiItem> backForward = KStdGuiItem::backAndForward(); + TQPair<KGuiItem, KGuiItem> backForward = KStdGuiItem::backAndForward(); mGoBack=new KToolBarPopupAction(backForward.first, KStdAccel::shortcut(KStdAccel::Back), - this, SLOT(goBack()), actionCollection, "go_back"); + this, TQT_SLOT(goBack()), actionCollection, "go_back"); mGoForward=new KToolBarPopupAction(backForward.second, KStdAccel::shortcut(KStdAccel::Forward), - this, SLOT(goForward()), actionCollection, "go_forward"); + this, TQT_SLOT(goForward()), actionCollection, "go_forward"); // Connections - connect(mGoBack->popupMenu(),SIGNAL(activated(int)), - this,SLOT(goBackTo(int)) ); - connect(mGoForward->popupMenu(),SIGNAL(activated(int)), - this,SLOT(goForwardTo(int)) ); - - connect(mGoBack->popupMenu(), SIGNAL(aboutToShow()), - this, SLOT(fillGoBackMenu()) ); - connect(mGoForward->popupMenu(), SIGNAL(aboutToShow()), - this, SLOT(fillGoForwardMenu()) ); + connect(mGoBack->popupMenu(),TQT_SIGNAL(activated(int)), + this,TQT_SLOT(goBackTo(int)) ); + connect(mGoForward->popupMenu(),TQT_SIGNAL(activated(int)), + this,TQT_SLOT(goForwardTo(int)) ); + + connect(mGoBack->popupMenu(), TQT_SIGNAL(aboutToShow()), + this, TQT_SLOT(fillGoBackMenu()) ); + connect(mGoForward->popupMenu(), TQT_SIGNAL(aboutToShow()), + this, TQT_SLOT(fillGoForwardMenu()) ); } @@ -67,7 +67,7 @@ History::~History() { void History::addURLToHistory(const KURL& url2) { KURL url( url2 ); - url.setFileName( QString::null ); + url.setFileName( TQString() ); if (!mMovingInHistory) { if (mPosition!=mHistoryList.end() && url.equals(*mPosition, true)) return; @@ -87,7 +87,7 @@ void History::addURLToHistory(const KURL& url2) { void History::fillGoBackMenu() { - QPopupMenu* menu=mGoBack->popupMenu(); + TQPopupMenu* menu=mGoBack->popupMenu(); menu->clear(); HistoryList::ConstIterator it; @@ -98,7 +98,7 @@ void History::fillGoBackMenu() { } void History::fillGoForwardMenu() { - QPopupMenu* menu=mGoForward->popupMenu(); + TQPopupMenu* menu=mGoForward->popupMenu(); menu->clear(); HistoryList::ConstIterator it=mPosition; ++it; |