-void Pane::activationConnect() {
- connect(up, SIGNAL(clicked()), theCase, SLOT(switchActivePane()));
- connect(location, SIGNAL(mousePressed()), theCase, SLOT(switchActivePane()));
- connect(fileList, SIGNAL(mousePressed()), theCase, SLOT(switchActivePane()));
-}
-
-
-void Pane::activationDisconnect() {
- disconnect(up, SIGNAL(clicked()), theCase, SLOT(switchActivePane()));
- disconnect(location, SIGNAL(mousePressed()), theCase, SLOT(switchActivePane()));
- disconnect(fileList, SIGNAL(mousePressed()), theCase, SLOT(switchActivePane()));
+bool Pane::eventFilter(QObject *object, QEvent *event) {
+ if (!active && event->type() == QEvent::MouseButtonPress) {
+ emit switchPanes();
+ if (object == fileList) return true;
+ }
+ return false;