cabana: misc touchups (#26092)

* fix time formatting

* disable vertical resize

* Update tools/cabana/videowidget.cc
This commit is contained in:
Adeeb Shihadeh
2022-10-15 16:05:52 -07:00
committed by GitHub
parent 553068f8c3
commit bf5a6565c0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,3 @@
#include "tools/cabana/detailwidget.h"
#include <QDialogButtonBox>
@@ -138,6 +137,7 @@ BinaryView::BinaryView(QWidget *parent) {
QVBoxLayout *main_layout = new QVBoxLayout(this);
main_layout->setContentsMargins(0, 0, 0, 0);
table = new QTableWidget(this);
table->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch);
table->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
table->horizontalHeader()->hide();
table->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+1 -1
View File
@@ -11,7 +11,7 @@
#include <QVBoxLayout>
inline QString formatTime(int seconds) {
return QDateTime::fromTime_t(seconds).toString(seconds > 60 * 60 ? "hh::mm::ss" : "mm::ss");
return QDateTime::fromTime_t(seconds).toString(seconds > 60 * 60 ? "hh:mm:ss" : "mm:ss");
}
VideoWidget::VideoWidget(QWidget *parent) : QWidget(parent) {