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
11
void
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
}
KoProgressProxy.h
KoProgressProxy::setFormat
virtual void setFormat(const QString &format)=0
KoProgressProxy::setAutoNestedName
virtual void setAutoNestedName(const QString &name)
Definition
KoProgressProxy.cpp:11
KoProgressProxy::maximum
virtual int maximum() const =0
libs
widgetutils
KoProgressProxy.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52