Ejemplo n.º 1
0
    def __init__(self, qnotero):
        """
		Constructor
		
		qnotero -- a Qnotero instance
		"""

        Default.__init__(self, qnotero)
        self.qnotero.ui.lineEditQuery.setFrame(True)
Ejemplo n.º 2
0
	def __init__(self, qnotero):
	
		"""
		Constructor
		
		qnotero -- a Qnotero instance
		"""
	
		Default.__init__(self, qnotero)
		self.qnotero.ui.lineEditQuery.setFrame(True)		
Ejemplo n.º 3
0
    def icon(self, iconName):
        """
		Retrieves an icon from the theme
		
		Arguments:
		iconName -- the name of the icon
		
		Returns:
		A QIcon		
		"""

        if iconName in self.mapping:
            icon = self.mapping[iconName]
        else:
            icon = "edit-undo"
        if not QIcon.hasThemeIcon(icon):
            print "libqnotero._themes.icon(): failed to find '%s'" % icon
        return QIcon.fromTheme("icon", Default.icon(self, iconName))
Ejemplo n.º 4
0
	def icon(self, iconName):
	
		"""
		Retrieves an icon from the theme
		
		Arguments:
		iconName -- the name of the icon
		
		Returns:
		A QIcon		
		"""
	
		if iconName in self.mapping:
			icon = self.mapping[iconName]
		else:
			icon = "edit-undo"			
		if not QIcon.hasThemeIcon(icon):
			print "libqnotero._themes.icon(): failed to find '%s'" % icon
		return QIcon.fromTheme("icon", Default.icon(self, iconName))
Ejemplo n.º 5
0
	def __init__(self, qnotero):
	
		Default.__init__(self, qnotero)	
Ejemplo n.º 6
0
	def __init__(self, qnotero):
	
		Default.__init__(self, qnotero)