aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
authorShafil Alam <[email protected]>2021-06-14 00:54:13 -0400
committerShafil Alam <[email protected]>2021-07-22 16:04:57 -0400
commit4f3851a722d7c3de451a5c05effebccfe6d2b380 (patch)
tree547146d6632ed3253ae701a910b50aa124dd81a8 /src/qt/overviewpage.cpp
parentFix french-canadian translation in bitcoin_fr_CA.ts (diff)
downloaddiscoin-4f3851a722d7c3de451a5c05effebccfe6d2b380.tar.xz
discoin-4f3851a722d7c3de451a5c05effebccfe6d2b380.zip
Add tips section
Add more tips Allow QT translations Fix tips
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index ba344f4db..cd879002e 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -129,6 +129,9 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
ui->labelTransactionsStatus->setIcon(icon);
ui->labelWalletStatus->setIcon(icon);
+ // Set tip of the day
+ UpdateTip();
+
// Recent transactions
ui->listTransactions->setItemDelegate(txdelegate);
ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));
@@ -143,6 +146,25 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
connect(ui->labelTransactionsStatus, SIGNAL(clicked()), this, SLOT(handleOutOfSyncWarningClicks()));
}
+void OverviewPage::UpdateTip()
+{
+ QStringList tips = {
+ tr("Never share your wallet.dat file/your private key with anyone"),
+ tr("For more advanced settings use the console in 'Help' -> 'Debug Window'"),
+ tr("Encrypt your wallet with a strong passphrase for maximum security"),
+ tr("Make sure to keep your wallet updated."),
+ tr("Backup your private key to recover your coins, using 'File' > 'Backup Wallet'"),
+ tr("Always do your own research before using an external cryptocurrency service"),
+ tr("Never share your private key to an untrustworthy person."),
+ tr("Who own the private keys own the coins."),
+ tr("To see ongoing development and contribute, checkout Dogecoin repository on GitHub!"),
+ tr("Services that claim to double your dogecoins are always ponzi schemes")
+ };
+
+ int i = rand() % tips.length();
+ ui->label_tip->setText(tips[i]);
+}
+
void OverviewPage::handleTransactionClicked(const QModelIndex &index)
{
if(filter)