コード例 #1
0
ファイル: SceneSearch.py プロジェクト: pixpil/gii
    def __init__(self, *args, **kwargs):
        super(SceneSearchStatusBar, self).__init__(*args, **kwargs)
        layout = QtWidgets.QVBoxLayout(self)
        layout.setSpacing(1)
        layout.setContentsMargins(1, 1, 1, 1)

        self.textStatus = ElidedLabel(self)
        self.textStatus.setMinimumHeight(15)
        layout.addWidget(self.textStatus)
コード例 #2
0
    def __init__(self, *args, **kwargs):
        super(AssetBrowserStatusBar, self).__init__(*args, **kwargs)
        layout = QtWidgets.QVBoxLayout(self)
        layout.setSpacing(1)
        layout.setContentsMargins(1, 1, 1, 1)

        self.textStatus = ElidedLabel(self)
        self.textStatus.setMinimumHeight(15)
        self.tagsBar = AssetBrowserStatusBarTag(self)
        layout.addWidget(self.tagsBar)
        layout.addWidget(self.textStatus)
        self.tagsBar.buttonEdit.clicked.connect(self.onButtonEditTags)
コード例 #3
0
ファイル: AssetBrowserWidgets.py プロジェクト: pixpil/gii
	def __init__( self, *args, **kwargs ):
		super( AssetBrowserStatusBar, self ).__init__( *args, **kwargs )
		self.setObjectName( 'AssetBrowserStatusBar' )
		layout = QtGui.QVBoxLayout( self )
		layout.setSpacing( 1 )
		layout.setMargin( 0 )

		self.textStatus = ElidedLabel( self )
		self.tagsBar = AssetBrowserStatusBarTag( self )
		layout.addWidget( self.tagsBar )
		layout.addWidget( self.textStatus )
		self.tagsBar.buttonEdit.clicked.connect( self.onButtonEditTags )
コード例 #4
0
class AssetBrowserStatusBar(QtGui.QFrame):
    def __init__(self, *args, **kwargs):
        super(AssetBrowserStatusBar, self).__init__(*args, **kwargs)
        self.setObjectName('AssetBrowserStatusBar')
        layout = QtGui.QVBoxLayout(self)
        layout.setSpacing(1)
        layout.setMargin(1)

        self.textStatus = ElidedLabel(self)
        self.textStatus.setMinimumHeight(15)
        self.tagsBar = AssetBrowserStatusBarTag(self)
        layout.addWidget(self.tagsBar)
        layout.addWidget(self.textStatus)
        self.tagsBar.buttonEdit.clicked.connect(self.onButtonEditTags)

    def onButtonEditTags(self):
        self.owner.editAssetTags()

    def setText(self, text):
        self.textStatus.setText(text)

    def setTags(self, text):
        self.tagsBar.setText(text)
コード例 #5
0
ファイル: AssetBrowserWidgets.py プロジェクト: tommo/gii
class AssetBrowserStatusBar( QtGui.QFrame ):
	def __init__( self, *args, **kwargs ):
		super( AssetBrowserStatusBar, self ).__init__( *args, **kwargs )
		self.setObjectName( 'AssetBrowserStatusBar' )
		layout = QtGui.QVBoxLayout( self )
		layout.setSpacing( 1 )
		layout.setMargin( 1 )

		self.textStatus = ElidedLabel( self )
		self.textStatus.setMinimumHeight( 15 )
		self.tagsBar = AssetBrowserStatusBarTag( self )
		layout.addWidget( self.tagsBar )
		layout.addWidget( self.textStatus )
		self.tagsBar.buttonEdit.clicked.connect( self.onButtonEditTags )

	def onButtonEditTags( self ):
		self.owner.editAssetTags()

	def setText( self, text ):
		self.textStatus.setText( text )

	def setTags( self, text ):
		self.tagsBar.setText( text )