cuadranteqtreewidget.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Tomeu Borras Riera                              *
00003  *   tborras@conetxia.com                                                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #include <QKeyEvent>
00022 #include <QEvent>
00023 #include <QLineEdit>
00024 #include <QTextEdit>
00025 
00026 #include "cuadranteqtreewidget.h"
00027 #include "configuracion.h"
00028 #include "funcaux.h"
00029 
00030 
00031 
00038 CuadranteQTreeWidget::CuadranteQTreeWidget(QWidget *parent) : QTreeWidget(parent) {
00039     _depura("CuadranteQTreeWidget::CuadranteQTreeWidget", 0);
00040     _depura("END CuadranteQTreeWidget::CuadranteQTreeWidget", 0);
00041 }
00042 
00043 
00045 
00047 CuadranteQTreeWidget::~CuadranteQTreeWidget() {
00048     _depura("END ~CuadranteQTreeWidget", 0);
00049 }
00050 
00051 
00053 
00055 void CuadranteQTreeWidget::startDrag( Qt::DropActions supportedActions ) {
00056         _depura("CuadranteQTreeWidget::startDrag", 0);
00057 
00058          QDrag *drag = new QDrag(this);
00059          QMimeData *mimeData = new QMimeData;
00060 
00061          mimeData->setText(currentItem()->text(1));
00062 //         mimeData->setText("macagonsaputa");
00063          drag->setMimeData(mimeData);
00064 //         drag->setPixmap(iconPixmap);
00065 
00066          Qt::DropAction dropAction = drag->start(Qt::ActionMask);
00067          
00068          _depura("finalizado",0 , QString::number(dropAction));
00069 
00070 }
00071 
00072 
00073 
00074 
00075 

Generated on Sat Dec 15 00:01:06 2007 for BulmaGes by  doxygen 1.5.1