Browse Source

repaired the date column stretch

Pat Beirne 8 years ago
parent
commit
a3e0c131d8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dirnotes

+ 2 - 1
dirnotes

@@ -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()))