void ExplorerWidget::handle(ConnectionEstablishedEvent *event) { decreaseProgress(); ExplorerServerTreeItem *item = new ExplorerServerTreeItem(_treeWidget,event->server); _treeWidget->addTopLevelItem(item); _treeWidget->setCurrentItem(item); _treeWidget->setFocus(); }
void ExplorerWidget::handle(ConnectionEstablishedEvent *event) { // Do not make UI changes for non PRIMARY connections if (event->connectionType != ConnectionPrimary) return; decreaseProgress(); auto item = new ExplorerServerTreeItem(_treeWidget, event->server, event->connInfo); _treeWidget->addTopLevelItem(item); _treeWidget->setCurrentItem(item); _treeWidget->setFocus(); }
void ExplorerWidget::handle(ConnectionFailedEvent *event) { decreaseProgress(); }