Skip to content

Commit f552b24

Browse files
committed
Possibility to hide elements in save as raster dialog
1 parent eec208c commit f552b24

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/gui/qgsrasterlayersaveasdialog.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,16 @@ void QgsRasterLayerSaveAsDialog::setOutputExtent( const QgsRectangle& r )
147147
mYMinLineEdit->setText( QString::number( r.yMinimum() ) );
148148
mYMaxLineEdit->setText( QString::number( r.yMaximum() ) );
149149
}
150+
151+
void QgsRasterLayerSaveAsDialog::hideFormat()
152+
{
153+
mFormatLabel->hide();
154+
mFormatComboBox->hide();
155+
}
156+
157+
void QgsRasterLayerSaveAsDialog::hideOutput()
158+
{
159+
mSaveAsLabel->hide();
160+
mSaveAsLineEdit->hide();
161+
mBrowseButton->hide();
162+
}

src/gui/qgsrasterlayersaveasdialog.h

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class QgsRasterLayerSaveAsDialog: public QDialog, private Ui::QgsRasterLayerSave
2222
QString outputFormat() const;
2323
QgsRectangle outputRectangle() const;
2424

25+
void hideFormat();
26+
void hideOutput();
27+
2528
private slots:
2629
void on_mBrowseButton_clicked();
2730
void on_mSaveAsLineEdit_textChanged( const QString& text );

0 commit comments

Comments
 (0)