summaryrefslogtreecommitdiffstats
path: root/kview/modules/browser
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kview/modules/browser
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz
tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/modules/browser')
-rw-r--r--kview/modules/browser/kviewbrowser.cpp8
-rw-r--r--kview/modules/browser/kviewbrowser.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/kview/modules/browser/kviewbrowser.cpp b/kview/modules/browser/kviewbrowser.cpp
index 936061eb..ef4d091a 100644
--- a/kview/modules/browser/kviewbrowser.cpp
+++ b/kview/modules/browser/kviewbrowser.cpp
@@ -36,13 +36,13 @@
typedef KGenericFactory<KViewBrowser> KViewBrowserFactory;
K_EXPORT_COMPONENT_FACTORY( kview_browserplugin, KViewBrowserFactory( "kviewbrowserplugin" ) )
-KViewBrowser::KViewBrowser( TQObject* parent, const char* name, const TQStringList & )
- : Plugin( parent, name )
+KViewBrowser::KViewBrowser( TQObject* tqparent, const char* name, const TQStringList & )
+ : Plugin( tqparent, name )
, m_pDirLister( 0 )
, m_pFileItemList( 0 )
, m_bShowCurrent( false )
{
- m_pViewer = static_cast<KImageViewer::Viewer *>( parent );
+ m_pViewer = static_cast<KImageViewer::Viewer *>( tqparent );
if( m_pViewer )
{
m_paBack = KStdAction::back ( this, TQT_SLOT( slotBack() ), actionCollection(), "previous_image" );
@@ -163,7 +163,7 @@ void KViewBrowser::setupDirLister()
{
TQApplication::setOverrideCursor( WaitCursor );
TQString url = m_pViewer->url().prettyURL();
- int pos = url.findRev( "/" );
+ int pos = url.tqfindRev( "/" );
url = url.left( (unsigned int)pos );
kdDebug( 4630 ) << "open KDirLister for " << url << endl;
m_pDirLister->openURL( KURL( url ));
diff --git a/kview/modules/browser/kviewbrowser.h b/kview/modules/browser/kviewbrowser.h
index 96e8b17f..ecae29f3 100644
--- a/kview/modules/browser/kviewbrowser.h
+++ b/kview/modules/browser/kviewbrowser.h
@@ -33,8 +33,9 @@ class KMyFileItemList;
class KViewBrowser : public KParts::Plugin
{
Q_OBJECT
+ TQ_OBJECT
public:
- KViewBrowser( TQObject* parent, const char* name, const TQStringList & );
+ KViewBrowser( TQObject* tqparent, const char* name, const TQStringList & );
virtual ~KViewBrowser();
private slots: