summaryrefslogtreecommitdiffstats
path: root/kdecore/kclipboard.cpp
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/kclipboard.cpp
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/kclipboard.cpp')
-rw-r--r--kdecore/kclipboard.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kdecore/kclipboard.cpp b/kdecore/kclipboard.cpp
index 3a266c171..50073cc6a 100644
--- a/kdecore/kclipboard.cpp
+++ b/kdecore/kclipboard.cpp
@@ -41,8 +41,8 @@
class KClipboardSynchronizer::MimeSource : public QMimeSource
{
public:
- MimeSource( const QMimeSource * src )
- : QMimeSource(),
+ MimeSource( const TQMimeSource * src )
+ : TQMimeSource(),
m_formats( true ) // deep copies!
{
m_formats.setAutoDelete( true );
@@ -50,12 +50,12 @@ public:
if ( src )
{
- QByteArray *byteArray;
+ TQByteArray *byteArray;
const char *format;
int i = 0;
while ( (format = src->format( i++ )) )
{
- byteArray = new QByteArray();
+ byteArray = new TQByteArray();
*byteArray = src->encodedData( format ).copy();
m_data.append( byteArray );
m_formats.append( format );
@@ -74,18 +74,18 @@ public:
virtual bool provides( const char *mimeType ) const {
return ( m_formats.find( mimeType ) > -1 );
}
- virtual QByteArray encodedData( const char *format ) const
+ virtual TQByteArray encodedData( const char *format ) const
{
int index = m_formats.find( format );
if ( index > -1 )
return *(m_data.at( index ));
- return QByteArray();
+ return TQByteArray();
}
private:
- mutable QStrList m_formats;
- mutable QPtrList<QByteArray> m_data;
+ mutable TQStrList m_formats;
+ mutable TQPtrList<TQByteArray> m_data;
};
@@ -102,8 +102,8 @@ KClipboardSynchronizer * KClipboardSynchronizer::self()
return s_self;
}
-KClipboardSynchronizer::KClipboardSynchronizer( QObject *parent, const char *name )
- : QObject( parent, name )
+KClipboardSynchronizer::KClipboardSynchronizer( TQObject *parent, const char *name )
+ : TQObject( parent, name )
{
s_self = this;
@@ -123,19 +123,19 @@ KClipboardSynchronizer::~KClipboardSynchronizer()
void KClipboardSynchronizer::setupSignals()
{
- QClipboard *clip = QApplication::clipboard();
+ QClipboard *clip = TQApplication::clipboard();
disconnect( clip, NULL, this, NULL );
if( s_sync )
- connect( clip, SIGNAL( selectionChanged() ),
- SLOT( slotSelectionChanged() ));
+ connect( clip, TQT_SIGNAL( selectionChanged() ),
+ TQT_SLOT( slotSelectionChanged() ));
if( s_reverse_sync )
- connect( clip, SIGNAL( dataChanged() ),
- SLOT( slotClipboardChanged() ));
+ connect( clip, TQT_SIGNAL( dataChanged() ),
+ TQT_SLOT( slotClipboardChanged() ));
}
void KClipboardSynchronizer::slotSelectionChanged()
{
- QClipboard *clip = QApplication::clipboard();
+ QClipboard *clip = TQApplication::clipboard();
// qDebug("*** sel changed: %i", s_blocked);
if ( s_blocked || !clip->ownsSelection() )
@@ -147,7 +147,7 @@ void KClipboardSynchronizer::slotSelectionChanged()
void KClipboardSynchronizer::slotClipboardChanged()
{
- QClipboard *clip = QApplication::clipboard();
+ QClipboard *clip = TQApplication::clipboard();
// qDebug("*** clip changed : %i (implicit: %i, ownz: clip: %i, selection: %i)", s_blocked, s_implicitSelection, clip->ownsClipboard(), clip->ownsSelection());
if ( s_blocked || !clip->ownsClipboard() )
@@ -157,11 +157,11 @@ void KClipboardSynchronizer::slotClipboardChanged()
QClipboard::Selection );
}
-void KClipboardSynchronizer::setClipboard( QMimeSource *data, QClipboard::Mode mode )
+void KClipboardSynchronizer::setClipboard( TQMimeSource *data, QClipboard::Mode mode )
{
// qDebug("---> setting clipboard: %p", data);
- QClipboard *clip = QApplication::clipboard();
+ QClipboard *clip = TQApplication::clipboard();
s_blocked = true;