Skip to content
Permalink
Browse files

save and restore message viewer geometry

  • Loading branch information
jef-n committed Jun 29, 2013
1 parent e6ff09a commit ee17616def793ae7d36dde59d66e0940fc877b7e
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsmessageviewer.cpp
@@ -31,10 +31,15 @@ QgsMessageViewer::QgsMessageViewer( QWidget *parent, Qt::WFlags fl, bool deleteO
setCheckBoxState( Qt::Unchecked );

mCheckBoxQSettingsLabel = "";

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

QgsMessageViewer::~QgsMessageViewer()
{
QSettings settings;
settings.setValue( "/Windows/MessageViewer/geometry", saveGeometry() );
}

void QgsMessageViewer::setMessageAsHtml( const QString &msg )

0 comments on commit ee17616

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