Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
/*
* SPDX-FileCopyrightText: 2019 Wolthera van Hövell tot Westerflier <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KISMEMORYREPORTBUTTON_H
#define KISMEMORYREPORTBUTTON_H
#include <QPushButton>
#include <kritaui_export.h>
class KRITAUI_EXPORT KisMemoryReportButton : public QPushButton
{
Q_OBJECT
public:
explicit KisMemoryReportButton(QWidget *parent = 0);
void setMaximumMemory(qint64 max);
void setCurrentMemory(qint64 memory);
void setImageWeight(qint64 memory);
void paintEvent(QPaintEvent *e) override;
private:
qint64 m_maxbytes;
qint64 m_curbytes;
qint64 m_imgbytes;
};
#endif // KISMEMORYREPORTBUTTON_H