kmultipledrag.h
/* This file is part of the KDE project
Copyright (C) 2001 David Faure <faure@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KMULTIPLEDRAG_H
#define KMULTIPLEDRAG_H
#ifndef QT_NO_DRAGANDDROP
#include <qdragobject.h>
#include <qvaluelist.h>
#include "kdelibs_export.h"
class KMultipleDragPrivate;
class KDECORE_EXPORT KMultipleDrag : public QDragObject
{
Q_OBJECT
public:
KMultipleDrag( QWidget *dragSource = 0, const char *name = 0 );
void addDragObject( QDragObject *dragObject );
virtual QByteArray encodedData( const char *mime ) const;
virtual const char* format( int i ) const;
protected:
// KDE4: make private
QPtrList<QDragObject> m_dragObjects;
QValueList<int> m_numberFormats;
protected:
virtual void virtual_hook( int id, void* data );
private:
KMultipleDragPrivate* d;
};
#endif // QT_NO_DRAGANDDROP
#endif // KMULTIPLEDRAG_H
KMultipleDrag
This class makes it easy for applications to provide a drag object (for drag-n-drop or for clipboard)...
Definition: kmultipledrag.h:54

KDE Home | KDE Accessibility Home | Description of Access Keys