diff options
| author | Kevin Smith <git@kismith.co.uk> | 2009-11-28 14:59:57 (GMT) |
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2009-11-28 14:59:57 (GMT) |
| commit | 84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3 (patch) | |
| tree | d7b90601cb8ecc3f3fe2fa67aeeb4e5b7f41c631 | |
| parent | 647213f7c9bdc5b60c863ee56302f380869befe7 (diff) | |
| download | swift-84b88630a5acdc2f8ad46161d5eaaf1511cbc8d3.zip swift-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.h | 1 | ||||
| -rw-r--r-- | Swift/Controllers/XMLConsoleController.cpp | 1 |
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 @@ -3,8 +3,9 @@ namespace Swift { class XMLConsoleWidget { public: 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 @@ -16,10 +16,11 @@ void XMLConsoleController::handleUIEvent(boost::shared_ptr<UIEvent> rawEvent) { boost::shared_ptr<RequestXMLConsoleUIEvent> event = boost::dynamic_pointer_cast<RequestXMLConsoleUIEvent>(rawEvent); if (event != NULL) { if (xmlConsoleWidget_ == NULL) { xmlConsoleWidget_ = xmlConsoleWidgetFactory_->createXMLConsoleWidget(); } xmlConsoleWidget_->show(); + xmlConsoleWidget_->activate(); } } } |
Swift