from Qt import QtCore
from Qt import QtGui

from Qt.QtWidgets import *

from PyFlow.UI.Utils.stylesheet import editableStyleSheet
from PyFlow.Core.Common import *


class WatchItem(QGraphicsTextItem):
    """docstring for WatchItem."""
    def __init__(self, text=""):
        super(WatchItem, self).__init__(text)

    def paint(self, painter, option, widget):
        painter.drawRect(self.boundingRect())
        painter.fillRect(self.boundingRect(), editableStyleSheet().BgColor)
        super(WatchItem, self).paint(painter, option, widget)
