Merge #7732: [Qt] Debug window: replace "Build date" with "Datadir"
fc737d1
[Qt] remove unused formatBuildDate method (Jonas Schnelli)4856f1d
[Qt] Debug window: replace "Build date" with "Datadir" (Jonas Schnelli)
This commit is contained in:
commit
0b98dd7939
4 changed files with 12 additions and 9 deletions
|
@ -173,11 +173,6 @@ QString ClientModel::formatSubVersion() const
|
|||
return QString::fromStdString(strSubVersion);
|
||||
}
|
||||
|
||||
QString ClientModel::formatBuildDate() const
|
||||
{
|
||||
return QString::fromStdString(CLIENT_DATE);
|
||||
}
|
||||
|
||||
bool ClientModel::isReleaseVersion() const
|
||||
{
|
||||
return CLIENT_VERSION_IS_RELEASE;
|
||||
|
@ -193,6 +188,11 @@ QString ClientModel::formatClientStartupTime() const
|
|||
return QDateTime::fromTime_t(nClientStartupTime).toString();
|
||||
}
|
||||
|
||||
QString ClientModel::dataDir() const
|
||||
{
|
||||
return QString::fromStdString(GetDataDir().string());
|
||||
}
|
||||
|
||||
void ClientModel::updateBanlist()
|
||||
{
|
||||
banTableModel->refresh();
|
||||
|
|
|
@ -72,10 +72,10 @@ public:
|
|||
|
||||
QString formatFullVersion() const;
|
||||
QString formatSubVersion() const;
|
||||
QString formatBuildDate() const;
|
||||
bool isReleaseVersion() const;
|
||||
QString clientName() const;
|
||||
QString formatClientStartupTime() const;
|
||||
QString dataDir() const;
|
||||
|
||||
private:
|
||||
OptionsModel *optionsModel;
|
||||
|
|
|
@ -141,12 +141,12 @@
|
|||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_12">
|
||||
<property name="text">
|
||||
<string>Build date</string>
|
||||
<string>Datadir</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1" colspan="2">
|
||||
<widget class="QLabel" name="buildDate">
|
||||
<widget class="QLabel" name="dataDir">
|
||||
<property name="cursor">
|
||||
<cursorShape>IBeamCursor</cursorShape>
|
||||
</property>
|
||||
|
@ -156,6 +156,9 @@
|
|||
<property name="textFormat">
|
||||
<enum>Qt::PlainText</enum>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
||||
</property>
|
||||
|
|
|
@ -444,7 +444,7 @@ void RPCConsole::setClientModel(ClientModel *model)
|
|||
ui->clientVersion->setText(model->formatFullVersion());
|
||||
ui->clientUserAgent->setText(model->formatSubVersion());
|
||||
ui->clientName->setText(model->clientName());
|
||||
ui->buildDate->setText(model->formatBuildDate());
|
||||
ui->dataDir->setText(model->dataDir());
|
||||
ui->startupTime->setText(model->formatClientStartupTime());
|
||||
ui->networkName->setText(QString::fromStdString(Params().NetworkIDString()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue