[Kst] branches/work/kst/portto4/kst/src

George Staikos staikos at kde.org
Tue Dec 4 12:52:56 CET 2007


SVN commit 744768 by staikos:

remove some warnings.  Unfortunate that QCheckBox::state() returns a deprecated
enum.


 M  +2 -0      libkstapp/eventmonitordialog.cpp  
 M  +7 -7      widgets/datarange.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/eventmonitordialog.cpp #744767:744768
@@ -103,6 +103,8 @@
     case Debug::Error:
       _debugLogError->setChecked(true);
       break;
+    default:
+      break;
   }
 }
 
--- branches/work/kst/portto4/kst/src/widgets/datarange.cpp #744767:744768
@@ -53,7 +53,7 @@
 
 
 bool DataRange::startDirty() const {
-  return (!_start->text().isEmpty());
+  return !_start->text().isEmpty();
 }
 
 
@@ -78,7 +78,7 @@
 
 
 bool DataRange::rangeDirty() const {
-  return (!_range->text().isEmpty());
+  return !_range->text().isEmpty();
 }
 
 
@@ -103,7 +103,7 @@
 
 
 bool DataRange::skipDirty() const {
-  return (!_skip->text().isEmpty());
+  return !_skip->text().isEmpty();
 }
 
 
@@ -123,7 +123,7 @@
 
 
 bool DataRange::countFromEndDirty() const {
-  return (_readToEnd->state() == Qt::PartiallyChecked);
+  return _readToEnd->state() == QCheckBox::NoChange;
 }
 
 
@@ -133,7 +133,7 @@
 
 
 bool DataRange::readToEndDirty() const {
-  return (_readToEnd->state() == Qt::PartiallyChecked);
+  return _readToEnd->state() == QCheckBox::NoChange;
 }
 
 
@@ -148,7 +148,7 @@
 
 
 bool DataRange::doSkipDirty() const {
-  return (_doSkip->state() == Qt::PartiallyChecked);
+  return _doSkip->state() == QCheckBox::NoChange;
 }
 
 
@@ -163,7 +163,7 @@
 
 
 bool DataRange::doFilterDirty() const {
-  return (_doFilter->state() == Qt::PartiallyChecked);
+  return _doFilter->state() == QCheckBox::NoChange;
 }
 
 


More information about the Kst mailing list