[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Thu May 13 01:45:50 CEST 2004
CVS commit by arwalker:
Fixed UI problem with logging type.
M +9 -0 eventmonitor.ui 1.9
M +10 -5 ksteventmonitor_i.cpp 1.11
--- kdeextragear-2/kst/kst/eventmonitor.ui #1.8:1.9
@@ -457,4 +457,7 @@
<string>Warning</string>
</property>
+ <property name="buttonGroupId">
+ <number>1</number>
+ </property>
</widget>
<widget class="QRadioButton" row="0" column="4">
@@ -465,4 +468,7 @@
<string>Error</string>
</property>
+ <property name="buttonGroupId">
+ <number>2</number>
+ </property>
</widget>
<widget class="QRadioButton" row="0" column="2">
@@ -473,4 +479,7 @@
<string>Notice</string>
</property>
+ <property name="buttonGroupId">
+ <number>0</number>
+ </property>
</widget>
<widget class="QCheckBox" row="0" column="0">
--- kdeextragear-2/kst/kst/ksteventmonitor_i.cpp #1.10:1.11
@@ -209,4 +209,5 @@ void KstEventMonitorI::logCheckChanged()
void KstEventMonitorI::logChanged( int id ) {
KstDebug::LogLevel level;
+ bool bLog;
int row;
@@ -214,18 +215,22 @@ void KstEventMonitorI::logChanged( int i
if( row >= 0 && row < (int)_eventMonitors.size() ) {
switch (id ) {
- case 1:
+ case 0:
level = KstDebug::Notice;
break;
- case 2:
+ case 1:
level = KstDebug::Warning;
break;
- case 3:
+ case 2:
level = KstDebug::Error;
break;
default:
- level = KstDebug::None;
+ level = KstDebug::Notice;
break;
}
- if( level != _eventMonitors[row].getLevel( ) ) {
+
+ bLog = checkBoxDebug->isChecked();
+ if( level != _eventMonitors[row].getLevel( ) ||
+ bLog != _eventMonitors[row].getLogKstDebug() ) {
+ _eventMonitors[row].setLogKstDebug( bLog );
_eventMonitors[row].setLevel( level );
tableEvents->updateCell( row, 0 );
More information about the Kst
mailing list