mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Connect eventFilters.
This commit is contained in:
parent
82b71773ae
commit
bd5365dc11
7 changed files with 8 additions and 6 deletions
|
|
@ -46,13 +46,13 @@ TabDeckEditor::TabDeckEditor(TabSupervisor *_tabSupervisor) : TabGenericDeckEdit
|
|||
|
||||
databaseDisplayDockWidget = new DeckEditorDatabaseDisplayWidget(this, this);
|
||||
deckDockWidget = new DeckEditorDeckDockWidget(this, this);
|
||||
cardInfoDockWidget = new DeckEditorCardInfoDockWidget(this);
|
||||
cardInfoDockWidget = new DeckEditorCardInfoDockWidget(this, this);
|
||||
filterDockWidget = new DeckEditorFilterDockWidget(this, this);
|
||||
printingSelectorDockWidget = new DeckEditorPrintingSelectorDockWidget(this, this);
|
||||
|
||||
TabDeckEditor::createMenus();
|
||||
|
||||
this->installEventFilter(this);
|
||||
installEventFilter(this);
|
||||
|
||||
TabDeckEditor::retranslateUi();
|
||||
connect(&SettingsCache::instance().shortcuts(), SIGNAL(shortCutChanged()), this, SLOT(refreshShortcuts()));
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ class CardInfoFrameWidget;
|
|||
class QTextEdit;
|
||||
class QLabel;
|
||||
class DeckLoader;
|
||||
class DeckEditorCardInfoDockWidget;
|
||||
class DeckEditorDatabaseDisplayWidget;
|
||||
class DeckEditorDeckDockWidget;
|
||||
class DeckEditorFilterDockWidget;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ void DeckEditorCardInfoDockWidget::createCardInfoDock()
|
|||
cardInfoDockContents->setLayout(cardInfoFrame);
|
||||
setWidget(cardInfoDockContents);
|
||||
|
||||
installEventFilter(this);
|
||||
installEventFilter(deckEditor);
|
||||
connect(this, &QDockWidget::topLevelChanged, deckEditor, &TabGenericDeckEditor::dockTopLevelChanged);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <QDockWidget>
|
||||
|
||||
class TabGenericDeckEditor;
|
||||
class DeckEditorCardInfoDockWidget : public QDockWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ DeckEditorDeckDockWidget::DeckEditorDeckDockWidget(QWidget *parent, TabGenericDe
|
|||
setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
|
||||
setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetMovable);
|
||||
|
||||
installEventFilter(this);
|
||||
installEventFilter(deckEditor);
|
||||
connect(this, SIGNAL(topLevelChanged(bool)), deckEditor, SLOT(dockTopLevelChanged(bool)));
|
||||
createDeckDock();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ void DeckEditorFilterDockWidget::createFiltersDock()
|
|||
filterDockContents->setLayout(filterFrame);
|
||||
setWidget(filterDockContents);
|
||||
|
||||
installEventFilter(this);
|
||||
installEventFilter(deckEditor);
|
||||
connect(this, &QDockWidget::topLevelChanged, deckEditor, &TabGenericDeckEditor::dockTopLevelChanged);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ void DeckEditorPrintingSelectorDockWidget::createPrintingSelectorDock()
|
|||
printingSelectorDockContents->setLayout(printingSelectorFrame);
|
||||
setWidget(printingSelectorDockContents);
|
||||
|
||||
installEventFilter(this);
|
||||
installEventFilter(deckEditor);
|
||||
connect(this, &QDockWidget::topLevelChanged, deckEditor, &TabGenericDeckEditor::dockTopLevelChanged);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue