|
@@ -146,7 +146,7 @@ class DirNotes(QMainWindow):
|
|
|
lb = QTableWidget()
|
|
|
self.lb = lb
|
|
|
lb.setColumnCount(4)
|
|
|
- lb.horizontalHeader().setResizeMode( 1, QHeaderView.Stretch );
|
|
|
+ lb.horizontalHeader().setResizeMode( 3, QHeaderView.Stretch );
|
|
|
lb.verticalHeader().setDefaultSectionSize(20); # thinner rows
|
|
|
lb.verticalHeader().setVisible(False)
|
|
|
|
|
@@ -271,6 +271,7 @@ class DirNotes(QMainWindow):
|
|
|
sa.setTextAlignment(QtCore.Qt.AlignRight)
|
|
|
sa.setFlags(QtCore.Qt.ItemIsEnabled)
|
|
|
self.lb.setItem(i,2,sa)
|
|
|
+ self.lb.resizeColumnToContents(1)
|
|
|
|
|
|
def change(self,x):
|
|
|
print("debugging " + x.text() + " r:" + str(x.row()) + " c:" + str(x.column()))
|