mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 22:45:33 +00:00
Installing basic event filter
This commit is contained in:
parent
55e9083570
commit
fcf17805a0
2 changed files with 16 additions and 1 deletions
|
@ -44,6 +44,9 @@ CSVWorld::TableSubView::TableSubView (const CSMWorld::UniversalId& id, CSMDoc::D
|
|||
|
||||
mTable->tableSizeUpdate();
|
||||
mTable->selectionSizeUpdate();
|
||||
mTable->installEventFilter(this);
|
||||
mBottom->installEventFilter(this);
|
||||
filterBox->installEventFilter(this);
|
||||
|
||||
if (mBottom->canCreateAndDelete())
|
||||
{
|
||||
|
@ -107,4 +110,13 @@ void CSVWorld::TableSubView::createFilterRequest (std::vector< CSMWorld::Univers
|
|||
filterSource.push_back(pair);
|
||||
}
|
||||
emit createFilterRequest(filterSource, action);
|
||||
}
|
||||
}
|
||||
|
||||
bool CSVWorld::TableSubView::eventFilter (QObject* object, QEvent* event)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void CSVWorld::TableSubView::dropEvent (QDropEvent* event)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -41,6 +41,9 @@ namespace CSVWorld
|
|||
|
||||
virtual void setStatusBar (bool show);
|
||||
|
||||
bool eventFilter(QObject* object, QEvent *event);
|
||||
void dropEvent(QDropEvent *event);
|
||||
|
||||
signals:
|
||||
void cloneRequest(const std::string&,
|
||||
const CSMWorld::UniversalId::Type);
|
||||
|
|
Loading…
Reference in a new issue