22 : QDialog( parent, fl )
27 setAttribute( Qt::WA_DeleteOnClose );
33 mCheckBoxQSettingsLabel =
"";
36 restoreGeometry( settings.value(
"/Windows/MessageViewer/geometry" ).toByteArray() );
42 settings.setValue(
"/Windows/MessageViewer/geometry", saveGeometry() );
47 txtMessage->setHtml( msg );
52 txtMessage->setPlainText( msg );
57 txtMessage->append( msg );
73 QApplication::setOverrideCursor( Qt::ArrowCursor );
75 QApplication::restoreOverrideCursor();
85 setWindowTitle( title );
90 checkBox->setText( text );
95 checkBox->setVisible( visible );
100 checkBox->setCheckState( state );
105 return checkBox->checkState();
110 mCheckBoxQSettingsLabel = label;
114 void QgsMessageViewer::on_checkBox_toggled(
bool toggled )
117 if ( !mCheckBoxQSettingsLabel.isEmpty() )
120 if ( checkBox->checkState() == Qt::Checked )
121 settings.setValue( mCheckBoxQSettingsLabel,
false );
123 settings.setValue( mCheckBoxQSettingsLabel,
true );