Skip to content

Commit

Permalink
sub
Browse files Browse the repository at this point in the history
  • Loading branch information
mceme committed Jun 23, 2019
1 parent 9967b7b commit 09747de
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/qt/forms/transactiondescdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</property>
<property name="maximumSize">
<size>
<width>100</width>
<width>120</width>
<height>16777215</height>
</size>
</property>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/sendcoinsentry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ SendCoinsRecipient SendCoinsEntry::getValue()
recipient.label = ui->addAsLabel->text();
recipient.imgbase64 = ui->Imgbase64Edit->text();
if(ui->Imgbase64Edit->text().size()>0 && !fileselected){ //message
recipient.imgbase64 ="message:"+ ui->Imgbase64Edit->text();
recipient.imgbase64 ="m:"+ ui->Imgbase64Edit->text();
}
recipient.amount = ui->payAmount->value();
recipient.message = ui->messageTextLabel->text();
Expand Down
28 changes: 11 additions & 17 deletions src/qt/transactiondescdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa



if(encodestr.size()>5)
if(encodestr.size()>2)
{
std::string ismessage = encodestr.substr(0, 8);

if(ismessage.c_str() != "message:"){
std::string ismessage = encodestr.substr(0, 2);

if(ismessage != "m:")
{

ui->DownloadButton->setVisible(true);

Expand Down Expand Up @@ -103,7 +105,7 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
else if(delctype==1){
ui->graphicsView->setVisible(true);
ui->graphicsView->setGeometry(QRect(0, 0, 400, 250));
ui->graphicsView->show();


QLabel *gif_anim = new QLabel();
gif_anim->setGeometry(0, 0, 400, 250);
Expand All @@ -117,7 +119,7 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
QGraphicsProxyWidget *proxy = scene->addWidget(gif_anim);
scene->addWidget(gif_anim);
ui->graphicsView->setScene( scene );

ui->graphicsView->show();
}
/* Start Document */
else if (delctype==2)
Expand All @@ -143,19 +145,11 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
}
else { //message

QGraphicsTextItem * io = new QGraphicsTextItem;
io->setPos(150,70);
io->setPlainText(encodestr.c_str());
QGraphicsScene* scene = new QGraphicsScene(QRect(0, 0, 400, 250));

scene->addItem(io);

ui->graphicsView->setScene( scene );
ui->graphicsView->setVisible(true);
ui->graphicsView->setGeometry(QRect(0, 0, 400, 250));
ui->graphicsView->show();

ui->DownloadButton->setVisible(false);
desc = desc + "<br><b><b>"+encodestr.c_str();
ui->detailText->setHtml(desc);
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
QAction *copyAddressAction = new QAction(tr("Copy address"), this);
QAction *copyLabelAction = new QAction(tr("Copy label"), this);
QAction *copyAmountAction = new QAction(tr("Copy amount"), this);
QAction *copyImgbase64Action = new QAction(tr("Copy imgbase64"), this);
QAction *copyImgbase64Action = new QAction(tr("Copy img"), this);
QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
QAction *copyTxHexAction = new QAction(tr("Copy raw transaction"), this);
QAction *copyTxPlainText = new QAction(tr("Copy full transaction details"), this);
Expand Down

0 comments on commit 09747de

Please sign in to comment.