Skip to content

Commit 9c61b11

Browse files
committed
make MasternodeList qt4 compatible, fixes bitcoin#859
1 parent 914802b commit 9c61b11

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/qt/forms/masternodelist.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@
9999
<attribute name="horizontalHeaderStretchLastSection">
100100
<bool>true</bool>
101101
</attribute>
102+
<attribute name="ResizeMode">
103+
<enum>QHeaderView::Interactive</enum>
104+
</attribute>
102105
<column>
103106
<property name="text">
104107
<string>Alias</string>
@@ -224,6 +227,9 @@
224227
<attribute name="horizontalHeaderStretchLastSection">
225228
<bool>true</bool>
226229
</attribute>
230+
<attribute name="ResizeMode">
231+
<enum>QHeaderView::Interactive</enum>
232+
</attribute>
227233
<column>
228234
<property name="text">
229235
<string>Address</string>

src/qt/masternodelist.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ MasternodeList::MasternodeList(const PlatformStyle *platformStyle, QWidget *pare
3434
int columnActiveWidth = 130;
3535
int columnLastSeenWidth = 130;
3636

37-
ui->tableWidgetMyMasternodes->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
3837
ui->tableWidgetMyMasternodes->setColumnWidth(0, columnAliasWidth);
3938
ui->tableWidgetMyMasternodes->setColumnWidth(1, columnAddressWidth);
4039
ui->tableWidgetMyMasternodes->setColumnWidth(2, columnProtocolWidth);
4140
ui->tableWidgetMyMasternodes->setColumnWidth(3, columnStatusWidth);
4241
ui->tableWidgetMyMasternodes->setColumnWidth(4, columnActiveWidth);
4342
ui->tableWidgetMyMasternodes->setColumnWidth(5, columnLastSeenWidth);
4443

45-
ui->tableWidgetMasternodes->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
4644
ui->tableWidgetMasternodes->setColumnWidth(0, columnAddressWidth);
4745
ui->tableWidgetMasternodes->setColumnWidth(1, columnProtocolWidth);
4846
ui->tableWidgetMasternodes->setColumnWidth(2, columnStatusWidth);

0 commit comments

Comments
 (0)