Returns the foreground color for this group item.
        
        :return     <QtGui.QColor>

def foreground(self):
        """
        Returns the foreground color for this group item.
        
        :return     <QtGui.QColor>
        """
        widget = self.widget()
        if widget:
            palette = widget.palette()
            return palette.color(palette.WindowText)
        else:
            return QtGui.QColor()