connect(btnBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
layout->addWidget(btnBox);
- // Compact vertical size, allow horizontal resize
+ // Use fixed size based on content - prevents manual resizing
dialog.layout()->setSizeConstraint(QLayout::SetFixedSize);
if (dialog.exec() == QDialog::Accepted) {
void syncStatusUpdated(quint64 height, quint64 target);
Q_INVOKABLE void skipToTip();
Q_INVOKABLE void syncDateRange(const QDate &start, const QDate &end);
- void fullSync(); // from restoreHeight, not genesis - recreate your wallet for that ;P
+ void fullSync(); // Rescans from wallet creation height, not genesis block
bool importTransaction(const QString &txid);
quint64 minutes = blocks * 2;
quint64 days = minutes / (60 * 24);
- QString timeStr = (days > 0) ? QString("~%1 days").arg(days) : QString("~%1 hours").arg(minutes / 60);
- if (days == 0 && minutes < 60) timeStr = "< 1 hour";
+ QString timeStr;
+ if (days > 0) {
+ timeStr = QObject::tr("~%1 days").arg(days);
+ } else if (minutes >= 60) {
+ timeStr = QObject::tr("~%1 hours").arg(minutes / 60);
+ } else {
+ timeStr = QObject::tr("< 1 hour");
+ }
return timeStr;
}
if (daemonHeight > 0) {
if (tooltip) {
- *tooltip = QString("Wallet Height: %1 | Network Tip: %2").arg(walletHeight).arg(daemonHeight);
+ *tooltip = QObject::tr("Wallet Height: %1 | Network Tip: %2").arg(walletHeight).arg(daemonHeight);
}
quint64 blocksBehind = (daemonHeight > startHeight) ? (daemonHeight - startHeight) : 0;
if (blocksBehind == 0) {
- return "[PAUSED] Sync paused";
+ return QObject::tr("[PAUSED] Sync paused");
}
return formatPausedSyncStatus(blocksBehind);
}
- return "[PAUSED] Sync paused";
+ return QObject::tr("[PAUSED] Sync paused");
}
QString formatRestoreHeight(quint64 height) {