Mercurial > hg > svgui
diff layer/ScrollableImageCache.h @ 1266:a34a2a25907c
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 175d4e15884d |
children | bc2cb82050a0 |
line wrap: on
line diff
--- a/layer/ScrollableImageCache.h Thu Mar 01 14:43:53 2018 +0000 +++ b/layer/ScrollableImageCache.h Thu Mar 01 18:02:22 2018 +0000 @@ -38,22 +38,22 @@ { public: ScrollableImageCache() : - m_validLeft(0), - m_validWidth(0), - m_startFrame(0), - m_zoomLevel(0) + m_validLeft(0), + m_validWidth(0), + m_startFrame(0), + m_zoomLevel(0) {} void invalidate() { - m_validWidth = 0; + m_validWidth = 0; } bool isValid() const { - return m_validWidth > 0; + return m_validWidth > 0; } QSize getSize() const { - return m_image.size(); + return m_image.size(); } /** @@ -66,25 +66,25 @@ invalidate(); } } - + int getValidLeft() const { - return m_validLeft; + return m_validLeft; } int getValidWidth() const { - return m_validWidth; + return m_validWidth; } int getValidRight() const { - return m_validLeft + m_validWidth; + return m_validLeft + m_validWidth; } QRect getValidArea() const { - return QRect(m_validLeft, 0, m_validWidth, m_image.height()); + return QRect(m_validLeft, 0, m_validWidth, m_image.height()); } int getZoomLevel() const { - return m_zoomLevel; + return m_zoomLevel; } /** @@ -101,7 +101,7 @@ } sv_frame_t getStartFrame() const { - return m_startFrame; + return m_startFrame; } /** @@ -118,7 +118,7 @@ } const QImage &getImage() const { - return m_image; + return m_image; } /** @@ -137,7 +137,7 @@ * modify anything about the cache, only about the arguments. */ void adjustToTouchValidArea(int &left, int &width, - bool &isLeftOfValidArea) const; + bool &isLeftOfValidArea) const; /** * Draw from an image onto the cache. The supplied image must have @@ -147,10 +147,10 @@ * the source region of the image. */ void drawImage(int left, - int width, - QImage image, - int imageLeft, - int imageWidth); + int width, + QImage image, + int imageLeft, + int imageWidth); private: QImage m_image;