Merge branch 'master' into virt-mode-select-fixes
This commit is contained in:
commit
f1964f0c5b
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
from PyQt4 import QtGui # pylint: disable=import-error
|
from PyQt4 import QtGui # pylint: disable=import-error
|
||||||
from PyQt4 import QtCore # pylint: disable=import-error
|
from PyQt4 import QtCore # pylint: disable=import-error
|
||||||
|
import datetime
|
||||||
# pylint: disable=too-few-public-methods
|
# pylint: disable=too-few-public-methods
|
||||||
|
|
||||||
power_order = QtCore.Qt.DescendingOrder
|
power_order = QtCore.Qt.DescendingOrder
|
||||||
@ -505,7 +506,8 @@ class VmLastBackupItem(QtGui.QTableWidgetItem):
|
|||||||
|
|
||||||
self.vm = vm
|
self.vm = vm
|
||||||
if getattr(self.vm, 'backup_timestamp', None):
|
if getattr(self.vm, 'backup_timestamp', None):
|
||||||
self.setText(self.vm.backup_timestamp)
|
self.setText(
|
||||||
|
str(datetime.datetime.fromtimestamp(self.vm.backup_timestamp)))
|
||||||
else:
|
else:
|
||||||
self.setText("")
|
self.setText("")
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ def prepare_label_choice(widget, holder, propname, default, *args, **kwargs):
|
|||||||
app = holder
|
app = holder
|
||||||
|
|
||||||
return prepare_choice(widget, holder, propname,
|
return prepare_choice(widget, holder, propname,
|
||||||
sorted(app.labels, key=lambda l: l.index),
|
sorted(app.labels.values(), key=lambda l: l.index),
|
||||||
default, *args,
|
default, *args,
|
||||||
icon_getter=(lambda label: QIcon.fromTheme(label.icon)),
|
icon_getter=(lambda label: QIcon.fromTheme(label.icon)),
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
@ -211,7 +211,7 @@
|
|||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Size</string>
|
<string>Disk size</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
|
Loading…
Reference in New Issue
Block a user