blob: 84735299d20578ef2ed9768fa9e9cb4dab2472a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "QtTabbable.h"
#include <QApplication>
namespace Swift {
bool QtTabbable::isWidgetSelected() {
/*isActiveWindow() shouldn't be necessary, but I don't trust it as far as I can throw it*/
return isActiveWindow() && isAncestorOf(QApplication::focusWidget());
}
}
|