Krita Source Code Documentation
Loading...
Searching...
No Matches
KoProgressProxy.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#include "KoProgressProxy.h"
8
9#include <QString>
10
11void KoProgressProxy::setAutoNestedName(const QString &name)
12{
13 if (name.isEmpty()) {
14 setFormat("%p%");
15 } else {
16 if (maximum() > 0) {
17 setFormat(QString("%1: %p%").arg(name));
18 } else {
19 setFormat(name);
20 }
21 }
22}
virtual void setFormat(const QString &format)=0
virtual void setAutoNestedName(const QString &name)
virtual int maximum() const =0