mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fix flake8 identation warnings
This commit is contained in:
parent
5cbe342d5b
commit
c973224fa4
@ -33,9 +33,9 @@ class DetailsModel(QAbstractTableModel):
|
|||||||
row = index.row()
|
row = index.row()
|
||||||
|
|
||||||
ignored_fields = ["Dupe Count"]
|
ignored_fields = ["Dupe Count"]
|
||||||
if self.model.row(row)[0] in ignored_fields or \
|
if (self.model.row(row)[0] in ignored_fields
|
||||||
self.model.row(row)[1] == "---" or \
|
or self.model.row(row)[1] == "---"
|
||||||
self.model.row(row)[2] == "---":
|
or self.model.row(row)[2] == "---"):
|
||||||
if role != Qt.DisplayRole:
|
if role != Qt.DisplayRole:
|
||||||
return None
|
return None
|
||||||
return self.model.row(row)[column]
|
return self.model.row(row)[column]
|
||||||
@ -45,10 +45,10 @@ class DetailsModel(QAbstractTableModel):
|
|||||||
if role == Qt.ForegroundRole and self.model.row(row)[1] != self.model.row(row)[2]:
|
if role == Qt.ForegroundRole and self.model.row(row)[1] != self.model.row(row)[2]:
|
||||||
return QBrush(QColor(250, 20, 20)) # red
|
return QBrush(QColor(250, 20, 20)) # red
|
||||||
if role == Qt.FontRole and self.model.row(row)[1] != self.model.row(row)[2]:
|
if role == Qt.FontRole and self.model.row(row)[1] != self.model.row(row)[2]:
|
||||||
font = QFont(self.model.view.font()) # or simply QFont()
|
font = QFont(self.model.view.font()) # or simply QFont()
|
||||||
font.setBold(True)
|
font.setBold(True)
|
||||||
return font
|
return font
|
||||||
return None # QVariant()
|
return None # QVariant()
|
||||||
|
|
||||||
def headerData(self, section, orientation, role):
|
def headerData(self, section, orientation, role):
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user