16 #include <QHBoxLayout> 25 , mShowCurrentScaleButton( false )
35 mCurrentScaleButton->
setToolTip(
tr(
"Set to current canvas scale" ) );
38 mCurrentScaleButton->
hide();
52 mCurrentScaleButton->
setVisible( mShowCurrentScaleButton && mCanvas );
58 mCurrentScaleButton->
setVisible( mShowCurrentScaleButton && mCanvas );
71 return mScaleComboBox->
setScale( scale );
void setContentsMargins(int left, int top, int right, int bottom)
static QIcon getThemeIcon(const QString &theName)
Helper to get a theme icon.
void setScale(double scale)
Function to set the selected scale from double.
QString tr(const char *sourceText, const char *disambiguation, int n)
Map canvas is a class for displaying all GIS data types on a canvas.
double scale()
Get the last reported scale of the canvas.
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setSpacing(int spacing)
A combobox which lets the user select map scale from predefined list and highlights nearest to curren...