Commit aa8822a4 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

More const methods

parent c1805c8c
...@@ -791,12 +791,12 @@ void KisCanvas2::setCursor(const QCursor &cursor) ...@@ -791,12 +791,12 @@ void KisCanvas2::setCursor(const QCursor &cursor)
canvasWidget()->setCursor(cursor); canvasWidget()->setCursor(cursor);
} }
KisAnimationFrameCacheSP KisCanvas2::frameCache() KisAnimationFrameCacheSP KisCanvas2::frameCache() const
{ {
return m_d->frameCache; return m_d->frameCache;
} }
KisAnimationPlayer *KisCanvas2::animationPlayer() KisAnimationPlayer *KisCanvas2::animationPlayer() const
{ {
return m_d->animationPlayer; return m_d->animationPlayer;
} }
...@@ -813,7 +813,7 @@ void KisCanvas2::slotSelectionChanged() ...@@ -813,7 +813,7 @@ void KisCanvas2::slotSelectionChanged()
} }
} }
bool KisCanvas2::isPopupPaletteVisible() bool KisCanvas2::isPopupPaletteVisible() const
{ {
if (!m_d->popupPalette) { if (!m_d->popupPalette) {
return false; return false;
...@@ -896,7 +896,7 @@ void KisCanvas2::slotShowPopupPalette(const QPoint &p) ...@@ -896,7 +896,7 @@ void KisCanvas2::slotShowPopupPalette(const QPoint &p)
m_d->popupPalette->showPopupPalette(p); m_d->popupPalette->showPopupPalette(p);
} }
KisPaintingAssistantsDecoration* KisCanvas2::paintingAssistantsDecoration() KisPaintingAssistantsDecoration* KisCanvas2::paintingAssistantsDecoration() const
{ {
KisCanvasDecoration* deco = decoration("paintingAssistantsDecoration"); KisCanvasDecoration* deco = decoration("paintingAssistantsDecoration");
return qobject_cast<KisPaintingAssistantsDecoration*>(deco); return qobject_cast<KisPaintingAssistantsDecoration*>(deco);
......
...@@ -152,7 +152,7 @@ public: // KoCanvasBase implementation ...@@ -152,7 +152,7 @@ public: // KoCanvasBase implementation
*/ */
KisInputManager* globalInputManager() const; KisInputManager* globalInputManager() const;
KisPaintingAssistantsDecoration* paintingAssistantsDecoration(); KisPaintingAssistantsDecoration* paintingAssistantsDecoration() const;
public: // KisCanvas2 methods public: // KisCanvas2 methods
...@@ -173,8 +173,8 @@ public: // KisCanvas2 methods ...@@ -173,8 +173,8 @@ public: // KisCanvas2 methods
void setCursor(const QCursor &cursor); void setCursor(const QCursor &cursor);
KisAnimationFrameCacheSP frameCache(); KisAnimationFrameCacheSP frameCache() const;
KisAnimationPlayer *animationPlayer(); KisAnimationPlayer *animationPlayer() const;
void refetchDataFromImage(); void refetchDataFromImage();
...@@ -240,7 +240,7 @@ private Q_SLOTS: ...@@ -240,7 +240,7 @@ private Q_SLOTS:
public: public:
bool isPopupPaletteVisible(); bool isPopupPaletteVisible() const;
void slotShowPopupPalette(const QPoint& = QPoint(0,0)); void slotShowPopupPalette(const QPoint& = QPoint(0,0));
// interface for KisCanvasController only // interface for KisCanvasController only
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment