MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / ScaleBar

Method ScaleBar

ASAP/ScaleBar.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <QSizePolicy>
5
6ScaleBar::ScaleBar(float resolution, QWidget *parent)
7 : QWidget(parent),
8 _resolution(resolution),
9 _currentWidth(300)
10{
11 QSizePolicy policy;
12 policy.setHeightForWidth(true);
13 policy.setHorizontalPolicy(QSizePolicy::Fixed);
14 policy.setVerticalPolicy(QSizePolicy::Fixed);
15 setSizePolicy(policy);
16}
17
18ScaleBar::~ScaleBar() {
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected