Revert "Cleaned up version of #424" - In favor of the new custom URLs
This reverts commit a4a8784ce8
.
This commit is contained in:
parent
1231942969
commit
51f2a42a55
|
@ -30,8 +30,6 @@
|
|||
#include <QScrollBar>
|
||||
#include <QTableView>
|
||||
#include <QVBoxLayout>
|
||||
#include <QDesktopServices>
|
||||
#include <QUrl>
|
||||
|
||||
TransactionView::TransactionView(QWidget *parent) :
|
||||
QWidget(parent), model(0), transactionProxyModel(0),
|
||||
|
@ -131,18 +129,14 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||
QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
|
||||
QAction *editLabelAction = new QAction(tr("Edit label"), this);
|
||||
QAction *showDetailsAction = new QAction(tr("Show transaction details"), this);
|
||||
QAction *viewOnDogechain = new QAction(tr("Show transaction on Dogechain"), this);
|
||||
|
||||
contextMenu = new QMenu();
|
||||
contextMenu->addAction(copyAddressAction);
|
||||
contextMenu->addAction(copyLabelAction);
|
||||
contextMenu->addAction(copyAmountAction);
|
||||
contextMenu->addAction(copyTxIDAction);
|
||||
contextMenu->addSeparator();
|
||||
contextMenu->addAction(editLabelAction);
|
||||
contextMenu->addAction(showDetailsAction);
|
||||
contextMenu->addSeparator();
|
||||
contextMenu->addAction(viewOnDogechain);
|
||||
|
||||
// Connect actions
|
||||
connect(dateWidget, SIGNAL(activated(int)), this, SLOT(chooseDate(int)));
|
||||
|
@ -159,7 +153,6 @@ TransactionView::TransactionView(QWidget *parent) :
|
|||
connect(copyTxIDAction, SIGNAL(triggered()), this, SLOT(copyTxID()));
|
||||
connect(editLabelAction, SIGNAL(triggered()), this, SLOT(editLabel()));
|
||||
connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
|
||||
connect(viewOnDogechain, SIGNAL(triggered()), this, SLOT(viewOnDogechain()));
|
||||
}
|
||||
|
||||
void TransactionView::setModel(WalletModel *model)
|
||||
|
@ -390,20 +383,6 @@ void TransactionView::showDetails()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void TransactionView::viewOnDogechain()
|
||||
{
|
||||
QModelIndexList selection = transactionView->selectionModel()->selectedRows();
|
||||
if(!selection.isEmpty())
|
||||
{
|
||||
QString format("http://dogechain.info/tx/");
|
||||
QString munged = selection.at(0).data(TransactionTableModel::TxIDRole).toString();
|
||||
format += munged.left(munged.lastIndexOf("-"));
|
||||
|
||||
QDesktopServices::openUrl(QUrl(format));
|
||||
}
|
||||
}
|
||||
|
||||
QWidget *TransactionView::createDateRangeWidget()
|
||||
{
|
||||
dateRangeWidget = new QFrame();
|
||||
|
|
|
@ -85,7 +85,6 @@ private slots:
|
|||
void copyLabel();
|
||||
void copyAmount();
|
||||
void copyTxID();
|
||||
void viewOnDogechain();
|
||||
|
||||
signals:
|
||||
void doubleClicked(const QModelIndex&);
|
||||
|
|
Loading…
Reference in a new issue