allow drags from report table

report
Marc Zinnschlag 10 years ago
parent 7c59ea6296
commit 6c18a3b0b5

@ -7,6 +7,12 @@
#include "../../view/world/idtypedelegate.hpp"
void CSVTools::ReportTable::mouseMoveEvent (QMouseEvent *event)
{
if (event->buttons() & Qt::LeftButton)
startDrag (*this);
}
CSVTools::ReportTable::ReportTable (CSMDoc::Document& document,
const CSMWorld::UniversalId& id, QWidget *parent)
: CSVWorld::DragRecordTable (document, parent), mModel (document.getReport (id))

@ -22,6 +22,10 @@ namespace CSVTools
CSMTools::ReportModel *mModel;
CSVWorld::CommandDelegate *mIdTypeDelegate;
private:
void mouseMoveEvent (QMouseEvent *event);
public:
ReportTable (CSMDoc::Document& document, const CSMWorld::UniversalId& id,

Loading…
Cancel
Save