<translation>90 дней</translation>
</message>
<message>
- <location filename="../mintingview.cpp" line="101"/>
+ <location filename="../mintingview.cpp" line="103"/>
<source>Copy transaction ID of input</source>
<translation>Скопировать ID транзакции входа</translation>
</message>
<message>
- <location filename="../mintingview.cpp" line="102"/>
+ <location filename="../mintingview.cpp" line="104"/>
<source>Copy address of input</source>
<translation>Скопировать адрес входа</translation>
</message>
<message>
+ <location filename="../mintingview.cpp" line="105"/>
+ <source>Show/hide 'Address' column</source>
+ <translation>Показать/скрыть столбец 'Адрес'</translation>
+ </message>
+ <message>
+ <location filename="../mintingview.cpp" line="106"/>
+ <source>Show/hide 'Transaction' column</source>
+ <translation>Показать/скрыть столбец 'Транзакция'</translation>
+ </message>
+ <message>
<location filename="../mintingview.cpp" line="167"/>
<source>Export Minting Data</source>
<translation>Экспортировать данные таблицы</translation>
// Actions
QAction *copyTxIDAction = new QAction(tr("Copy transaction ID of input"), this);
QAction *copyAddressAction = new QAction(tr("Copy address of input"), this);
+ QAction *showHideAddressAction = new QAction(tr("Show/hide 'Address' column"), this);
+ QAction *showHideTxIDAction = new QAction(tr("Show/hide 'Transaction' column"), this);
contextMenu = new QMenu();
contextMenu->addAction(copyAddressAction);
contextMenu->addAction(copyTxIDAction);
+ contextMenu->addAction(showHideAddressAction);
+ contextMenu->addAction(showHideTxIDAction);
connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(copyAddress()));
connect(copyTxIDAction, SIGNAL(triggered()), this, SLOT(copyTxID()));
+ connect(showHideAddressAction, SIGNAL(triggered()), this, SLOT(showHideAddress()));
+ connect(showHideTxIDAction, SIGNAL(triggered()), this, SLOT(showHideTxID()));
connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint)));
}
mintingView->verticalHeader()->hide();
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::Age, 120);
+ MintingTableModel::Age, 60);
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::Balance, 120);
+ MintingTableModel::Balance, 80);
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::CoinDay,120);
+ MintingTableModel::CoinDay,60);
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::MintProbability, 120);
+ MintingTableModel::MintProbability, 105);
#if QT_VERSION < 0x050000
mintingView->horizontalHeader()->setResizeMode(
MintingTableModel::MintReward, QHeaderView::Stretch);
MintingTableModel::MintReward, QHeaderView::Stretch);
#endif
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::Address, 0);
+ MintingTableModel::Address, 245);
mintingView->horizontalHeader()->resizeSection(
- MintingTableModel::TxHash, 0);
- /*
- mintingView->horizontalHeader()->setSectionHidden(
- MintingTableModel::Address, true);
- mintingView->horizontalHeader()->setSectionHidden(
- MintingTableModel::TxHash, true);
- */
+ MintingTableModel::TxHash, 75);
}
}
GUIUtil::copyEntryData(mintingView, MintingTableModel::Address, 0 );
}
+void MintingView::showHideAddress()
+{
+ mintingView->horizontalHeader()->setSectionHidden(MintingTableModel::Address,
+ !(mintingView->horizontalHeader()->isSectionHidden(MintingTableModel::Address)));
+}
+
+void MintingView::showHideTxID()
+{
+ mintingView->horizontalHeader()->setSectionHidden(MintingTableModel::TxHash,
+ !(mintingView->horizontalHeader()->isSectionHidden(MintingTableModel::TxHash)));
+}
+
void MintingView::contextualMenu(const QPoint &point)
{
QModelIndex index = mintingView->indexAt(point);