(self, window)
| 1672 | window.bottomFrame.setMaximumHeight(window.bottomFrame.minimumSizeHint().height()) |
| 1673 | |
| 1674 | def addPlaybackLayout(self, window): |
| 1675 | window.playbackFrame = QtWidgets.QFrame() |
| 1676 | window.playbackFrame.setVisible(False) |
| 1677 | window.playbackFrame.setContentsMargins(0, 0, 0, 0) |
| 1678 | window.playbackLayout = QtWidgets.QHBoxLayout() |
| 1679 | window.playbackLayout.setAlignment(Qt.AlignLeft) |
| 1680 | window.playbackLayout.setContentsMargins(0, 0, 0, 0) |
| 1681 | window.playbackFrame.setLayout(window.playbackLayout) |
| 1682 | window.seekInput = QtWidgets.QLineEdit() |
| 1683 | window.seekInput.returnPressed.connect(self.seekFromButton) |
| 1684 | window.seekButton = QtWidgets.QPushButton(QtGui.QPixmap(resourcespath + 'clock_go.png'), "") |
| 1685 | window.seekButton.setToolTip(getMessage("seektime-menu-label")) |
| 1686 | window.seekButton.pressed.connect(self.seekFromButton) |
| 1687 | window.seekInput.setText("0:00") |
| 1688 | window.seekInput.setFixedWidth(60) |
| 1689 | window.playbackLayout.addWidget(window.seekInput) |
| 1690 | window.playbackLayout.addWidget(window.seekButton) |
| 1691 | window.unseekButton = QtWidgets.QPushButton(QtGui.QPixmap(resourcespath + 'arrow_undo.png'), "") |
| 1692 | window.unseekButton.setToolTip(getMessage("undoseek-menu-label")) |
| 1693 | window.unseekButton.pressed.connect(self.undoSeek) |
| 1694 | |
| 1695 | window.miscLayout = QtWidgets.QHBoxLayout() |
| 1696 | window.playbackLayout.addWidget(window.unseekButton) |
| 1697 | window.playButton = QtWidgets.QPushButton(QtGui.QPixmap(resourcespath + 'control_play_blue.png'), "") |
| 1698 | window.playButton.setToolTip(getMessage("play-menu-label")) |
| 1699 | window.playButton.pressed.connect(self.play) |
| 1700 | window.playbackLayout.addWidget(window.playButton) |
| 1701 | window.pauseButton = QtWidgets.QPushButton(QtGui.QPixmap(resourcespath + 'control_pause_blue.png'), "") |
| 1702 | window.pauseButton.setToolTip(getMessage("pause-menu-label")) |
| 1703 | window.pauseButton.pressed.connect(self.pause) |
| 1704 | window.playbackLayout.addWidget(window.pauseButton) |
| 1705 | window.playbackFrame.setMaximumHeight(window.playbackFrame.sizeHint().height()) |
| 1706 | window.playbackFrame.setMaximumWidth(window.playbackFrame.sizeHint().width()) |
| 1707 | window.outputLayout.addWidget(window.playbackFrame) |
| 1708 | |
| 1709 | def loadMenubar(self, window, passedBar): |
| 1710 | if passedBar is not None: |
no test coverage detected