Skip to content

Commit 7e4fd6f

Browse files
author
jef
committedNov 27, 2007
fix python support for QgsMessageViewer
git-svn-id: http://svn.osgeo.org/qgis/trunk@7669 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 286c3e4 commit 7e4fd6f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎src/gui/qgsmessageviewer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ void QgsMessageViewer::setCheckBoxState(Qt::CheckState state)
8888
checkBox->setCheckState(state);
8989
}
9090

91+
Qt::CheckState QgsMessageViewer::checkBoxState()
92+
{
93+
return checkBox->checkState();
94+
}
95+
9196
void QgsMessageViewer::setCheckBoxQSettingsLabel(QString label)
9297
{
9398
mCheckBoxQSettingsLabel = label;

‎src/gui/qgsmessageviewer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class GUI_EXPORT QgsMessageViewer: public QDialog, public QgsMessageOutput, priv
5454
void setCheckBoxVisible(bool visible);
5555
// Sets the check state
5656
void setCheckBoxState(Qt::CheckState state);
57+
// Get checkbox state
58+
Qt::CheckState checkBoxState();
5759
// Specifies a QSettings tag to store/retrieve the checkbox
5860
// state to/from. Use an empty QString to disable this feature.
5961
void setCheckBoxQSettingsLabel(QString label);

0 commit comments

Comments
 (0)
Please sign in to comment.