mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
cabana: misc touchups (#26092)
* fix time formatting * disable vertical resize * Update tools/cabana/videowidget.cc
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user