QStandardItemModel ugh
This commit is contained in:
parent
f1be87c317
commit
1081d6b715
@ -137,7 +137,7 @@ class MusicTable(QTableView):
|
|||||||
|
|
||||||
if sum != qtableview_width:
|
if sum != qtableview_width:
|
||||||
# if not the last header
|
# if not the last header
|
||||||
if logicalIndex < col_count:
|
if logicalIndex < (col_count - 1):
|
||||||
next_header_size = self.horizontalHeader().sectionSize(logicalIndex + 1)
|
next_header_size = self.horizontalHeader().sectionSize(logicalIndex + 1)
|
||||||
# If it should shrink
|
# If it should shrink
|
||||||
if next_header_size > (sum_of_cols - qtableview_width):
|
if next_header_size > (sum_of_cols - qtableview_width):
|
||||||
@ -149,9 +149,6 @@ class MusicTable(QTableView):
|
|||||||
else:
|
else:
|
||||||
# block the resize
|
# block the resize
|
||||||
self.horizontalHeader().resizeSection(logicalIndex, oldSize)
|
self.horizontalHeader().resizeSection(logicalIndex, oldSize)
|
||||||
# else:
|
|
||||||
# if newSize > self.horizontalHeader().minimumSectionSize():
|
|
||||||
# self.horizontalHeader().resizeSection(logicalIndex, oldSize)
|
|
||||||
|
|
||||||
def contextMenuEvent(self, a0):
|
def contextMenuEvent(self, a0):
|
||||||
"""Right-click context menu for rows in Music Table"""
|
"""Right-click context menu for rows in Music Table"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user