33 mCheckBoxQSettingsLabel =
"";
47 txtMessage->setHtml( msg );
52 txtMessage->setPlainText( msg );
57 txtMessage->append( msg );
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 );
QByteArray toByteArray() const
MessageType
message can be in plain text or in html format
Qt::CheckState checkBoxState()
virtual void setTitle(const QString &title) override
set title for the messages
void setMessageAsHtml(const QString &msg)
void setValue(const QString &key, const QVariant &value)
void setCheckBoxState(Qt::CheckState state)
void setOverrideCursor(const QCursor &cursor)
void setMessageAsPlainText(const QString &msg)
virtual void appendMessage(const QString &message) override
message to be appended to the current text
void restoreOverrideCursor()
virtual void showMessage(bool blocking=true) override
display the message to the user and deletes itself
virtual void setMessage(const QString &message, MessageType msgType) override
set message, it won't be displayed until
void setCheckBoxText(const QString &text)
void setCheckBoxQSettingsLabel(const QString &label)
QVariant value(const QString &key, const QVariant &defaultValue) const
QgsMessageViewer(QWidget *parent=nullptr, const Qt::WindowFlags &fl=QgisGui::ModalDialogFlags, bool deleteOnClose=true)
void setCheckBoxVisible(bool visible)