mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-03 13:33:59 +01:00
Misc fixes
This commit is contained in:
@@ -85,6 +85,8 @@ void HistoryView::setSearchMode(bool mode) {
|
||||
|
||||
if (mode) {
|
||||
header()->showSection(TransactionHistoryModel::TxID);
|
||||
} else {
|
||||
header()->hideSection(TransactionHistoryModel::TxID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +101,8 @@ bool HistoryView::setViewState(const QByteArray& state)
|
||||
header()->setSortIndicator(-1, Qt::AscendingOrder);
|
||||
bool status = header()->restoreState(state);
|
||||
m_columnsNeedRelayout = state.isEmpty();
|
||||
|
||||
m_showTxidColumn = !header()->isSectionHidden(TransactionHistoryModel::TxID);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ private:
|
||||
TransactionHistoryProxyModel* m_model;
|
||||
bool m_inSearchMode = false;
|
||||
bool m_columnsNeedRelayout = true;
|
||||
bool m_showTxidColumn = false;
|
||||
|
||||
QMenu* m_headerMenu;
|
||||
QActionGroup* m_columnActions;
|
||||
|
||||
Reference in New Issue
Block a user