Konsole
ProfileListWidget.h
Go to the documentation of this file.00001 /* 00002 Copyright 2006-2008 by Robert Knight <robertknight@gmail.com> 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation; either version 2 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 02110-1301 USA. 00018 */ 00019 00020 #ifndef PROFILELISTWIDGET_H 00021 #define PROFILELISTWIDGET_H 00022 00023 // Qt 00024 #include <QtGui/QListWidget> 00025 00026 class ProfileListWidget : public QListWidget 00027 { 00028 Q_OBJECT 00029 00030 public: 00031 ProfileListWidget(QWidget* parent); 00032 00033 signals: 00034 void takeSessionEvent(int itemIndex); 00035 void dropSessionEvent(int id); 00036 00037 protected: 00038 virtual void startDrag(Qt::DropActions supportedActions); 00039 virtual void dropEvent(QDropEvent* event); 00040 virtual void dragEnterEvent(QDragEnterEvent* event); 00041 virtual void dragMoveEvent(QDragMoveEvent* event); 00042 00043 }; 00044 00045 /*class SessionListDelegate : public QAbstractItemDelegate 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 virtual void paint(QPainter* painter , const QStyleOptionViewItem& option, 00051 const QModelIndex& index) const; 00052 00053 virtual QSize sizeHint( const QStyleOptionViewItem& option, 00054 const QModelIndex& index) const; 00055 };*/ 00056 00057 #endif // PROFILELISTWIDGET_H