Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionview.cpp
Show First 20 Lines • Show All 273 Lines • ▼ Show 20 Lines | if (_model) { | ||||
AMOUNT_MINIMUM_COLUMN_WIDTH); | AMOUNT_MINIMUM_COLUMN_WIDTH); | ||||
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer( | columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer( | ||||
transactionView, AMOUNT_MINIMUM_COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH, | transactionView, AMOUNT_MINIMUM_COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH, | ||||
this); | this); | ||||
if (_model->getOptionsModel()) { | if (_model->getOptionsModel()) { | ||||
// Add third party transaction URLs to context menu | // Add third party transaction URLs to context menu | ||||
QStringList listUrls = | QStringList listUrls = GUIUtil::splitSkipEmptyParts( | ||||
_model->getOptionsModel()->getThirdPartyTxUrls().split( | _model->getOptionsModel()->getThirdPartyTxUrls(), "|"); | ||||
"|", QString::SkipEmptyParts); | |||||
for (int i = 0; i < listUrls.size(); ++i) { | for (int i = 0; i < listUrls.size(); ++i) { | ||||
QString host = | QString host = | ||||
QUrl(listUrls[i].trimmed(), QUrl::StrictMode).host(); | QUrl(listUrls[i].trimmed(), QUrl::StrictMode).host(); | ||||
if (!host.isEmpty()) { | if (!host.isEmpty()) { | ||||
// use host as menu item label | // use host as menu item label | ||||
QAction *thirdPartyTxUrlAction = new QAction(host, this); | QAction *thirdPartyTxUrlAction = new QAction(host, this); | ||||
if (i == 0) { | if (i == 0) { | ||||
contextMenu->addSeparator(); | contextMenu->addSeparator(); | ||||
▲ Show 20 Lines • Show All 435 Lines • Show Last 20 Lines |