intercept shift/ctrl double-clicks in tables

loadfix
Marc Zinnschlag 10 years ago
parent c1d867a213
commit 6ff41c6a00

@ -177,6 +177,19 @@ void CSVWorld::Table::contextMenuEvent (QContextMenuEvent *event)
menu.exec (event->globalPos());
}
void CSVWorld::Table::mouseDoubleClickEvent (QMouseEvent *event)
{
Qt::KeyboardModifiers modifiers =
event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier);
if (!modifiers)
DragRecordTable::mouseDoubleClickEvent (event);
else
{
}
}
CSVWorld::Table::Table (const CSMWorld::UniversalId& id,
bool createAndDelete, bool sorting, CSMDoc::Document& document)
: mCreateAction (0), mCloneAction(0), mRecordStatusDisplay (0),

@ -64,6 +64,10 @@ namespace CSVWorld
void dropEvent(QDropEvent *event);
protected:
virtual void mouseDoubleClickEvent (QMouseEvent *event);
public:
Table (const CSMWorld::UniversalId& id, bool createAndDelete,

Loading…
Cancel
Save