summaryrefslogtreecommitdiffstats
blob: dafdd3ff276cfc93ac2219babd389c92a9cfdc7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "QtTabbable.h"

#include <QApplication>

namespace Swift {

QtTabbable::~QtTabbable() {
	emit windowClosing();
}

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());
}

}