Explorar o código

repaired the date column stretch

Pat Beirne %!s(int64=8) %!d(string=hai) anos
pai
achega
a3e0c131d8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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()))