mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-29 18:38:02 +03:00
Remove delegate code
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -45,7 +45,6 @@ __all__ = [
|
||||
'AppQMenuBar',
|
||||
'AppQMessageBox',
|
||||
'AppQPushButton',
|
||||
'AppQStyledItemDelegate',
|
||||
'AppQTableWidget',
|
||||
'AppQTabWidget',
|
||||
'AppQToolBar',
|
||||
@@ -446,17 +445,6 @@ class AppQPushButton(QTranslatable, QPushButton):
|
||||
self.setText(_(self.text()))
|
||||
|
||||
|
||||
class AppQStyledItemDelegate(QStyledItemDelegate):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def createEditor(self, parent, option, index):
|
||||
editor = QLineEdit(parent)
|
||||
editor.setFont(QFont(APP().customFontName))
|
||||
|
||||
return editor
|
||||
|
||||
|
||||
class AppQTableWidget(SupportConnectedCallback, QTableWidget):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
@@ -642,10 +642,6 @@ class UserServersQTableWidget(QTranslatable, AppQTableWidget):
|
||||
# Text Editor Window
|
||||
self.textEditorWindow = TextEditorWindow()
|
||||
|
||||
# Delegate
|
||||
self._delegate = AppQStyledItemDelegate(parent=self)
|
||||
self.setItemDelegate(self._delegate)
|
||||
|
||||
# Must set before flush all
|
||||
self.setColumnCount(len(self.Headers))
|
||||
|
||||
|
||||
@@ -84,10 +84,6 @@ class UserSubsQTableWidget(QTranslatable, AppQTableWidget):
|
||||
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
# Delegate
|
||||
self._delegate = AppQStyledItemDelegate(parent=self)
|
||||
self.setItemDelegate(self._delegate)
|
||||
|
||||
# Must set before flush all
|
||||
self.setColumnCount(len(self.Headers))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user