mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Installing basic event filter
This commit is contained in:
parent
55e9083570
commit
fcf17805a0
@ -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())
|
||||||
{
|
{
|
||||||
@ -107,4 +110,13 @@ void CSVWorld::TableSubView::createFilterRequest (std::vector< CSMWorld::Univers
|
|||||||
filterSource.push_back(pair);
|
filterSource.push_back(pair);
|
||||||
}
|
}
|
||||||
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…
x
Reference in New Issue
Block a user