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
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1