mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:23:53 +00:00
intercept shift/ctrl double-clicks in tables
This commit is contained in:
parent
c1d867a213
commit
6ff41c6a00
2 changed files with 17 additions and 0 deletions
|
@ -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…
Reference in a new issue