Skip to content

Commit

Permalink
make MasternodeList qt4 compatible, fixes bitcoin#859
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 2, 2016
1 parent 914802b commit 9c61b11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/qt/forms/masternodelist.ui
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="ResizeMode">
<enum>QHeaderView::Interactive</enum>
</attribute>
<column>
<property name="text">
<string>Alias</string>
Expand Down Expand Up @@ -224,6 +227,9 @@
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="ResizeMode">
<enum>QHeaderView::Interactive</enum>
</attribute>
<column>
<property name="text">
<string>Address</string>
Expand Down
2 changes: 0 additions & 2 deletions src/qt/masternodelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@ MasternodeList::MasternodeList(const PlatformStyle *platformStyle, QWidget *pare
int columnActiveWidth = 130;
int columnLastSeenWidth = 130;

ui->tableWidgetMyMasternodes->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
ui->tableWidgetMyMasternodes->setColumnWidth(0, columnAliasWidth);
ui->tableWidgetMyMasternodes->setColumnWidth(1, columnAddressWidth);
ui->tableWidgetMyMasternodes->setColumnWidth(2, columnProtocolWidth);
ui->tableWidgetMyMasternodes->setColumnWidth(3, columnStatusWidth);
ui->tableWidgetMyMasternodes->setColumnWidth(4, columnActiveWidth);
ui->tableWidgetMyMasternodes->setColumnWidth(5, columnLastSeenWidth);

ui->tableWidgetMasternodes->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
ui->tableWidgetMasternodes->setColumnWidth(0, columnAddressWidth);
ui->tableWidgetMasternodes->setColumnWidth(1, columnProtocolWidth);
ui->tableWidgetMasternodes->setColumnWidth(2, columnStatusWidth);
Expand Down

0 comments on commit 9c61b11

Please sign in to comment.