Skip to content

Commit

Permalink
fix python support for QgsMessageViewer
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7669 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 27, 2007
1 parent 286c3e4 commit 7e4fd6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsmessageviewer.cpp
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsmessageviewer.h
Expand Up @@ -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);
Expand Down

0 comments on commit 7e4fd6f

Please sign in to comment.