Skip to content
Permalink
Browse files

Save/restore window geometry for change label properties dialog

  • Loading branch information
dakcarto committed Jun 16, 2013
1 parent 9e2c4a0 commit 4b8f3c7258a1b7707a52d7434ec43a53cbd22df8
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgslabelpropertydialog.cpp
@@ -25,6 +25,8 @@

#include <QColorDialog>
#include <QFontDatabase>
#include <QSettings>


QgsLabelPropertyDialog::QgsLabelPropertyDialog( const QString& layerId, int featureId, const QFont& labelFont, const QString& labelText, QgsMapRenderer* renderer, QWidget * parent, Qt::WindowFlags f ):
QDialog( parent, f ), mMapRenderer( renderer ), mLabelFont( labelFont ), mCurLabelField( -1 )
@@ -33,10 +35,15 @@ QgsLabelPropertyDialog::QgsLabelPropertyDialog( const QString& layerId, int feat
fillHaliComboBox();
fillValiComboBox();
init( layerId, featureId, labelText );

QSettings settings;
restoreGeometry( settings.value( QString( "/Windows/ChangeLabelProps/geometry" ) ).toByteArray() );
}

QgsLabelPropertyDialog::~QgsLabelPropertyDialog()
{
QSettings settings;
settings.setValue( QString( "/Windows/ChangeLabelProps/geometry" ), saveGeometry() );
}

void QgsLabelPropertyDialog::init( const QString& layerId, int featureId, const QString& labelText )

0 comments on commit 4b8f3c7

Please sign in to comment.
You can’t perform that action at this time.