[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kde3support/kdecore
From: Wilco Greven <greven () kde ! org>
Date: 2005-10-26 17:40:05
Message-ID: 1130348405.597654.30390.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 474548 by wgreven:
KMultipleDrag -> K3MultipleDrag
M +10 -10 k3multipledrag.cpp
M +13 -13 k3multipledrag.h
--- trunk/KDE/kdelibs/kde3support/kdecore/k3multipledrag.cpp #474547:474548
@@ -17,20 +17,20 @@
Boston, MA 02110-1301, USA.
*/
-#include "kmultipledrag.h"
+#include "k3multipledrag.h"
#include "kdebug.h"
#ifndef QT_NO_DRAGANDDROP
-KMultipleDrag::KMultipleDrag( QWidget *dragSource, const char *name )
+K3MultipleDrag::K3MultipleDrag( QWidget *dragSource, const char *name )
: Q3DragObject( dragSource, name )
{
m_dragObjects.setAutoDelete( true );
}
-void KMultipleDrag::addDragObject( Q3DragObject *dragObject )
+void K3MultipleDrag::addDragObject( Q3DragObject *dragObject )
{
- //kdDebug() << "KMultipleDrag::addDragObject" << endl;
+ //kdDebug() << "K3MultipleDrag::addDragObject" << endl;
m_dragObjects.append( dragObject );
// We need to find out how many formats this dragObject supports
int i = 0;
@@ -39,9 +39,9 @@
m_numberFormats.append( i ); // e.g. if it supports two formats, 0 and 1, store 2.
}
-QByteArray KMultipleDrag::encodedData( const char *mime ) const
+QByteArray K3MultipleDrag::encodedData( const char *mime ) const
{
- //kdDebug() << "KMultipleDrag::encodedData " << mime << endl;
+ //kdDebug() << "K3MultipleDrag::encodedData " << mime << endl;
// Iterate over the drag objects, and find the format in the right one
Q3PtrListIterator<Q3DragObject> it( m_dragObjects );
for ( ; it.current(); ++it )
@@ -55,9 +55,9 @@
return QByteArray();
}
-const char* KMultipleDrag::format( int i ) const
+const char* K3MultipleDrag::format( int i ) const
{
- //kdDebug() << "KMultipleDrag::format " << i << endl;
+ //kdDebug() << "K3MultipleDrag::format " << i << endl;
// example: m_numberFormats: 1, 4
// m_dragObjects: storeddrag, textdrag
// i=0 -> storeddrag->format( 0 )
@@ -74,9 +74,9 @@
return 0;
}
-void KMultipleDrag::virtual_hook( int, void* )
+void K3MultipleDrag::virtual_hook( int, void* )
{ /*BASE::virtual_hook( id, data );*/ }
-#include "kmultipledrag.moc"
+#include "k3multipledrag.moc"
#endif
--- trunk/KDE/kdelibs/kde3support/kdecore/k3multipledrag.h #474547:474548
@@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
-#ifndef KMULTIPLEDRAG_H
-#define KMULTIPLEDRAG_H
+#ifndef K3MULTIPLEDRAG_H
+#define K3MULTIPLEDRAG_H
#ifndef QT_NO_DRAGANDDROP
@@ -26,7 +26,7 @@
#include <q3valuelist.h>
#include "kdelibs_export.h"
-class KMultipleDragPrivate;
+class K3MultipleDragPrivate;
/**
* This class makes it easy for applications to provide a drag object
* (for drag-n-drop or for clipboard) that has several representations
@@ -34,15 +34,15 @@
*
* Instead of creating a specific class for each case (as would otherwise
* be necessary), you can simply create independent drag objects (e.g.
- * a QImageDrag object and a KURLDrag object), and bundle them together
- * using KMultipleDrag.
+ * a Q3ImageDrag object and a K3URLDrag object), and bundle them together
+ * using K3MultipleDrag.
*
* Sample code for this:
*
* \code
- * KMultipleDrag *drag = new KMultipleDrag( parentWidget );
- * drag->addDragObject( new QImageDrag( someQImage, 0 ) );
- * drag->addDragObject( new KURLDrag( someKURL, 0 ) );
+ * K3MultipleDrag *drag = new K3MultipleDrag( parentWidget );
+ * drag->addDragObject( new Q3ImageDrag( someQImage, 0 ) );
+ * drag->addDragObject( new K3URLDrag( someKURL, 0 ) );
* drag->drag();
* \endcode
*
@@ -51,18 +51,18 @@
*
* @author David Faure <faure@kde.org>
*/
-class KDECORE_EXPORT KMultipleDrag : public Q3DragObject
+class KDE3SUPPORT_EXPORT K3MultipleDrag : public Q3DragObject
{
Q_OBJECT
public:
/**
- * Create a new KMultipleDrag object.
+ * Create a new K3MultipleDrag object.
* @param dragSource the parent object which is the source of the data,
* 0 for a parent-less object
* @param name the name of the object, can be 0
*/
- KMultipleDrag( QWidget *dragSource = 0, const char *name = 0 );
+ K3MultipleDrag( QWidget *dragSource = 0, const char *name = 0 );
/**
* Call this to add each underlying drag object to the multiple drag object.
@@ -95,9 +95,9 @@
private:
Q3PtrList<Q3DragObject> m_dragObjects;
QList<int> m_numberFormats;
- KMultipleDragPrivate* d;
+ K3MultipleDragPrivate* d;
};
#endif // QT_NO_DRAGANDDROP
-#endif // KMULTIPLEDRAG_H
+#endif // K3MULTIPLEDRAG_H
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic