fix python support for QgsMessageViewer

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7669 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2007-11-27 12:31:41 +00:00
parent a34087c959
commit b5cbbe4692
2 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,11 @@ void QgsMessageViewer::setCheckBoxState(Qt::CheckState state)
checkBox->setCheckState(state);
}
Qt::CheckState QgsMessageViewer::checkBoxState()
{
return checkBox->checkState();
}
void QgsMessageViewer::setCheckBoxQSettingsLabel(QString label)
{
mCheckBoxQSettingsLabel = label;

View File

@ -54,6 +54,8 @@ class GUI_EXPORT QgsMessageViewer: public QDialog, public QgsMessageOutput, priv
void setCheckBoxVisible(bool visible);
// Sets the check state
void setCheckBoxState(Qt::CheckState state);
// Get checkbox state
Qt::CheckState checkBoxState();
// Specifies a QSettings tag to store/retrieve the checkbox
// state to/from. Use an empty QString to disable this feature.
void setCheckBoxQSettingsLabel(QString label);