mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-01 05:05:57 -08:00
Updated blocktime format
This commit is contained in:
@@ -88,19 +88,19 @@
|
|||||||
<number>15</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>10</number>
|
<number>12</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin">
|
<property name="leftMargin">
|
||||||
<number>10</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>10</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin">
|
<property name="rightMargin">
|
||||||
<number>10</number>
|
<number>10</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="bottomMargin">
|
<property name="bottomMargin">
|
||||||
<number>10</number>
|
<number>5</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="lblBlockHeight">
|
<widget class="QLabel" name="lblBlockHeight">
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
<string notr="true">-</string>
|
<string notr="true">-</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
#include "clientmodel.h"
|
#include "clientmodel.h"
|
||||||
#include "bitcoinrpc.h"
|
#include "bitcoinrpc.h"
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
#include <QDebug>
|
||||||
#include "bitcoinunits.h"
|
#include "bitcoinunits.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "overviewpage.h"
|
#include "overviewpage.h"
|
||||||
@@ -55,7 +56,10 @@ void InfoPage::setNumBlocks(int count, int countOfPeers)
|
|||||||
// block height changed so update all possible values as well
|
// block height changed so update all possible values as well
|
||||||
if(clientModel)
|
if(clientModel)
|
||||||
{
|
{
|
||||||
ui->txtLastBlockTime->setText(clientModel->getLastBlockDate().toString());
|
QDateTime blockTime = clientModel->getLastBlockDate().toTimeSpec(Qt::UTC);
|
||||||
|
QString formattedBlockTime = blockTime.toString("dd-MM-yyyy HH:mm:ss");
|
||||||
|
formattedBlockTime.append(" UTC");
|
||||||
|
ui->txtLastBlockTime->setText(formattedBlockTime);
|
||||||
ui->txtDifficulty->setText(QString::number(GetDifficulty()));
|
ui->txtDifficulty->setText(QString::number(GetDifficulty()));
|
||||||
ui->txtCoinSupply->setText(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, GetTotalCoinSupply(count, false)));
|
ui->txtCoinSupply->setText(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, GetTotalCoinSupply(count, false)));
|
||||||
double megaHash = GetNetworkHashRate(-1, count) / 1000000;
|
double megaHash = GetNetworkHashRate(-1, count) / 1000000;
|
||||||
|
|||||||
Reference in New Issue
Block a user