提交 057ea4f1 编写于 作者: 之一Yo's avatar 之一Yo

添加分隔符插件

上级 f1e4234c
......@@ -8,7 +8,7 @@ from qfluentwidgets import (PrimaryPushButton, SplitPushButton, DropDownPushButt
PrimarySplitPushButton, PrimaryDropDownPushButton, PrimaryDropDownToolButton,
TransparentToolButton, TransparentPushButton, ToggleToolButton, TransparentToggleToolButton,
TransparentTogglePushButton, TransparentDropDownPushButton, TransparentDropDownToolButton,
PillPushButton, PillToolButton)
PillPushButton, PillToolButton, HorizontalSeparator, VerticalSeparator)
from plugin_base import PluginBase
from task_menu_factory import EditTextTaskMenuFactory
......@@ -459,3 +459,29 @@ class PixmapLabelPlugin(BasicInputPlugin, QPyDesignerCustomWidgetPlugin):
def name(self):
return "PixmapLabel"
class HorizontalSeparatorPlugin(BasicInputPlugin, QPyDesignerCustomWidgetPlugin):
""" Horizontal separator plugin """
def createWidget(self, parent):
return HorizontalSeparator(parent)
def icon(self):
return super().icon('Line')
def name(self):
return "HorizontalSeparator"
class VerticalSeparatorPlugin(BasicInputPlugin, QPyDesignerCustomWidgetPlugin):
""" Vertical separator plugin """
def createWidget(self, parent):
return VerticalSeparator(parent)
def icon(self):
return super().icon('VerticalLine')
def name(self):
return "VerticalSeparator"
此差异已折叠。
......@@ -515,5 +515,7 @@
<file>images/controls/VariableSizedWrapGrid.png</file>
<file>images/controls/Viewbox.png</file>
<file>images/controls/TitleBar.png</file>
<file>images/controls/Line.png</file>
<file>images/controls/VerticalLine.png</file>
</qresource>
</RCC>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册