Text columns aligned left (#555)

This commit is contained in:
Agnieszka Kostrzewa 2012-04-30 17:40:19 +02:00
parent e59d9b72f4
commit fab3190798

View File

@ -273,7 +273,7 @@ class VmTemplateItem (QTableWidgetItem):
else: else:
self.setText("---") self.setText("---")
self.setTextAlignment(Qt.AlignCenter) self.setTextAlignment(Qt.AlignVCenter)
class VmNetvmItem (QTableWidgetItem): class VmNetvmItem (QTableWidgetItem):
@ -287,7 +287,7 @@ class VmNetvmItem (QTableWidgetItem):
else: else:
self.setText("---") self.setText("---")
self.setTextAlignment(Qt.AlignCenter) self.setTextAlignment(Qt.AlignVCenter)
class VmUsageBarWidget (QWidget): class VmUsageBarWidget (QWidget):
@ -517,7 +517,7 @@ class VmSizeOnDiskItem (QTableWidgetItem):
self.vm = vm self.vm = vm
self.value = 0 self.value = 0
self.update() self.update()
self.setTextAlignment(Qt.AlignCenter) self.setTextAlignment(Qt.AlignVCenter)
def update(self): def update(self):
if self.vm.qid == 0: if self.vm.qid == 0: