summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/pdf/poppler-qt/poppler-link.cc
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 /kfile-plugins/pdf/poppler-qt/poppler-link.cc
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 'kfile-plugins/pdf/poppler-qt/poppler-link.cc')
-rw-r--r--kfile-plugins/pdf/poppler-qt/poppler-link.cc52
1 files changed, 26 insertions, 26 deletions
diff --git a/kfile-plugins/pdf/poppler-qt/poppler-link.cc b/kfile-plugins/pdf/poppler-qt/poppler-link.cc
index af6d6452..72db1fff 100644
--- a/kfile-plugins/pdf/poppler-qt/poppler-link.cc
+++ b/kfile-plugins/pdf/poppler-qt/poppler-link.cc
@@ -21,7 +21,7 @@
#include <poppler-qt.h>
#include <poppler-private.h>
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <Link.h>
@@ -80,9 +80,9 @@ namespace Poppler {
if (deleteDest) delete ld;
}
- LinkDestination::LinkDestination(const QString &description)
+ LinkDestination::LinkDestination(const TQString &description)
{
- QStringList tokens = QStringList::split(';', description);
+ TQStringList tokens = TQStringList::split(';', description);
m_kind = static_cast<Kind>(tokens[0].toInt());
m_pageNum = tokens[1].toInt();
m_left = tokens[2].toDouble();
@@ -145,18 +145,18 @@ namespace Poppler {
return m_changeZoom;
}
- QString LinkDestination::toString() const
- {
- QString s = QString::number( (Q_INT8)m_kind );
- s += ";" + QString::number( m_pageNum );
- s += ";" + QString::number( m_left );
- s += ";" + QString::number( m_bottom );
- s += ";" + QString::number( m_right );
- s += ";" + QString::number( m_top );
- s += ";" + QString::number( m_zoom );
- s += ";" + QString::number( (Q_INT8)m_changeLeft );
- s += ";" + QString::number( (Q_INT8)m_changeTop );
- s += ";" + QString::number( (Q_INT8)m_changeZoom );
+ TQString LinkDestination::toString() const
+ {
+ TQString s = TQString::number( (TQ_INT8)m_kind );
+ s += ";" + TQString::number( m_pageNum );
+ s += ";" + TQString::number( m_left );
+ s += ";" + TQString::number( m_bottom );
+ s += ";" + TQString::number( m_right );
+ s += ";" + TQString::number( m_top );
+ s += ";" + TQString::number( m_zoom );
+ s += ";" + TQString::number( (TQ_INT8)m_changeLeft );
+ s += ";" + TQString::number( (TQ_INT8)m_changeTop );
+ s += ";" + TQString::number( (TQ_INT8)m_changeZoom );
return s;
}
@@ -166,7 +166,7 @@ namespace Poppler {
{
}
- Link::Link(const QRect &linkArea) : m_linkArea(linkArea)
+ Link::Link(const TQRect &linkArea) : m_linkArea(linkArea)
{
}
@@ -175,13 +175,13 @@ namespace Poppler {
return None;
}
- QRect Link::linkArea() const
+ TQRect Link::linkArea() const
{
return m_linkArea;
}
// LinkGoto
- LinkGoto::LinkGoto( const QRect &linkArea, QString extFileName, const LinkDestination & destination ) : Link(linkArea), m_extFileName(extFileName), m_destination(destination)
+ LinkGoto::LinkGoto( const TQRect &linkArea, TQString extFileName, const LinkDestination & destination ) : Link(linkArea), m_extFileName(extFileName), m_destination(destination)
{
}
@@ -190,7 +190,7 @@ namespace Poppler {
return !m_extFileName.isEmpty();
}
- const QString &LinkGoto::fileName() const
+ const TQString &LinkGoto::fileName() const
{
return m_extFileName;
}
@@ -206,15 +206,15 @@ namespace Poppler {
}
// LinkExecute
- LinkExecute::LinkExecute( const QRect &linkArea, const QString & file, const QString & params ) : Link(linkArea), m_fileName(file), m_parameters(params)
+ LinkExecute::LinkExecute( const TQRect &linkArea, const TQString & file, const TQString & params ) : Link(linkArea), m_fileName(file), m_parameters(params)
{
}
- const QString & LinkExecute::fileName() const
+ const TQString & LinkExecute::fileName() const
{
return m_fileName;
}
- const QString & LinkExecute::parameters() const
+ const TQString & LinkExecute::parameters() const
{
return m_parameters;
}
@@ -225,11 +225,11 @@ namespace Poppler {
}
// LinkBrowse
- LinkBrowse::LinkBrowse( const QRect &linkArea, const QString &url ) : Link(linkArea), m_url(url)
+ LinkBrowse::LinkBrowse( const TQRect &linkArea, const TQString &url ) : Link(linkArea), m_url(url)
{
}
- const QString & LinkBrowse::url() const
+ const TQString & LinkBrowse::url() const
{
return m_url;
}
@@ -240,7 +240,7 @@ namespace Poppler {
}
// LinkAction
- LinkAction::LinkAction( const QRect &linkArea, ActionType actionType ) : Link(linkArea), m_type(actionType)
+ LinkAction::LinkAction( const TQRect &linkArea, ActionType actionType ) : Link(linkArea), m_type(actionType)
{
}
@@ -255,7 +255,7 @@ namespace Poppler {
}
// LinkMovie
- LinkMovie::LinkMovie( const QRect &linkArea ) : Link(linkArea)
+ LinkMovie::LinkMovie( const TQRect &linkArea ) : Link(linkArea)
{
}