featuredistributionlistview.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <qdragobject.h>
00025
00026 #include "featuredistributionlistview.h"
00027
00028 FeatureDistributionListView::FeatureDistributionListView(QWidget *parent,
00029 const char* name)
00030 : KListView(parent, name)
00031 {
00032 setDragEnabled( true );
00033 setAcceptDrops( true );
00034 setAllColumnsShowFocus( true );
00035 }
00036
00037 void FeatureDistributionListView::dragEnterEvent( QDragEnterEvent* e )
00038 {
00039 bool canDecode = QTextDrag::canDecode( e );
00040 e->accept( canDecode );
00041 }
00042
00043 void FeatureDistributionListView::viewportDragMoveEvent( QDragMoveEvent *e )
00044 {
00045 bool canDecode = QTextDrag::canDecode( e );
00046 e->accept( canDecode );
00047 }
00048
00049 void FeatureDistributionListView::viewportDropEvent( QDropEvent *e )
00050 {
00051 emit dropped( e );
00052 }
00053
00054 void FeatureDistributionListView::dropEvent( QDropEvent *e )
00055 {
00056 emit dropped( e );
00057 }
00058
00059 #include "featuredistributionlistview.moc"
This file is part of the documentation for kdelibs Version 3.1.5.