# Path: qframer/fmoveablewidget.py
# class FMoveableWidget(QFrame):
# 
#     def __init__(self, parent=None):
#         super(FMoveableWidget, self).__init__(parent)
# 
#     def moveCenter(self):
#         qr = self.frameGeometry()
#         cp = QDesktopWidget().availableGeometry().center()
#         qr.moveCenter(cp)
#         self.move(qr.topLeft())
# 
#     def mousePressEvent(self, event):
#         self.setFocus()
#         # 鼠标点击事件
#         if event.button() == Qt.LeftButton:
#             self.dragPosition = event.globalPos() - \
#                 self.frameGeometry().topLeft()
#             event.accept()
# 
#     def mouseReleaseEvent(self, event):
#         # 鼠标释放事件
#         if hasattr(self, "dragPosition"):
#             del self.dragPosition
# 
#     def mouseMoveEvent(self, event):
#         if hasattr(self, "dragPosition"):
#             if event.buttons() == Qt.LeftButton:
#                 self.move(event.globalPos() - self.dragPosition)
#                 event.accept()


from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from .fmoveablewidget import FMoveableWidget
#!/usr/bin/python
# -*- coding: utf-8 -*-



class FGlobalSearchWidget(FMoveableWidget):

    style = '''
        QFrame#FGlobalSearchWidget{
            border: 10px solid rgb(40, 47, 63);
            background-color: rgb(40, 47, 63);
        }
        QLineEdit#search{
            border: 2px solid rgb(69, 187, 217);

# Path: qframer/fmoveablewidget.py
# class FMoveableWidget(QFrame):
# 
#     def __init__(self, parent=None):
#         super(FMoveableWidget, self).__init__(parent)
# 
#     def moveCenter(self):
#         qr = self.frameGeometry()
#         cp = QDesktopWidget().availableGeometry().center()
#         qr.moveCenter(cp)
#         self.move(qr.topLeft())
# 
#     def mousePressEvent(self, event):
#         self.setFocus()
#         # 鼠标点击事件
#         if event.button() == Qt.LeftButton:
#             self.dragPosition = event.globalPos() - \
#                 self.frameGeometry().topLeft()
#             event.accept()
# 
#     def mouseReleaseEvent(self, event):
#         # 鼠标释放事件
#         if hasattr(self, "dragPosition"):
#             del self.dragPosition
# 
#     def mouseMoveEvent(self, event):
#         if hasattr(self, "dragPosition"):
#             if event.buttons() == Qt.LeftButton:
#                 self.move(event.globalPos() - self.dragPosition)
#                 event.accept()


# Path: qframer/fglobalsearch.py
from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
from .fmoveablewidget import FMoveableWidget

#!/usr/bin/python
# -*- coding: utf-8 -*-



class FGlobalSearchWidget(FMoveableWidget):

    style = '''
        QFrame#FGlobalSearchWidget{
            border: 10px solid rgb(40, 47, 63);
            background-color: rgb(40, 47, 63);
        }
        QLineEdit#search{
            border: 2px solid rgb(69, 187, 217);

            font: 30px;