Uniform sizing for the inline eye/add/trash buttons so the trailing column is pixel-aligned regardless of the platform style's default tool-button metrics.
| 70 | // Uniform sizing for the inline eye/add/trash buttons so the trailing column is |
| 71 | // pixel-aligned regardless of the platform style's default tool-button metrics. |
| 72 | void sizeTrailingButton(QToolButton* button) { |
| 73 | button->setIconSize(QSize(kTrailingIconPx, kTrailingIconPx)); |
| 74 | // Fixed HEIGHT too (== the input height), else the tool button's natural |
| 75 | // height (~24-26px) inflates its grid row above the 20px inputs and loosens |
| 76 | // the row spacing. |
| 77 | button->setFixedSize(kTrailingSlotWidth, PJ::Style::kInputHeight); |
| 78 | } |
| 79 | |
| 80 | // Add one [label | field | trailing] row to a 3-column scene-control grid. |
| 81 | // Using a real grid column (not an in-cell spacer) keeps every field's right |
no test coverage detected