IndicatorLineEdit: Simplify placeholder selection
This commit is contained in:
parent
8a1dd6c948
commit
3bacce78a2
|
@ -126,7 +126,7 @@ class IndicatorLineEdit(QWidget):
|
|||
# Add line_edit
|
||||
self.line_edit = QLineEdit(self)
|
||||
self.line_edit.setObjectName(f"{type(self).__name__}Edit")
|
||||
self.line_edit.setPlaceholderText(placeholder)
|
||||
self.line_edit.setPlaceholderText(placeholder if placeholder else self.tr("Default"))
|
||||
self.line_edit.setSizePolicy(horiz_policy, QSizePolicy.Fixed)
|
||||
# Add hint_label to line_edit
|
||||
self.line_edit.setLayout(QHBoxLayout())
|
||||
|
@ -147,10 +147,6 @@ class IndicatorLineEdit(QWidget):
|
|||
self.indicator_label.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
|
||||
layout.addWidget(self.indicator_label)
|
||||
|
||||
if not placeholder:
|
||||
_translate = QCoreApplication.instance().translate
|
||||
self.line_edit.setPlaceholderText(_translate(self.__class__.__name__, "Default"))
|
||||
|
||||
self.__reasons = IndicatorReasonsStrings(self)
|
||||
|
||||
self.__threadpool = QThreadPool(self)
|
||||
|
|
Loading…
Reference in a new issue