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

fixes #84

上级 ddc6c5c6
......@@ -16,9 +16,6 @@ from ..common.trie import Trie
class LineEdit(SearchLineEdit):
""" Search line edit """
searchSignal = pyqtSignal(str)
clearSignal = pyqtSignal()
def __init__(self, parent=None):
super().__init__(parent)
self.setPlaceholderText(self.tr('Search icons'))
......
......@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details.
"""
__version__ = "0.6.1"
__version__ = "0.6.2"
from .components import *
from .common import *
......
......@@ -127,9 +127,9 @@ class SearchLineEdit(LineEdit):
self.searchButton.clicked.connect(self.search)
self.clearButton.clicked.connect(self.clearSignal)
def search(self, text: str):
def search(self):
""" emit search signal """
text = text.strip()
text = self.text().strip()
if text:
self.searchSignal.emit(text)
else:
......
......@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup(
name="PyQt-Fluent-Widgets",
version="0.6.1",
version="0.6.2",
keywords="pyqt fluent widgets",
author="zhiyiYo",
author_email="shokokawaii@outlook.com",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册