34 mLayout =
new QGridLayout(
this );
35 mLayout->setContentsMargins( 0, 0, 0, 0 );
37 QLabel *minLbl =
new QLabel( tr(
"Minimum (exclusive)" ),
this );
38 minLbl->setWordWrap(
true );
39 minLbl->setAlignment( Qt::AlignTop );
40 minLbl->setToolTip( tr(
41 "Minimum scale, i.e. most \"zoomed out\". "
42 "This limit is exclusive, that means the layer will not be displayed on this scale."
44 QLabel *maxLbl =
new QLabel( tr(
"Maximum (inclusive)" ),
this );
45 maxLbl->setWordWrap(
true );
46 maxLbl->setAlignment( Qt::AlignTop );
47 maxLbl->setToolTip( tr(
48 "Maximum scale, i.e. most \"zoomed in\". "
49 "This limit is inclusive, that means the layer will be displayed on this scale."
53 mMinimumScaleIconLabel =
new QLabel(
this );
55 mMaximumScaleIconLabel =
new QLabel(
this );
61 mMinimumScaleWidget->setShowCurrentScaleButton(
true );
62 mMaximumScaleWidget->setShowCurrentScaleButton(
true );
65 mMinimumScaleWidget->setScale( 100000 );
66 mMaximumScaleWidget->setScale( 1000 );
68 mLayout->addWidget( minLbl, 0, 0, 1, 2 );
69 mLayout->addWidget( mMinimumScaleIconLabel, 1, 0 );
70 mLayout->addWidget( mMinimumScaleWidget, 1, 1 );
71 mLayout->addWidget( maxLbl, 0, 2, 1, 2 );
72 mLayout->addWidget( mMaximumScaleIconLabel, 1, 2 );
73 mLayout->addWidget( mMaximumScaleWidget, 1, 3 );
75 mLayout->setColumnStretch( 0, 0 );
76 mLayout->setColumnStretch( 1, 3 );
77 mLayout->setColumnStretch( 2, 0 );
78 mLayout->setColumnStretch( 3, 3 );