remove depreacted functions
This commit is contained in:
parent
01adf276a8
commit
b9800ba655
35
lib/gui.py
35
lib/gui.py
@ -36,10 +36,6 @@ class ColorDelegate(QStyledItemDelegate):
|
||||
except ValueError:
|
||||
print("probably empty string asign zero")
|
||||
flag_starred = 0
|
||||
|
||||
#print("index:",index)
|
||||
#print("column ",column)
|
||||
#print("data:", flag_starred)
|
||||
if flag_starred == 1:
|
||||
option.backgroundBrush = QtGui.QColor("red")
|
||||
elif flag_viewed != 1:
|
||||
@ -47,37 +43,6 @@ class ColorDelegate(QStyledItemDelegate):
|
||||
else:
|
||||
option.backgroundBrush = QtGui.QColor("white")
|
||||
|
||||
|
||||
#if column == 0:
|
||||
# try:
|
||||
# value = float(data)
|
||||
# except:
|
||||
# pass
|
||||
# #print("error not an integer")
|
||||
# else:
|
||||
# #self.view.currentRow = index.row()
|
||||
# #print("row: ",self.currentRow)
|
||||
# if value == 1:
|
||||
# self.starred = 1
|
||||
# else:
|
||||
# self.starred = 0
|
||||
# if column == 8:
|
||||
# try:
|
||||
# value = float(data)
|
||||
# except:
|
||||
# pass
|
||||
# else:
|
||||
# if value == 1:
|
||||
# self.starred = 2
|
||||
# else:
|
||||
# self.starred = 0
|
||||
# if self.starred == 1:
|
||||
# option.backgroundBrush = QtGui.QColor("red")
|
||||
# elif self.starred == 2:
|
||||
# option.backgroundBrush = QtGui.QColor("white")
|
||||
# else:
|
||||
# option.backgroundBrush = QtGui.QColor("green")
|
||||
|
||||
class ValidationWorker(QObject):
|
||||
finished = Signal()
|
||||
def run(self):
|
||||
|
Loading…
Reference in New Issue
Block a user