Skip to content

Commit b22dc99

Browse files
committed
[Qt] Debug window: remove "Build date".
The build date does only makes sense for custom/self-compiled PIVX-core versions because we are using static build-dates for our deterministic release builds. Coming from btc@4856f1d6712cdb2eac8712e379fd1e351583d78f
1 parent 4a18d50 commit b22dc99

File tree

4 files changed

+21
-51
lines changed

4 files changed

+21
-51
lines changed

src/qt/clientmodel.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,6 @@ QString ClientModel::formatFullVersion() const
253253
return QString::fromStdString(FormatFullVersion());
254254
}
255255

256-
QString ClientModel::formatBuildDate() const
257-
{
258-
return QString::fromStdString(CLIENT_DATE);
259-
}
260-
261256
bool ClientModel::isReleaseVersion() const
262257
{
263258
return CLIENT_VERSION_IS_RELEASE;

src/qt/clientmodel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class ClientModel : public QObject
8282
QString getStatusBarWarnings() const;
8383

8484
QString formatFullVersion() const;
85-
QString formatBuildDate() const;
8685
bool isReleaseVersion() const;
8786
QString clientName() const;
8887
QString formatClientStartupTime() const;

src/qt/forms/rpcconsole.ui

Lines changed: 21 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<item>
1818
<widget class="QTabWidget" name="tabWidget">
1919
<property name="currentIndex">
20-
<number>4</number>
20+
<number>0</number>
2121
</property>
2222
<widget class="QWidget" name="tab_info">
2323
<attribute name="title">
@@ -113,36 +113,13 @@
113113
</widget>
114114
</item>
115115
<item row="4" column="0">
116-
<widget class="QLabel" name="buildDateLabel">
117-
<property name="text">
118-
<string>Build date</string>
119-
</property>
120-
</widget>
121-
</item>
122-
<item row="4" column="1">
123-
<widget class="QLabel" name="buildDate">
124-
<property name="cursor">
125-
<cursorShape>IBeamCursor</cursorShape>
126-
</property>
127-
<property name="text">
128-
<string>N/A</string>
129-
</property>
130-
<property name="textFormat">
131-
<enum>Qt::PlainText</enum>
132-
</property>
133-
<property name="textInteractionFlags">
134-
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
135-
</property>
136-
</widget>
137-
</item>
138-
<item row="5" column="0">
139116
<widget class="QLabel" name="startupTimeLabel">
140117
<property name="text">
141118
<string>Startup time</string>
142119
</property>
143120
</widget>
144121
</item>
145-
<item row="5" column="1">
122+
<item row="4" column="1">
146123
<widget class="QLabel" name="startupTime">
147124
<property name="cursor">
148125
<cursorShape>IBeamCursor</cursorShape>
@@ -158,21 +135,21 @@
158135
</property>
159136
</widget>
160137
</item>
161-
<item row="6" column="0">
138+
<item row="5" column="0">
162139
<widget class="QLabel" name="dataDirLabel">
163140
<property name="text">
164141
<string>Data Directory</string>
165142
</property>
166143
</widget>
167144
</item>
168-
<item row="6" column="1">
145+
<item row="5" column="1">
169146
<widget class="QLabel" name="dataDir">
170147
<property name="text">
171148
<string>N/A</string>
172149
</property>
173150
</widget>
174151
</item>
175-
<item row="7" column="0">
152+
<item row="6" column="0">
176153
<widget class="QLabel" name="networkHeader">
177154
<property name="font">
178155
<font>
@@ -185,14 +162,14 @@
185162
</property>
186163
</widget>
187164
</item>
188-
<item row="8" column="0">
165+
<item row="7" column="0">
189166
<widget class="QLabel" name="networkNameLabel">
190167
<property name="text">
191168
<string>Name</string>
192169
</property>
193170
</widget>
194171
</item>
195-
<item row="8" column="1">
172+
<item row="7" column="1">
196173
<widget class="QLabel" name="networkName">
197174
<property name="cursor">
198175
<cursorShape>IBeamCursor</cursorShape>
@@ -208,14 +185,14 @@
208185
</property>
209186
</widget>
210187
</item>
211-
<item row="9" column="0">
188+
<item row="8" column="0">
212189
<widget class="QLabel" name="numberOfConnectionsLabel">
213190
<property name="text">
214191
<string>Number of connections</string>
215192
</property>
216193
</widget>
217194
</item>
218-
<item row="9" column="1">
195+
<item row="8" column="1">
219196
<widget class="QLabel" name="numberOfConnections">
220197
<property name="cursor">
221198
<cursorShape>IBeamCursor</cursorShape>
@@ -231,14 +208,14 @@
231208
</property>
232209
</widget>
233210
</item>
234-
<item row="10" column="0">
211+
<item row="9" column="0">
235212
<widget class="QLabel" name="masternodeCountLabel">
236213
<property name="text">
237214
<string>Number of Masternodes</string>
238215
</property>
239216
</widget>
240217
</item>
241-
<item row="10" column="1">
218+
<item row="9" column="1">
242219
<widget class="QLabel" name="masternodeCount">
243220
<property name="cursor">
244221
<cursorShape>IBeamCursor</cursorShape>
@@ -254,7 +231,7 @@
254231
</property>
255232
</widget>
256233
</item>
257-
<item row="11" column="0">
234+
<item row="10" column="0">
258235
<widget class="QLabel" name="blockchainHeader">
259236
<property name="font">
260237
<font>
@@ -267,14 +244,14 @@
267244
</property>
268245
</widget>
269246
</item>
270-
<item row="12" column="0">
247+
<item row="11" column="0">
271248
<widget class="QLabel" name="numberOfBlocksLabel">
272249
<property name="text">
273250
<string>Current number of blocks</string>
274251
</property>
275252
</widget>
276253
</item>
277-
<item row="12" column="1">
254+
<item row="11" column="1">
278255
<widget class="QLabel" name="numberOfBlocks">
279256
<property name="cursor">
280257
<cursorShape>IBeamCursor</cursorShape>
@@ -290,14 +267,14 @@
290267
</property>
291268
</widget>
292269
</item>
293-
<item row="13" column="0">
270+
<item row="12" column="0">
294271
<widget class="QLabel" name="lastBlockTimeLabel">
295272
<property name="text">
296273
<string>Last block time</string>
297274
</property>
298275
</widget>
299276
</item>
300-
<item row="13" column="1">
277+
<item row="12" column="1">
301278
<widget class="QLabel" name="lastBlockTime">
302279
<property name="cursor">
303280
<cursorShape>IBeamCursor</cursorShape>
@@ -313,21 +290,21 @@
313290
</property>
314291
</widget>
315292
</item>
316-
<item row="14" column="0">
293+
<item row="13" column="0">
317294
<widget class="QLabel" name="lastBlockHashLabel">
318295
<property name="text">
319296
<string>Last block hash</string>
320297
</property>
321298
</widget>
322299
</item>
323-
<item row="14" column="1">
300+
<item row="13" column="1">
324301
<widget class="QLabel" name="lastBlockHash">
325302
<property name="text">
326303
<string>N/A</string>
327304
</property>
328305
</widget>
329306
</item>
330-
<item row="15" column="0">
307+
<item row="14" column="0">
331308
<spacer name="verticalSpacer_2">
332309
<property name="orientation">
333310
<enum>Qt::Vertical</enum>
@@ -340,7 +317,7 @@
340317
</property>
341318
</spacer>
342319
</item>
343-
<item row="16" column="0">
320+
<item row="15" column="0">
344321
<widget class="QLabel" name="debugLogFileHeader">
345322
<property name="font">
346323
<font>
@@ -353,7 +330,7 @@
353330
</property>
354331
</widget>
355332
</item>
356-
<item row="17" column="0">
333+
<item row="16" column="0">
357334
<widget class="QPushButton" name="openDebugLogfileButton">
358335
<property name="toolTip">
359336
<string>Open the PIVX debug log file from the current data directory. This can take a few seconds for large log files.</string>

src/qt/rpcconsole.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ void RPCConsole::setClientModel(ClientModel* model)
259259
// Provide initial values
260260
ui->clientVersion->setText(model->formatFullVersion());
261261
ui->clientName->setText(model->clientName());
262-
ui->buildDate->setText(model->formatBuildDate());
263262
ui->dataDir->setText(model->dataDir());
264263
ui->startupTime->setText(model->formatClientStartupTime());
265264
ui->networkName->setText(QString::fromStdString(Params().NetworkIDString()));

0 commit comments

Comments
 (0)