Add DockWidgetBase::isFocusedChanged

Fixes: #60
This commit is contained in:
Sergio Martins
2020-08-15 00:38:26 +01:00
parent 9e2d001ac5
commit d9fdd20caa
4 changed files with 44 additions and 1 deletions

View File

@@ -318,6 +318,7 @@ public:
///@brief Returns whether This or any child of this dock widget is focused
///Not to be confused with QWidget::hasFocus(), which just refers to 1 widget. This includes
///variant includes children.
///@sa isFocusedChanged()
bool isFocused() const;
Q_SIGNALS:
@@ -343,6 +344,10 @@ Q_SIGNALS:
///@sa setOptions(), options()
void optionsChanged(KDDockWidgets::DockWidgetBase::Options);
///@brief emitted when isFocused changes
///@sa isFocused
void isFocusedChanged(bool);
protected:
void onParentChanged();
void onShown(bool spontaneous);