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
Branches
Tags 0.7.4
No related merge requests found
...@@ -52,5 +52,13 @@ class SentListModel(QAbstractListModel): ...@@ -52,5 +52,13 @@ class SentListModel(QAbstractListModel):
value = "{0} to {1}".format(amount, outputs[0].pubkey) value = "{0} to {1}".format(amount, outputs[0].pubkey)
return value 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): def flags(self, index):
return Qt.ItemIsSelectable | Qt.ItemIsEnabled return Qt.ItemIsSelectable | Qt.ItemIsEnabled
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment