Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_format.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021 Dmitrii Utkin <loentar@gmail.com>
3
*
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#include "
recorder_format.h
"
8
9
namespace
RecorderFormatInfo
10
{
11
12
QLatin1String
fileExtension
(
RecorderFormat
format)
13
{
14
switch
(format) {
15
case
RecorderFormat::JPEG
:
16
return
QLatin1String(
"jpg"
);
17
case
RecorderFormat::PNG
:
18
return
QLatin1String(
"png"
);
19
}
20
21
return
QLatin1String(
""
);
22
}
23
24
QLatin1String
fileFormat
(
RecorderFormat
format)
25
{
26
switch
(format) {
27
case
RecorderFormat::JPEG
:
28
return
QLatin1String(
"JPEG"
);
29
case
RecorderFormat::PNG
:
30
return
QLatin1String(
"PNG"
);
31
}
32
33
return
QLatin1String(
""
);
34
}
35
36
}
RecorderFormatInfo
Definition
recorder_format.cpp:10
RecorderFormatInfo::fileFormat
QLatin1String fileFormat(RecorderFormat format)
Definition
recorder_format.cpp:24
RecorderFormatInfo::fileExtension
QLatin1String fileExtension(RecorderFormat format)
Definition
recorder_format.cpp:12
recorder_format.h
RecorderFormat
RecorderFormat
Definition
recorder_format.h:13
RecorderFormat::PNG
@ PNG
RecorderFormat::JPEG
@ JPEG
plugins
dockers
recorder
recorder_format.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52