summaryrefslogtreecommitdiffstats
path: root/src/app/historyAction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-26 00:38:19 +0000
commitf0296ef9e1f94e23c00d6f490e565d1dc768416d (patch)
tree7f3fd9f99621c111ff67f2d62feb5960a3371853 /src/app/historyAction.cpp
parent3098eb909534268622ce776f9a7bb5310d31b3c1 (diff)
downloadfilelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.tar.gz
filelight-f0296ef9e1f94e23c00d6f490e565d1dc768416d.zip
TQt4 port Filelight
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/filelight@1233561 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/app/historyAction.cpp')
-rw-r--r--src/app/historyAction.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/historyAction.cpp b/src/app/historyAction.cpp
index bf715cb..0013cfe 100644
--- a/src/app/historyAction.cpp
+++ b/src/app/historyAction.cpp
@@ -9,7 +9,7 @@
inline
-HistoryAction::HistoryAction( const QString &text, const char *icon, const KShortcut &cut, KActionCollection *ac, const char *name )
+HistoryAction::HistoryAction( const TQString &text, const char *icon, const KShortcut &cut, KActionCollection *ac, const char *name )
: KAction( text, icon, cut, 0, 0, ac, name )
, m_text( text )
{
@@ -18,7 +18,7 @@ HistoryAction::HistoryAction( const QString &text, const char *icon, const KShor
}
void
-HistoryAction::push( const QString &path )
+HistoryAction::push( const TQString &path )
{
if( !path.isEmpty() && m_list.last() != path )
{
@@ -28,10 +28,10 @@ HistoryAction::push( const QString &path )
}
}
-QString
+TQString
HistoryAction::pop()
{
- const QString s = m_list.last();
+ const TQString s = m_list.last();
m_list.pop_back();
setActionMenuTextOnly( this, m_list.last() );
setEnabled();
@@ -40,14 +40,14 @@ HistoryAction::pop()
-HistoryCollection::HistoryCollection( KActionCollection *ac, QObject *parent, const char *name )
- : QObject( parent, name )
+HistoryCollection::HistoryCollection( KActionCollection *ac, TQObject *tqparent, const char *name )
+ : TQObject( tqparent, name )
, m_b( new HistoryAction( i18n( "Back" ), "back", KStdAccel::back(), ac, "go_back" ) )
, m_f( new HistoryAction( i18n( "Forward" ), "forward", KStdAccel::forward(), ac, "go_forward" ) )
, m_receiver( 0 )
{
- connect( m_b, SIGNAL(activated()), SLOT(pop()) );
- connect( m_f, SIGNAL(activated()), SLOT(pop()) );
+ connect( m_b, TQT_SIGNAL(activated()), TQT_SLOT(pop()) );
+ connect( m_f, TQT_SIGNAL(activated()), TQT_SLOT(pop()) );
}
void
@@ -70,7 +70,7 @@ void
HistoryCollection::pop() //slot
{
KURL url;
- const QString path = ((HistoryAction*)sender())->pop(); //FIXME here we remove the constness
+ const TQString path = ((HistoryAction*)sender())->pop(); //FIXME here we remove the constness
url.setPath( path );
m_receiver = (sender() == m_b) ? m_f : m_b;