23 : QDialog( parent, fl )
28 connect( checkBox, &QCheckBox::toggled,
this, &QgsMessageViewer::checkBox_toggled );
31 setAttribute( Qt::WA_DeleteOnClose );
37 txtMessage->setTextInteractionFlags( Qt::TextBrowserInteraction );
38 txtMessage->setOpenExternalLinks(
true );
43 txtMessage->setHtml( msg );
48 txtMessage->setPlainText( msg );
53 txtMessage->append( msg );
80 setWindowTitle( title );
85 checkBox->setText( text );
90 checkBox->setVisible( visible );
95 checkBox->setCheckState( state );
100 return checkBox->checkState();
105 mCheckBoxQgsSettingsLabel = label;
109 void QgsMessageViewer::checkBox_toggled(
bool toggled )
112 if ( !mCheckBoxQgsSettingsLabel.isEmpty() )
115 if ( checkBox->checkState() == Qt::Checked )
116 settings.
setValue( mCheckBoxQgsSettingsLabel,
false );
118 settings.
setValue( mCheckBoxQgsSettingsLabel,
true );