forked from qt-creator/qt-creator
Remove unused signal
Change-Id: I9bc392527346c5fe2a2e9ddb05695adcf74d78a4 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -79,11 +79,6 @@ DefaultAction::DefaultAction(const QString &description)
|
||||
connect(this, &QAction::triggered, this, &DefaultAction::actionTriggered);
|
||||
}
|
||||
|
||||
void DefaultAction::actionTriggered(bool enable)
|
||||
{
|
||||
emit triggered(enable, m_selectionContext);
|
||||
}
|
||||
|
||||
void DefaultAction::setSelectionContext(const SelectionContext &selectionContext)
|
||||
{
|
||||
m_selectionContext = selectionContext;
|
||||
|
||||
@@ -40,12 +40,9 @@ public:
|
||||
DefaultAction(const QString &description);
|
||||
|
||||
// virtual function instead of slot
|
||||
virtual void actionTriggered(bool enable);
|
||||
virtual void actionTriggered(bool enable) {}
|
||||
void setSelectionContext(const SelectionContext &selectionContext);
|
||||
|
||||
signals:
|
||||
void triggered(bool checked, const SelectionContext &selectionContext);
|
||||
|
||||
protected:
|
||||
SelectionContext m_selectionContext;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user