| 331 | |
| 332 | |
| 333 | class StatusLabel: public UnderlinedLabel { |
| 334 | Q_OBJECT |
| 335 | public: |
| 336 | explicit StatusLabel(QTabBar *tabBar, QWidget* parent = nullptr): |
| 337 | UnderlinedLabel(tabBar, parent) |
| 338 | { |
| 339 | setAlignment(Qt::AlignRight | Qt::AlignVCenter); |
| 340 | setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed); |
| 341 | } |
| 342 | |
| 343 | QSize minimumSizeHint() const override |
| 344 | { |
| 345 | QRect rect = style()->itemTextRect(fontMetrics(), QRect(), Qt::AlignRight, true, i18n("Line: 00000 Col: 000")); |
| 346 | rect.setHeight(m_tabBar->height()); |
| 347 | return rect.size(); |
| 348 | } |
| 349 | }; |
| 350 | |
| 351 | // class Container |
no test coverage detected