Krita Source Code Documentation
Loading...
Searching...
No Matches
KisMemoryReportButton.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISMEMORYREPORTBUTTON_H
8#define KISMEMORYREPORTBUTTON_H
9
10#include <QPushButton>
11#include <kritaui_export.h>
12
13class KRITAUI_EXPORT KisMemoryReportButton : public QPushButton
14{
15 Q_OBJECT
16public:
17 explicit KisMemoryReportButton(QWidget *parent = 0);
18
19
20 void setMaximumMemory(qint64 max);
21
22 void setCurrentMemory(qint64 memory);
23
24 void setImageWeight(qint64 memory);
25
26 void paintEvent(QPaintEvent *e) override;
27
28private:
29 qint64 m_maxbytes;
30 qint64 m_curbytes;
31 qint64 m_imgbytes;
32};
33
34#endif // KISMEMORYREPORTBUTTON_H