71 |
71 |
72 def __updatePageLayoutLabel(self): |
72 def __updatePageLayoutLabel(self): |
73 """ |
73 """ |
74 Private method to update the page layout label. |
74 Private method to update the page layout label. |
75 """ |
75 """ |
76 if ( |
76 orientation = ( |
77 self.__currentPageLayout.orientation() == |
77 self.tr("Portrait") |
78 QPageLayout.Orientation.Portrait |
78 if (self.__currentPageLayout.orientation() == |
79 ): |
79 QPageLayout.Orientation.Portrait) else |
80 orientation = self.tr("Portrait") |
80 self.tr("Landscape") |
81 else: |
81 ) |
82 orientation = self.tr("Landscape") |
|
83 self.pageLayoutLabel.setText( |
82 self.pageLayoutLabel.setText( |
84 self.tr("{0}, {1}", "page size, page orientation").format( |
83 self.tr("{0}, {1}", "page size, page orientation").format( |
85 self.__currentPageLayout.pageSize().name(), |
84 self.__currentPageLayout.pageSize().name(), |
86 orientation)) |
85 orientation)) |
87 |
86 |