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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user