Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_offset_keeper.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_OFFSET_KEEPER_H
8#define __KIS_OFFSET_KEEPER_H
9
10#include "kritapsdutils_export.h"
11
12#include <QIODevice>
13#include <kis_debug.h>
14
21{
22public:
23 KisOffsetKeeper(QIODevice &device)
24 : m_device(device)
25 {
26 m_expectedPos = m_device.pos();
27 }
28
30 {
31 if (m_device.pos() != m_expectedPos) {
33 }
34 }
35
36private:
37 QIODevice &m_device;
39};
40
41#endif /* __KIS_OFFSET_KEEPER_H */
KisOffsetKeeper(QIODevice &device)