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 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 16:01:13 +02:00
co-authored by Claude Opus 4.8
parent abc1d1c079
commit e60b42ea83
+4 -1
View File
@@ -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);