Skip to content

Commit

Permalink
add current timestamp to main window
Browse files Browse the repository at this point in the history
  • Loading branch information
arch committed Jul 24, 2021
1 parent 1322b1c commit cf5702c
Show file tree
Hide file tree
Showing 3 changed files with 460 additions and 430 deletions.
18 changes: 15 additions & 3 deletions funscript_editor/ui/funscript_editor_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,23 @@ def setupUi(self, MainWindow):
self.videoPane = QtWidgets.QWidget(self.verticalLayoutWidget)
self.videoPane.setObjectName("videoPane")
self.videoLayout.addWidget(self.videoPane)
spacerItem = QtWidgets.QSpacerItem(40, 0, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.videoLayout.addItem(spacerItem)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetMaximumSize)
self.horizontalLayout.setObjectName("horizontalLayout")
self.seekBar = QtWidgets.QSlider(self.verticalLayoutWidget)
self.seekBar.setOrientation(QtCore.Qt.Horizontal)
self.seekBar.setObjectName("seekBar")
self.videoLayout.addWidget(self.seekBar)
self.horizontalLayout.addWidget(self.seekBar)
self.timestamp = QtWidgets.QLabel(self.verticalLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.timestamp.sizePolicy().hasHeightForWidth())
self.timestamp.setSizePolicy(sizePolicy)
self.timestamp.setMaximumSize(QtCore.QSize(16777215, 50))
self.timestamp.setObjectName("timestamp")
self.horizontalLayout.addWidget(self.timestamp)
self.videoLayout.addLayout(self.horizontalLayout)
self.settingsLayout = QtWidgets.QGroupBox(self.splitterHorizontal)
self.settingsLayout.setTitle("")
self.settingsLayout.setObjectName("settingsLayout")
Expand Down Expand Up @@ -217,6 +228,7 @@ def setupUi(self, MainWindow):
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Video Player with Signal"))
self.timestamp.setText(_translate("MainWindow", "-- "))
self.shortcutsGroupBox.setTitle(_translate("MainWindow", "Keyboard Shortcuts"))
self.label.setText(_translate("MainWindow", "P, Space"))
self.label_2.setText(_translate("MainWindow", "Pause / Playback"))
Expand Down

0 comments on commit cf5702c

Please sign in to comment.