MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / toFormat

Method toFormat

AdaptixClient/Source/Client/ConsoleTheme.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <QDir>
6
7QTextCharFormat ConsoleStyleEntry::toFormat() const
8{
9 QTextCharFormat fmt;
10 if (color.isValid())
11 fmt.setForeground(color);
12 if (bold)
13 fmt.setFontWeight(QFont::Bold);
14 if (italic)
15 fmt.setFontItalic(true);
16 if (underline)
17 fmt.setFontUnderline(true);
18 return fmt;
19}
20
21ConsoleStyleEntry ConsoleStyleEntry::fromJson(const QJsonObject& obj)
22{

Callers 3

AddLogsMethod · 0.80
ConsoleOutputMessageMethod · 0.80
ConsoleOutputPromptMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected