summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2018-11-12 13:33:25 +0100
committerMontel Laurent <[email protected]>2018-11-12 13:33:25 +0100
commit2551eeeb579ba09969614da39f45491858dc181c (patch)
tree632ea69f6dde0296466d3e749932f353f2e3e41e
parentb1fd4b7f6bb9e1de546ed445d110f02d03e0bcbe (diff)
Use int (remove warning)
-rw-r--r--gui/SensorDisplayLib/FancyPlotter.cpp2
-rw-r--r--gui/StyleEngine.cpp2
-rw-r--r--gui/StyleEngine.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/gui/SensorDisplayLib/FancyPlotter.cpp b/gui/SensorDisplayLib/FancyPlotter.cpp
index 3822a1a..22be7bf 100644
--- a/gui/SensorDisplayLib/FancyPlotter.cpp
+++ b/gui/SensorDisplayLib/FancyPlotter.cpp
@@ -397,7 +397,7 @@ void FancyPlotter::applyStyle()
font.setPointSize(KSGRD::Style->fontSize() );
mPlotter->setFont( font );
for ( int i = 0; i < mPlotter->numBeams() &&
- (unsigned int)i < KSGRD::Style->numSensorColors(); ++i ) {
+ i < KSGRD::Style->numSensorColors(); ++i ) {
setBeamColor(i, KSGRD::Style->sensorColor(i));
}
diff --git a/gui/StyleEngine.cpp b/gui/StyleEngine.cpp
index 0a0526d..46c27b1 100644
--- a/gui/StyleEngine.cpp
+++ b/gui/StyleEngine.cpp
@@ -110,7 +110,7 @@ const QColor& StyleEngine::sensorColor( int pos )
return dummy;
}
-uint StyleEngine::numSensorColors() const
+int StyleEngine::numSensorColors() const
{
return mSensorColors.count();
}
diff --git a/gui/StyleEngine.h b/gui/StyleEngine.h
index 4a13928..7e3d45b 100644
--- a/gui/StyleEngine.h
+++ b/gui/StyleEngine.h
@@ -48,7 +48,7 @@ class StyleEngine : public QObject
uint fontSize() const;
const QColor& sensorColor( int pos );
- uint numSensorColors() const;
+ int numSensorColors() const;
private: