change icons on txtablemodel.cpp
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<file>res/loading.gif</file>
|
||||
<file>res/paymentreq.gif</file>
|
||||
<file>res/icon.ico</file>
|
||||
<file>res/mail.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/img">
|
||||
<file>res/hushdlogo.gif</file>
|
||||
|
||||
BIN
res/mail.png
BIN
res/mail.png
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 31 KiB |
@@ -200,13 +200,22 @@ QVariant TxTableModel::data(const QModelIndex &index, int role) const {
|
||||
return QVariant(icon.pixmap(16, 16));
|
||||
} else if (hasMemo) {
|
||||
// Return the info pixmap to indicate memo
|
||||
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation);
|
||||
QIcon icon(":/icons/res/mail.png");
|
||||
return QVariant(icon.pixmap(16, 16));
|
||||
} else {
|
||||
|
||||
if (dat.type == "Receive"){
|
||||
// Empty pixmap to make it align
|
||||
QPixmap p(16, 16);
|
||||
p.fill(Qt::white);
|
||||
return QVariant(p);
|
||||
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_ArrowLeft);
|
||||
return QVariant(icon.pixmap(16, 16));
|
||||
}
|
||||
if (dat.type == "send"){
|
||||
// Empty pixmap to make it align
|
||||
QPixmap p(16, 16);
|
||||
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_ArrowForward);
|
||||
return QVariant(icon.pixmap(16, 16));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user