From e60b42ea8311a0efe293a6b6b9e6c09d54bb28af Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Fri, 19 Jun 2026 16:01:13 +0200 Subject: [PATCH] viewer: white, compact, right-aligned ROI numeric fields The ROI bound editors now have a white background, a capped width and right-aligned text, which reads better for numeric entry. Co-Authored-By: Claude Opus 4.8 --- viewer/widgets/JFJochViewerROIList.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/viewer/widgets/JFJochViewerROIList.cpp b/viewer/widgets/JFJochViewerROIList.cpp index 1b648995..1a9c2bc3 100644 --- a/viewer/widgets/JFJochViewerROIList.cpp +++ b/viewer/widgets/JFJochViewerROIList.cpp @@ -49,8 +49,11 @@ JFJochViewerROIList::JFJochViewerROIList(QWidget *parent) : QWidget(parent) { for (int i = 0; i < 4; i++) { flabel_[i] = new QLabel("", this); fedit_[i] = new QLineEdit(this); + fedit_[i]->setAlignment(Qt::AlignRight); + fedit_[i]->setMaximumWidth(90); + fedit_[i]->setStyleSheet("background-color: white; color: black;"); grid->addWidget(flabel_[i], i, 0); - grid->addWidget(fedit_[i], i, 1); + grid->addWidget(fedit_[i], i, 1, Qt::AlignRight); connect(fedit_[i], &QLineEdit::editingFinished, this, &JFJochViewerROIList::ApplyEditor); } layout->addLayout(grid);