summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-11-28 14:59:57 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-11-28 14:59:57 (GMT)
commit84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3 (patch)
treed7b90601cb8ecc3f3fe2fa67aeeb4e5b7f41c631
parent647213f7c9bdc5b60c863ee56302f380869befe7 (diff)
downloadswift-contrib-84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3.zip
swift-contrib-84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3.tar.bz2
Opening the XMLConsole should bring it to front.
Just plugged in the activate call for the qttabbables. Resolves: #263
-rw-r--r--Swift/Controllers/UIInterfaces/XMLConsoleWidget.h1
-rw-r--r--Swift/Controllers/XMLConsoleController.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/Swift/Controllers/UIInterfaces/XMLConsoleWidget.h b/Swift/Controllers/UIInterfaces/XMLConsoleWidget.h
index 9098fbc..e333d97 100644
--- a/Swift/Controllers/UIInterfaces/XMLConsoleWidget.h
+++ b/Swift/Controllers/UIInterfaces/XMLConsoleWidget.h
@@ -6,5 +6,6 @@ namespace Swift {
virtual ~XMLConsoleWidget();
virtual void show() = 0;
+ virtual void activate() = 0;
};
}
diff --git a/Swift/Controllers/XMLConsoleController.cpp b/Swift/Controllers/XMLConsoleController.cpp
index 810e8a6..ebc9912 100644
--- a/Swift/Controllers/XMLConsoleController.cpp
+++ b/Swift/Controllers/XMLConsoleController.cpp
@@ -19,6 +19,7 @@ void XMLConsoleController::handleUIEvent(boost::shared_ptr<UIEvent> rawEvent) {
xmlConsoleWidget_ = xmlConsoleWidgetFactory_->createXMLConsoleWidget();
}
xmlConsoleWidget_->show();
+ xmlConsoleWidget_->activate();
}
}