31 #include <QtCore/qtextstream.h>
90 str <<
"QT_CONFIG(" <<
c.parameter() <<
')';
115 for (
int i = 0;
i <
N; ++
i) {
117 return array[
i].valueString;
119 const char *defaultValue =
array[defaultIndex].valueString;
120 qWarning(
"uic: Warning: Invalid enumeration value %d, defaulting to %s",
121 value, defaultValue);
136 {0,
"NoToolBarArea"},
137 {0x1,
"LeftToolBarArea"},
138 {0x2,
"RightToolBarArea"},
139 {0x4,
"TopToolBarArea"},
140 {0x8,
"BottomToolBarArea"},
141 {0xf,
"AllToolBarAreas"}
154 {0x3,
"MinimumExpanding"},
165 {0,
"NoDockWidgetArea"},
166 {0x1,
"LeftDockWidgetArea"},
167 {0x2,
"RightDockWidgetArea"},
168 {0x4,
"TopDockWidgetArea"},
169 {0x8,
"BottomDockWidgetArea"},
170 {0xf,
"AllDockWidgetAreas"}
192 {13,
"HighlightedText"},
195 {16,
"AlternateBase"},
199 {20,
"PlaceholderText"},
216 const auto oldPadChar =
str.padChar();
217 const auto oldFieldWidth =
str.fieldWidth();
218 const auto oldFieldAlignment =
str.fieldAlignment();
219 const auto oldIntegerBase =
str.integerBase();
225 str.setIntegerBase(oldIntegerBase);
226 str.setFieldAlignment(oldFieldAlignment);
227 str.setFieldWidth(oldFieldWidth);
228 str.setPadChar(oldPadChar);
261 template <Encoding e>
278 template <Encoding e,
class Iterator>
281 int escapeIntegerBase,
int escapeWidth,
282 char escapePrefix = 0)
289 length += formatEscapedNumber(
str,
code, escapeIntegerBase, escapeWidth, escapePrefix);
290 }
else if (
const int l = formatSpecialCharacter(
str,
code)) {
292 }
else if (
code !=
'\r') {
298 str <<
"\"\n" << indent << indent <<
'"';
312 str <<
"QString::fromUtf8(";
314 formatStringSequence<Encoding::Utf8>(
str, utf8.
cbegin(), utf8.
cend(), indent,
331 for (
int i = 0;
i <
r.m_count; ++
i)
339 const char *returnType) :
340 m_name(
name), m_parameterType(parameterType), m_parameterName(parameterName),
341 m_indent(indent), m_return(returnType)
349 str << (
f.m_return ?
f.m_return :
"void") <<
' ' <<
f.m_name <<
'('
350 <<
f.m_parameterType;
351 if (
f.m_parameterType.cend()->isLetter())
353 str <<
f.m_parameterName <<
')' <<
'\n' <<
f.m_indent <<
"{\n";
356 str <<
"def " <<
f.m_name <<
"(self, " <<
f.m_parameterName <<
"):\n";
370 str <<
"} // " <<
f.m_name <<
"\n\n";
373 str <<
"# " <<
f.m_name <<
"\n\n";
380 bool withInitParameters)
385 if (withInitParameters)
390 if (!withInitParameters)
408 const int parenPos =
s.signature.indexOf(
QLatin1Char(
'('));
413 s.signature.size() - parenPos - 2);
414 const bool withOverload = useQOverload ==
UseOverload ||
418 str <<
"qOverload<" << parameters <<
">(";
420 str <<
'&' <<
s.className <<
"::" << functionName;
427 const SignalSlot &sender,
428 const SignalSlot &receiver)
430 str <<
"QObject::connect(" << sender.name <<
", ";
431 formatMemberFnPtr(
str, sender);
432 str <<
", " << receiver.name <<
", ";
438 const SignalSlot &sender,
439 const SignalSlot &receiver)
441 str <<
"QObject::connect(" << sender.name <<
", SIGNAL("<< sender.signature
442 <<
"), " << receiver.name <<
", SLOT(" << receiver.signature <<
"))";
452 formatMemberFnPtrConnection(
str, sender, receiver);
455 formatStringBasedConnection(
str, sender, receiver);
462 str << sender.
name <<
'.' << senderSignature.
left(paren);
467 senderSignature.
mid(paren + 1, senderSignature.size() - paren - 2);
469 str <<
"[\"" << parameters <<
"\"]";
471 str <<
".connect(" << receiver.
name <<
'.'
small capitals from c petite p scientific f u
small capitals from c petite p scientific i
[1]
The QByteArray class provides an array of bytes.
const_iterator cbegin() const noexcept
const_iterator cend() const noexcept
The QChar class provides a 16-bit Unicode character.
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal.
The QString class provides a Unicode character string.
const_iterator cbegin() const
QString left(qsizetype n) const
static QString static QString qsizetype indexOf(QChar c, qsizetype from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QStrin...
bool contains(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
constexpr bool isEmpty() const noexcept
constexpr QStringView left(qsizetype n) const noexcept
constexpr QStringView mid(qsizetype pos, qsizetype n=-1) const noexcept
The QTextStream class provides a convenient interface for reading and writing text.
endFunctionDefinition(const char *name)
startFunctionDefinition1(const char *name, const QString ¶meterType, const QString ¶meterName, const QString &indent, const char *returnType=nullptr)
QTextStream & fixed(QTextStream &stream)
QString enumValue(const QString &value)
const char * toolbarArea(int v)
const char * dockWidgetArea(int v)
void _formatStackVariable(QTextStream &str, const char *className, QStringView varName, bool withInitParameters)
void _formatString(QTextStream &str, const QString &value, const QString &indent, bool qString)
void setLanguage(Language l)
ConnectionSyntax connectionSyntax()
@ UseOverloadWhenNoArguments
const char * sizePolicy(int v)
QString fixClassName(QString className)
const char * paletteColorRole(int v)
QTextStream & operator<<(QTextStream &str, const qtConfig &c)
void formatConnection(QTextStream &str, const SignalSlot &sender, const SignalSlot &receiver, ConnectionSyntax connectionSyntax)
const char * lookupEnum(const EnumLookup(&array)[N], int value, int defaultIndex=0)
QString boolValue(bool v)
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 abits op endm macro pixldst3 mem_operand op endm macro pixldst30 mem_operand op endm macro pixldst abits if abits elseif abits elseif abits elseif abits elseif abits pixldst0 abits else pixldst0 abits pixldst0 abits pixldst0 abits pixldst0 abits endif elseif abits else pixldst0 abits pixldst0 abits endif elseif abits else error unsupported bpp *numpix else pixst endif endm macro vuzp8 reg2 vuzp d d ®2 endm macro vzip8 reg2 vzip d d ®2 endm macro pixdeinterleave basereg basereg basereg basereg basereg endif endm macro pixinterleave basereg basereg basereg basereg basereg endif endm macro PF boost_increment endif if endif PF tst PF addne PF subne PF cmp ORIG_W if endif if endif if endif PF subge ORIG_W PF subges if endif if endif if endif endif endm macro cache_preload_simple endif if dst_r_bpp pld[DST_R, #(PREFETCH_DISTANCE_SIMPLE *dst_r_bpp/8)] endif if mask_bpp pld if[MASK, #(PREFETCH_DISTANCE_SIMPLE *mask_bpp/8)] endif endif endm macro ensure_destination_ptr_alignment process_pixblock_tail_head if beq irp skip1(dst_w_bpp<=(lowbit *8)) &&((lowbit *8)<(pixblock_size *dst_w_bpp)) .if lowbit< 16 tst DST_R
[3]
EGLOutputLayerEXT EGLint EGLAttrib value
QT_BEGIN_INCLUDE_NAMESPACE typedef unsigned char uchar
GLenum GLuint GLenum GLsizei length
GLsizei const GLfloat * v
[13]
#define QStringLiteral(str)
const char className[16]
[1]
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
SignalSlotOptions options