2 Copyright 2006-2008 by Robert Knight <robertknight@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 #ifndef PROFILELISTWIDGET_H
21 #define PROFILELISTWIDGET_H
24 #include <QtGui/QListWidget>
26 class ProfileListWidget
: public QListWidget
31 ProfileListWidget(QWidget
* parent
);
34 void takeSessionEvent(int itemIndex
);
35 void dropSessionEvent(int id
);
38 virtual void startDrag(Qt::DropActions supportedActions
);
39 virtual void dropEvent(QDropEvent
* event
);
40 virtual void dragEnterEvent(QDragEnterEvent
* event
);
41 virtual void dragMoveEvent(QDragMoveEvent
* event
);
45 /*class SessionListDelegate : public QAbstractItemDelegate
50 virtual void paint(QPainter* painter , const QStyleOptionViewItem& option,
51 const QModelIndex& index) const;
53 virtual QSize sizeHint( const QStyleOptionViewItem& option,
54 const QModelIndex& index) const;
57 #endif // PROFILELISTWIDGET_H