mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-02 02:45:32 +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->tableSizeUpdate();
|
||||||
mTable->selectionSizeUpdate();
|
mTable->selectionSizeUpdate();
|
||||||
|
mTable->installEventFilter(this);
|
||||||
|
mBottom->installEventFilter(this);
|
||||||
|
filterBox->installEventFilter(this);
|
||||||
|
|
||||||
if (mBottom->canCreateAndDelete())
|
if (mBottom->canCreateAndDelete())
|
||||||
{
|
{
|
||||||
|
@ -108,3 +111,12 @@ void CSVWorld::TableSubView::createFilterRequest (std::vector< CSMWorld::Univers
|
||||||
}
|
}
|
||||||
emit createFilterRequest(filterSource, action);
|
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);
|
virtual void setStatusBar (bool show);
|
||||||
|
|
||||||
|
bool eventFilter(QObject* object, QEvent *event);
|
||||||
|
void dropEvent(QDropEvent *event);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void cloneRequest(const std::string&,
|
void cloneRequest(const std::string&,
|
||||||
const CSMWorld::UniversalId::Type);
|
const CSMWorld::UniversalId::Type);
|
||||||
|
|
Loading…
Reference in a new issue