summaryrefslogtreecommitdiffstats
path: root/kdecore/kurldrag.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/kurldrag.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kurldrag.h')
-rw-r--r--kdecore/kurldrag.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/kdecore/kurldrag.h b/kdecore/kurldrag.h
index fec73f322..f69161985 100644
--- a/kdecore/kurldrag.h
+++ b/kdecore/kurldrag.h
@@ -20,16 +20,16 @@
#ifndef __KURLDRAG_H
#define __KURLDRAG_H
-#include <qstringlist.h>
-#include <qdragobject.h>
+#include <tqstringlist.h>
+#include <tqdragobject.h>
#include <kurl.h>
#include "kdelibs_export.h"
class QMimeSource;
class KURLDragPrivate;
/**
- * This class is to be used instead of QUriDrag when using KURL.
- * The reason is: QUriDrag (and the XDND/W3C standards) expect URLs to
+ * This class is to be used instead of TQUriDrag when using KURL.
+ * The reason is: TQUriDrag (and the XDND/W3C standards) expect URLs to
* be encoded in UTF-8 (unicode), but KURL uses the current locale
* by default.
* The other reasons for using this class are:
@@ -39,34 +39,34 @@ class KURLDragPrivate;
* require it for downloading e.g. an image).
*
* To create a drag object, use the KURLDrag constructor.
- * To handle drops, use QUriDrag::canDecode() and KURLDrag::decode()
+ * To handle drops, use TQUriDrag::canDecode() and KURLDrag::decode()
*/
class KDECORE_EXPORT KURLDrag : public QUriDrag
{
public:
/**
* Constructs an object to drag the list of URLs in @p urls.
- * The @p dragSource and @p name arguments are passed on to QUriDrag,
+ * The @p dragSource and @p name arguments are passed on to TQUriDrag,
* and the list of urls is converted to UTF-8 before being passed
- * to QUriDrag.
+ * to TQUriDrag.
* @param urls the list of URLs
- * @param dragSource the parent of the QObject. Should be set when doing drag-n-drop,
+ * @param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
* but should be 0 when copying to the clipboard
* @param name the name of the QObject
*/
- KURLDrag( const KURL::List &urls, QWidget* dragSource = 0, const char * name = 0 );
+ KURLDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 );
/**
* Constructs an object to drag the list of URLs in @p urls.
* This version also includes metadata.
* @param urls the list of URLs
* @param metaData a map containing meta data
- * @param dragSource the parent of the QObject. Should be set when doing drag-n-drop,
+ * @param dragSource the parent of the TQObject. Should be set when doing drag-n-drop,
* but should be 0 when copying to the clipboard
* @param name the name of the QObject
* @see metaData()
*/
- KURLDrag( const KURL::List &urls, const QMap<QString, QString>& metaData,
- QWidget* dragSource = 0, const char * name = 0 );
+ KURLDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
+ TQWidget* dragSource = 0, const char * name = 0 );
virtual ~KURLDrag();
@@ -82,13 +82,13 @@ public:
/**
* @deprecated Is equivalent with "new KURLDrag(urls, dragSource, name)".
*/
- static KURLDrag * newDrag( const KURL::List &urls, QWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
+ static KURLDrag * newDrag( const KURL::List &urls, TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
/**
* @deprecated Is equivalent with "new KURLDrag(urls, metaData, dragSource, name)".
*/
- static KURLDrag * newDrag( const KURL::List &urls, const QMap<QString, QString>& metaData,
- QWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
+ static KURLDrag * newDrag( const KURL::List &urls, const TQMap<TQString, TQString>& metaData,
+ TQWidget* dragSource = 0, const char * name = 0 ) KDE_DEPRECATED;
/**
* Meta-data to associate with those URLs.
@@ -97,7 +97,7 @@ public:
* drag->metaData()["key"] = data;
* @see KIO::TransferJob
*/
- QMap<QString, QString> &metaData() { return m_metaData; }
+ TQMap<TQString, TQString> &metaData() { return m_metaData; }
/**
* Convenience method that decodes the contents of @p e
@@ -107,7 +107,7 @@ public:
* @param urls the list of urls will be written here
* @return true if successful, false otherwise
*/
- static bool decode( const QMimeSource *e, KURL::List &urls );
+ static bool decode( const TQMimeSource *e, KURL::List &urls );
/**
* Convenience method that decodes the contents of @p e
@@ -119,19 +119,19 @@ public:
* @param metaData the metadata map will be written here
* @return true if successful, false otherwise
*/
- static bool decode( const QMimeSource *e, KURL::List &urls, QMap<QString,QString>& metaData );
+ static bool decode( const TQMimeSource *e, KURL::List &urls, TQMap<TQString,TQString>& metaData );
/**
* Converts a URL to a string representation suitable for dragging.
* @since 3.2
*/
- static QString urlToString(const KURL &url);
+ static TQString urlToString(const KURL &url);
/**
* Converts a string used for dragging to a URL.
* @since 3.2
*/
- static KURL stringToUrl(const QCString &s);
+ static KURL stringToUrl(const TQCString &s);
#ifdef Q_WS_QWS
/**
@@ -139,26 +139,26 @@ public:
* into a list of KURLs for Qt versions without a MIME clipboard.
* Decoding will fail if at least one value in the list is not a valid KURL.
*/
- static bool decode( QStringList const &e, KURL::List &uris );
+ static bool decode( TQStringList const &e, KURL::List &uris );
#endif
/// @reimp
virtual const char * format( int i ) const;
/// @reimp
- virtual QByteArray encodedData( const char* mime ) const;
+ virtual TQByteArray encodedData( const char* mime ) const;
protected:
/**
* @deprecated Use a KURLDrag constructor with a KURL::List
*/
- KURLDrag( const QStrList & urls, const QMap<QString,QString>& metaData,
- QWidget * dragSource, const char* name ) KDE_DEPRECATED;
+ KURLDrag( const TQStrList & urls, const TQMap<TQString,TQString>& metaData,
+ TQWidget * dragSource, const char* name ) KDE_DEPRECATED;
private:
void init(const KURL::List &urls);
- QStrList m_urls;
- QMap<QString,QString> m_metaData;
+ TQStrList m_urls;
+ TQMap<TQString,TQString> m_metaData;
KURLDragPrivate* d;
};