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)
canvasWidget()->setCursor(cursor);
}
KisAnimationFrameCacheSP KisCanvas2::frameCache()
KisAnimationFrameCacheSP KisCanvas2::frameCache() const
{
return m_d->frameCache;
}
KisAnimationPlayer *KisCanvas2::animationPlayer()
KisAnimationPlayer *KisCanvas2::animationPlayer() const
{
return m_d->animationPlayer;
}
......@@ -813,7 +813,7 @@ void KisCanvas2::slotSelectionChanged()
}
}
bool KisCanvas2::isPopupPaletteVisible()
bool KisCanvas2::isPopupPaletteVisible() const
{
if (!m_d->popupPalette) {
return false;
......@@ -896,7 +896,7 @@ void KisCanvas2::slotShowPopupPalette(const QPoint &p)
m_d->popupPalette->showPopupPalette(p);
}
KisPaintingAssistantsDecoration* KisCanvas2::paintingAssistantsDecoration()
KisPaintingAssistantsDecoration* KisCanvas2::paintingAssistantsDecoration() const
{
KisCanvasDecoration* deco = decoration("paintingAssistantsDecoration");
return qobject_cast<KisPaintingAssistantsDecoration*>(deco);
......
......@@ -152,7 +152,7 @@ public: // KoCanvasBase implementation
*/
KisInputManager* globalInputManager() const;
KisPaintingAssistantsDecoration* paintingAssistantsDecoration();
KisPaintingAssistantsDecoration* paintingAssistantsDecoration() const;
public: // KisCanvas2 methods
......@@ -173,8 +173,8 @@ public: // KisCanvas2 methods
void setCursor(const QCursor &cursor);
KisAnimationFrameCacheSP frameCache();
KisAnimationPlayer *animationPlayer();
KisAnimationFrameCacheSP frameCache() const;
KisAnimationPlayer *animationPlayer() const;
void refetchDataFromImage();
......@@ -240,7 +240,7 @@ private Q_SLOTS:
public:
bool isPopupPaletteVisible();
bool isPopupPaletteVisible() const;
void slotShowPopupPalette(const QPoint& = QPoint(0,0));
// 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