Commits

flupp  committed 85d9493

const for getters

  • Participants
  • Parent commits e2d40e1

Comments (0)

Files changed (4)

File applet/SmoothTasks/Light.cpp

 	setSize(1.0);
 }
 
-qreal Light::size() {
-	return m_size;
-}
-
 void Light::setSize(qreal size) {
 	m_size = size;
 	emit update();

File applet/SmoothTasks/Light.h

 	void stopAnimation();
 
 private:
-	qreal size();
+	qreal size() const { return m_size; }
 	void setSize(qreal size);
 
 	TaskItem     *m_item;

File applet/SmoothTasks/TaskIcon.cpp

 	m_startupAnimation = 0;
 }
 
-qreal TaskIcon::startupAnimationProgress() {
-	return m_progress;
-}
-
 void TaskIcon::setStartupAnimationProgress(qreal progress) {
 	m_progress = progress;
 	emit update();

File applet/SmoothTasks/TaskIcon.h

 	void updatePos();
 	void animationHover(qreal hover);
 	void animationStartup(qreal progress);
-	qreal startupAnimationProgress();
+	qreal startupAnimationProgress() const { return m_progress; }
 	void setStartupAnimationProgress(qreal progress);
 
 signals: