示例#1
0
    void ExplorerWidget::handle(ConnectionEstablishedEvent *event)
    {
        decreaseProgress();

        ExplorerServerTreeItem *item = new ExplorerServerTreeItem(_treeWidget,event->server);
        _treeWidget->addTopLevelItem(item);
        _treeWidget->setCurrentItem(item);
        _treeWidget->setFocus();
    }
示例#2
0
    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();
    }
示例#3
0
 void ExplorerWidget::handle(ConnectionFailedEvent *event)
 {
     decreaseProgress();
 }