void CachedImage::_setProperties() { if (!_headReply) return; if (_headReply->error() != QNetworkReply::NoError) { _headReply->deleteLater(); _headReply = nullptr; return; } auto mime = _headReply->header(QNetworkRequest::ContentTypeHeader).toString().split('/'); if (mime.isEmpty()) mime << ""; if (!mime.first().isEmpty() && mime.first().toLower() != "image") qDebug() << "mime:" << mime.first() << "\nurl:" << _url; setExtension(mime.last()); auto length = _headReply->header(QNetworkRequest::ContentLengthHeader).toInt(); _kbytesTotal = length / 1024; emit totalChanged(); _headReply->deleteLater(); _headReply = nullptr; if (_man->autoload(_kbytesTotal)) download(); }
void CashDrawer::setGiftCards(float val) { if(m_giftCards != val) { m_giftCards = val; logPropertyChanged(m_giftCards, "giftCards"); giftCardsChanged(m_giftCards); totalChanged(total()); } }
void CashDrawer::setChecks(float val) { if(m_checks != val) { m_checks = val; logPropertyChanged(m_checks, "checks"); checksChanged(m_checks); totalChanged(total()); } }
void CashDrawer::setPayouts(float val) { if(m_payouts != val) { m_payouts = val; logPropertyChanged(m_payouts, "payouts"); payoutsChanged(m_payouts); totalChanged(total()); } }
void CashDrawer::setCoins(float val) { if(m_coins != val) { m_coins = val; logPropertyChanged(m_coins, "coins"); coinsChanged(m_coins); totalChanged(total()); } }
void CashDrawer::setc1s(quint16 val) { if(m_c1s != val) { m_c1s = val; logPropertyChanged(m_c1s, "c1s"); c1sChanged(m_c1s); totalChanged(total()); } }
void CashDrawer::setc5s(quint16 val) { if(m_c5s != val) { m_c5s = val; logPropertyChanged(m_c5s, "c5s"); c5sChanged(m_c5s); totalChanged(total()); } }
void CashDrawer::setc20s(quint16 val) { if(m_c20s != val) { m_c20s = val; logPropertyChanged(m_c20s, "c20s"); c20sChanged(m_c20s); totalChanged(total()); } }
void LaminatTask::clear() { total = Money(0); ui->totalInput->setMoney(total); emit totalChanged(); ui->price->setMoney(Money(0)); ui->checkGroup->setChecked(false); }
void Customer::fireTotalsChanged() { foodTotalChanged(foodTotal()); taxTotalChanged(taxTotal()); barTotalChanged(barTotal()); totalChanged(total()); actualTaxChanged(actualTax()); marginChanged(margin()); }
void CachedImage::_changeBytes(qint64 bytesReceived, qint64 bytesTotal) { if (!_reply || _reply->error() != QNetworkReply::NoError) return; _kbytesReceived = bytesReceived / 1024; emit receivedChanged(); _kbytesTotal = bytesTotal / 1024; emit totalChanged(); }
void Scanner::finished() { list=watcher->result(); total=list.count(); emit totalChanged(); QSqlDatabase database=QSqlDatabase::database("Music"); if(database.open()){ database.exec("CREATE TABLE IF NOT EXISTS Music(File primary key,Title,Artist,Album,Genre,Year,Type,BPM)"); if(database.transaction()); next(); } }
void Memory::setMemory(int total, int free) { int changed = 0; if ( fTotal != total ) { fTotal = total; emit totalChanged(total); changed++; } if ( fFree != free ) { fFree = free; emit freeChanged(free); changed++; } if ( changed > 0 ) { emit summaryValueChanged(getSummaryValue()); } }
void MenuPageHandler::setTotal(double t){ if ( abs(total_price - t) > 0.1 ) { total_price = t; emit totalChanged(); } }
void KodiDownload::setTotal(qint64 total) { m_total = total; emit totalChanged(); }