Add DockWidget::isFocused() for issue #60

Needs a signal now
This commit is contained in:
Sergio Martins
2020-08-14 23:04:42 +01:00
parent 750f9b6142
commit 9e2d001ac5
3 changed files with 71 additions and 0 deletions

View File

@@ -315,6 +315,11 @@ public:
*/
bool isMainWindow() const;
///@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.
bool isFocused() const;
Q_SIGNALS:
///@brief signal emitted when the parent changed
void parentChanged();