#include <featureslistwidget.h>
Inheritance diagram for FeaturesListWidget:

Public Types | |
| enum | { FeatureKeyRole = Qt::UserRole } |
Public Member Functions | |
| FeaturesListWidget (QWidget *parent=0) | |
| void | addFeature (const QByteArray &key) |
| void | insertFeature (int row, const QByteArray &key) |
| QByteArray | itemFeatureKey (QListWidgetItem *item) |
| QByteArray | rowFeatureKey (int row) |
| const QPen & | insertionLinePen () const |
| void | setInsertionLinePen (const QPen &pen) |
Protected Member Functions | |
| virtual void | startDrag (Qt::DropActions supportedActions) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | dragEnterEvent (QDragEnterEvent *event) |
| virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| virtual void | dropEvent (QDropEvent *event) |
| virtual void | paintEvent (QPaintEvent *event) |
Items can be re-ordered by dragging them around within a single FeaturesListWidget.
| FeaturesListWidget::FeaturesListWidget | ( | QWidget * | parent = 0 |
) |
| void FeaturesListWidget::addFeature | ( | const QByteArray & | key | ) |
| void FeaturesListWidget::insertFeature | ( | int | row, | |
| const QByteArray & | key | |||
| ) |
| QByteArray FeaturesListWidget::itemFeatureKey | ( | QListWidgetItem * | v | ) |
Convenience method.
| QByteArray FeaturesListWidget::rowFeatureKey | ( | int | row | ) |
Convenience method.
| const QPen & FeaturesListWidget::insertionLinePen | ( | ) | const |
Returns the pen that is used when drawing the insertion line.
Defaults to a QPalette::Dark coloured pen with a width (height) of 2 pixels.
| void FeaturesListWidget::setInsertionLinePen | ( | const QPen & | pen | ) |
Sets the pen that is used when drawing the insertion line.
Defaults to a QPalette::Dark coloured pen with a width (height) of 2 pixels.
| void FeaturesListWidget::startDrag | ( | Qt::DropActions | supportedActions | ) | [protected, virtual] |
| void FeaturesListWidget::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
| void FeaturesListWidget::dragEnterEvent | ( | QDragEnterEvent * | event | ) | [protected, virtual] |
| void FeaturesListWidget::dragLeaveEvent | ( | QDragLeaveEvent * | event | ) | [protected, virtual] |
| void FeaturesListWidget::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
| void FeaturesListWidget::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
| void FeaturesListWidget::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
1.5.2