void AddCurrencyDialog::loadError() { QuerySocket *eSocket = static_cast<QuerySocket *>( sender() ); if( !eSocket ) return; QString str = eSocket->getError(); statusLabel->setText( str ); warningLabel->setPixmap( errorIcon.pixmap(QSize(22,22)) ); progressBar->hide(); enableForm(false); eSocket->closeConnection(); }
void FormBar::itemSelectionChanged() { emit clearForms(); for(auto&& item: m_treewidget->selectedItems()) { emit enableForm(item->text(0)); } }