~diegosarmentero/ubuntuone-control-panel/prettify

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/filesyncstatus.py

  • Committer: Diego Sarmentero
  • Date: 2011-09-07 12:39:20 UTC
  • mfrom: (211.1.3 ubuntuone-control-panel)
  • Revision ID: diego.sarmentero@canonical.com-20110907123920-i5jq5lqt4r7eud8h
merge.
Group together QGroupBox style

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from PyQt4 import QtGui, QtCore
22
22
from twisted.internet import defer
23
23
 
24
 
from ubuntuone.controlpanel import backend
 
24
from ubuntuone.controlpanel import backend, cache
25
25
from ubuntuone.controlpanel.logger import setup_logging, log_call
26
26
from ubuntuone.controlpanel.gui import (
27
27
    ERROR_COLOR,
108
108
    return icon_name
109
109
 
110
110
 
111
 
class FileSyncStatus(QtGui.QWidget):
 
111
class FileSyncStatus(cache.Cache, QtGui.QWidget):
112
112
    """The FileSyncStatus widget"""
113
113
 
114
 
    def __init__(self, parent=None):
 
114
    def __init__(self, *args, **kwargs):
115
115
        """Initialize the UI of the widget."""
116
 
        QtGui.QWidget.__init__(self, parent)
 
116
        super(FileSyncStatus, self).__init__(*args, **kwargs)
117
117
        self.ui = filesyncstatus_ui.Ui_Form()
118
118
        self.ui.setupUi(self)
119
119
 
120
120
        self._backend_method = None
121
 
        self.backend = backend.ControlBackend()
122
 
 
123
 
        logger.debug('%s: started.', self.__class__.__name__)
124
121
 
125
122
    # Invalid name "showEvent"
126
123
    # pylint: disable=C0103