Skip to content
Snippets Groups Projects
Commit fcd6630a authored by Vincent Texier's avatar Vincent Texier
Browse files

fix members table header text truncated

parent 4b05e81e
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ class MembersFilterProxyModel(QSortFilterProxyModel): ...@@ -41,7 +41,7 @@ class MembersFilterProxyModel(QSortFilterProxyModel):
#logging.debug("{0} > {1}".format(current_time, expiration_data)) #logging.debug("{0} > {1}".format(current_time, expiration_data))
will_expire_soon = (current_time > expiration_data*1000 - warning_expiration_time*1000) will_expire_soon = (current_time > expiration_data*1000 - warning_expiration_time*1000)
if role == Qt.DisplayRole: if role == Qt.DisplayRole:
if source_index.column() == self.sourceModel().columns_ids.index('renew'): if source_index.column() == self.sourceModel().columns_ids.index('renewed'):
date = QDateTime.fromTime_t(source_data) date = QDateTime.fromTime_t(source_data)
return date.date() return date.date()
if source_index.column() == self.sourceModel().columns_ids.index('expiration'): if source_index.column() == self.sourceModel().columns_ids.index('expiration'):
...@@ -71,9 +71,9 @@ class MembersTableModel(QAbstractTableModel): ...@@ -71,9 +71,9 @@ class MembersTableModel(QAbstractTableModel):
self.columns_titles = { self.columns_titles = {
'uid': 'UID', 'uid': 'UID',
'pubkey': 'Pubkey', 'pubkey': 'Pubkey',
'renew': 'Last renew date', 'renewed': 'Renewed',
'expiration': 'Expiration'} 'expiration': 'Expiration'}
self.columns_ids = ('uid', 'pubkey', 'renew', 'expiration') self.columns_ids = ('uid', 'pubkey', 'renewed', 'expiration')
@property @property
def pubkeys(self): def pubkeys(self):
......
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