Skip to content
Snippets Groups Projects
Commit e268ea6f authored by inso's avatar inso
Browse files

Default font as italic when sending money

parent 6a5938f7
No related branches found
No related tags found
No related merge requests found
......@@ -52,5 +52,13 @@ class SentListModel(QAbstractListModel):
value = "{0} to {1}".format(amount, outputs[0].pubkey)
return value
if role == Qt.FontRole:
font = QFont()
if row < len(self.account.transactions_sent(self.community)):
font.setItalic(False)
else:
font.setItalic(True)
return font
def flags(self, index):
return Qt.ItemIsSelectable | Qt.ItemIsEnabled
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment