void AbstractQueryItem::setAccount(AccountObject *account) { if (m_account != account) { m_account = account; emit accountChanged(); } }
void Lvk::FE::ConnectionWidget::onAccountOk() { qDebug() << "ConnectionWidget: Verify Account Ok"; setUiMode(DisconnectedUiMode); emit accountChanged(); }
kOnlineTransferForm::kOnlineTransferForm(QWidget *parent) : QDialog(parent), ui(new Ui::kOnlineTransferFormDecl), m_onlineJobEditWidgets(QList<IonlineJobEdit*>()), m_requiredFields(new kMandatoryFieldGroup(this)) { ui->setupUi(this); ui->unsupportedIcon->setPixmap(QIcon::fromTheme("dialog-information").pixmap(style()->pixelMetric(QStyle::PM_MessageBoxIconSize))); // The ui designer fills the QScrollArea with a QWidget. Remove it so we can simply check for .widget() == nullptr // if it contains a valid widget delete ui->creditTransferEdit->takeWidget(); OnlineBankingAccountNamesFilterProxyModel* accountsModel = new OnlineBankingAccountNamesFilterProxyModel(this); accountsModel->setSourceModel(Models::instance()->accountsModel()); ui->originAccount->setModel(accountsModel); ui->convertMessage->hide(); ui->convertMessage->setWordWrap(true); auto edits = onlineJobAdministration::instance()->onlineJobEdits(); std::for_each(edits.constBegin(), edits.constEnd(), [this](onlineJobAdministration::onlineJobEditOffer in) {this->loadOnlineJobEditPlugin(in);}); // Message Widget for read only jobs m_duplicateJob = KStandardAction::copy(this); connect(m_duplicateJob, SIGNAL(triggered(bool)), SLOT(duplicateCurrentJob())); ui->headMessage->hide(); ui->headMessage->setWordWrap(true); ui->headMessage->setCloseButtonVisible(false); ui->headMessage->addAction(m_duplicateJob); connect(ui->transferTypeSelection, SIGNAL(currentIndexChanged(int)), this, SLOT(convertCurrentJob(int))); connect(ui->buttonAbort, SIGNAL(clicked(bool)), this, SLOT(reject())); connect(ui->buttonSend, SIGNAL(clicked(bool)), this, SLOT(sendJob())); connect(ui->buttonEnque, SIGNAL(clicked(bool)), this, SLOT(accept())); connect(m_requiredFields, SIGNAL(stateChanged(bool)), ui->buttonEnque, SLOT(setEnabled(bool))); connect(ui->originAccount, SIGNAL(accountSelected(QString)), this, SLOT(accountChanged())); accountChanged(); setJobReadOnly(false); m_requiredFields->add(ui->originAccount); m_requiredFields->setOkButton(ui->buttonSend); }
void DialogEditAccount::on_btnDeleteAccount_clicked() { int reply = QMessageBox::question(this, "Cancellazione conto", "Confermi la cancellazione del conto?", QMessageBox::Yes, QMessageBox::Cancel); if(reply == QMessageBox::Yes){ elenco->deleteAccount(itAccount); emit accountChanged(); this->close(); } }
void EtherIPC::handleAccountBalance() { QJsonValue jv; if ( !readReply(jv) ) { return bail(); } const QString decStr = Helpers::toDecStrEther(jv); const int index = fActiveRequest.getIndex(); fAccountList[index].setBalance(decStr); emit accountChanged(fAccountList.at(index)); done(); }
void EtherIPC::handleAccountTransactionCount() { QJsonValue jv; if ( !readReply(jv) ) { return bail(); } std::string hexStr = jv.toString("0x0").remove(0, 2).toStdString(); const BigInt::Vin bv(hexStr, 16); quint64 count = bv.toUlong(); const int index = fActiveRequest.getIndex(); fAccountList[index].setTransactionCount(count); emit accountChanged(fAccountList.at(index)); done(); }
void VkAccount::handleConfigDialogAccepted() { if (!AccConfigDia_) return; EnableFileLog_ = AccConfigDia_->GetFileLogEnabled (); Logger_->SetFileEnabled (EnableFileLog_); MarkAsOnline_ = AccConfigDia_->GetMarkAsOnline (); handleMarkOnline (); PublishTune_ = AccConfigDia_->GetPublishTuneEnabled (); emit accountChanged (this); AccConfigDia_->deleteLater (); }
bool DialogEditAccount::editAccountOwner(){ QString newName = ui->txtEditName->text(); QString newSurname = ui->txtEditSurname->text(); if(!newName.size() || !newSurname.size()){ QMessageBox err; err.setText("I campi dati non possono essere impostati a valori vuoti"); err.exec(); return false; } ElencoConti::ContoPtr& acc = elenco->getAccount(itAccount); acc->setNome(newName.toStdString()); acc->setCognome(newSurname.toStdString()); QMessageBox dlg; dlg.setText("Dati intestatario modificati con successo"); dlg.exec(); emit accountChanged(); return true; }
void AccountsManager::AddAccountImpl (Account_ptr account) { Accounts_ << account; const QList<QStandardItem*> row { new QStandardItem { account->GetName () }, new QStandardItem { account->GetServer () } }; AccountsModel_->appendRow (row); connect (account.get (), SIGNAL (accountChanged ()), this, SLOT (saveAccounts ())); connect (account->GetFolderManager (), SIGNAL (foldersUpdated ()), this, SLOT (saveAccounts ())); }
void Core::AddAccountImpl (Account_ptr account) { Accounts_ << account; QList<QStandardItem*> row; row << new QStandardItem (account->GetName ()); row << new QStandardItem (account->GetServer ()); row << new QStandardItem (account->GetType ()); AccountsModel_->appendRow (row); ProgressManager_->AddAccount (account.get ()); connect (account.get (), SIGNAL (accountChanged ()), this, SLOT (saveAccounts ())); connect (account->GetFolderManager (), SIGNAL (foldersUpdated ()), this, SLOT (saveAccounts ())); }
void VkAccount::RenameAccount (const QString& name) { Name_ = name; emit accountRenamed (name); emit accountChanged (this); }
void VkAccount::handleCookies (const QByteArray& cookies) { LastCookies_ = cookies; emit accountChanged (this); }