Reduce to only two constant types
This commit is contained in:
@@ -32,7 +32,7 @@ from PyQt5.QtWidgets import QGridLayout, QLabel, QWidget
|
||||
|
||||
from novelwriter import CONFIG, SHARED
|
||||
from novelwriter.common import elide
|
||||
from novelwriter.constants import nwLabels, nwStats, trConst
|
||||
from novelwriter.constants import nwLabels, nwStats, trConst, trStats
|
||||
from novelwriter.enum import nwChange
|
||||
from novelwriter.types import (
|
||||
QtAlignLeft, QtAlignLeftBase, QtAlignRight, QtAlignRightBase,
|
||||
@@ -65,9 +65,9 @@ class GuiItemDetails(QWidget):
|
||||
fntValue = self.font()
|
||||
fntValue.setPointSizeF(0.9*fPt)
|
||||
|
||||
trStats1 = trConst(nwLabels.STATS_NAME[nwStats.CHARS], "Stats")
|
||||
trStats2 = trConst(nwLabels.STATS_NAME[nwStats.WORDS], "Stats")
|
||||
trStats3 = trConst(nwLabels.STATS_NAME[nwStats.PARAGRAPHS], "Stats")
|
||||
trStats1 = trStats(nwLabels.STATS_NAME[nwStats.CHARS])
|
||||
trStats2 = trStats(nwLabels.STATS_NAME[nwStats.WORDS])
|
||||
trStats3 = trStats(nwLabels.STATS_NAME[nwStats.PARAGRAPHS])
|
||||
|
||||
# Label
|
||||
self.labelName = QLabel(self.tr("Label"), self)
|
||||
|
||||
Reference in New Issue
Block a user