31 minLbl->
setToolTip(
tr(
"Minimum scale, i.e. maximum scale denominator. "
32 "This limit is exclusive, that means the layer will not be displayed on this scale." ) );
36 maxLbl->
setToolTip(
tr(
"Maximum scale, i.e. minimum scale denominator. "
37 "This limit is inclusive, that means the layer will be displayed on this scale." ) );
39 mMinimumScaleIconLabel =
new QLabel(
this );
41 mMaximumScaleIconLabel =
new QLabel(
this );
50 mMinimumScaleWidget->
setScale( 1.0 / 100000 );
51 mMaximumScaleWidget->
setScale( 1.0 / 1000 );
54 mLayout->
addWidget( mMinimumScaleIconLabel, 0, 1 );
55 mLayout->
addWidget( mMinimumScaleWidget, 0, 2 );
57 mLayout->
addWidget( mMaximumScaleIconLabel, 0, 4 );
58 mLayout->
addWidget( mMaximumScaleWidget, 0, 5 );
91 mMinimumScaleWidget->
setScale( scale );
96 return mMinimumScaleWidget->
scale();
101 mMaximumScaleWidget->
setScale( scale );
106 return mMaximumScaleWidget->
scale();
void setContentsMargins(int left, int top, int right, int bottom)
void setPixmap(const QPixmap &)
void setAlignment(QFlags< Qt::AlignmentFlag >)
bool readBoolEntry(const QString &scope, const QString &key, bool def=false, bool *ok=0) const
QString tr(const char *sourceText, const char *disambiguation, int n)
static QPixmap getThemePixmap(const QString &theName)
Helper to get a theme icon as a pixmap.
Map canvas is a class for displaying all GIS data types on a canvas.
QStringList readListEntry(const QString &scope, const QString &key, QStringList def=QStringList(), bool *ok=0) const
key value accessors
void setColumnStretch(int column, int stretch)
static QgsProject * instance()
access to canonical QgsProject instance
void setWordWrap(bool on)