Mercurial > hg > Feedworm
diff FeedEntryItemDelegate.py @ 218:699d8f1cebd4
unify imports, especially Qt imports. Use consistent super syntax
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 27 Apr 2014 06:04:57 +0200 |
parents | bb3c851b18b1 |
children | 94a902de5266 |
line wrap: on
line diff
--- a/FeedEntryItemDelegate.py Sun Apr 27 05:33:34 2014 +0200 +++ b/FeedEntryItemDelegate.py Sun Apr 27 06:04:57 2014 +0200 @@ -1,10 +1,9 @@ # -*- coding: utf-8 -*- -from PyQt4 import QtGui -from PyQt4.QtGui import QFont +from PyQt4.QtGui import QFont, QStyledItemDelegate -class FeedEntryItemDelegate(QtGui.QStyledItemDelegate): +class FeedEntryItemDelegate(QStyledItemDelegate): def __init__(self): - QtGui.QStyledItemDelegate.__init__(self, None) + super(FeedEntryItemDelegate, self).__init__(None) def paint(self, painter, style, index): feedEntryTableModel = index.model() @@ -16,4 +15,4 @@ style.font.setWeight(QFont.Normal) else: style.font.setWeight(QFont.Bold) - QtGui.QStyledItemDelegate.paint(self, painter, style, index) + super(FeedEntryItemDelegate, self).paint(painter, style, index)