change icons on txtablemodel.cpp
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
<file>res/loading.gif</file>
|
<file>res/loading.gif</file>
|
||||||
<file>res/paymentreq.gif</file>
|
<file>res/paymentreq.gif</file>
|
||||||
<file>res/icon.ico</file>
|
<file>res/icon.ico</file>
|
||||||
|
<file>res/mail.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/img">
|
<qresource prefix="/img">
|
||||||
<file>res/hushdlogo.gif</file>
|
<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));
|
return QVariant(icon.pixmap(16, 16));
|
||||||
} else if (hasMemo) {
|
} else if (hasMemo) {
|
||||||
// Return the info pixmap to indicate memo
|
// 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));
|
return QVariant(icon.pixmap(16, 16));
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (dat.type == "Receive"){
|
||||||
// Empty pixmap to make it align
|
// Empty pixmap to make it align
|
||||||
QPixmap p(16, 16);
|
QPixmap p(16, 16);
|
||||||
p.fill(Qt::white);
|
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_ArrowLeft);
|
||||||
return QVariant(p);
|
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