…ths.h" #include <grantlee_core.h> /** Don't escape the code generation output. 'const QString &' should not become 'const QString &' */ class NoEscapeOutputStream : public Grantlee :: OutputStream { public: NoEscapeOutputStream () : Grantlee :: OutputStream () { } NoEscapeOut…
… word Früh (which means "early" in German) could be used as a variable name. js const Früh = "foobar"; But, the variable früh is not the same as Früh because JavaScript is case sensitive. In JavaScript, instructions are called statements and are separated by semicolons (;). A sem…
…ression - use : between the parameter list and the return type rather than => . Construct Signatures JavaScript functions can also be invoked with the new operator. TypeScript refers to these as constructors because they usually create a new object. You can write a construct sign…
…example with and without bind() : js class Something { name = "Something Good"; constructor(element) { // bind causes a fixed `this` context to be assigned to `onclick2` this.onclick2 = this.onclick2.bind(this); element.addEventListener("click", this.onclick1); element.addEventLi…
…e number Diff line number Diff line @@ -152,7 +152,7 @@ void Core::initHeadless(const QUrl &url) connect this Core :: displayBinLogMessage this []( QString text int QString qInfo () << QStringLiteral "Bin message: " << text }); void Core :: initGUI const QString MltPath const QUr…
…e number Diff line number Diff line @@ -152,7 +152,7 @@ void Core::initHeadless(const QUrl &url) connect this Core :: displayBinLogMessage this []( QString text int QString qInfo () << QStringLiteral "Bin message: " << text }); void Core :: initGUI const QString MltPath const QUr…
… } from '@wordpress/block-editor'; import { useSelect } from '@wordpress/data'; const ExampleComponent = () => { // This example assumes that a core/embed block is the first block in the Block Editor. const activeBlockVariation = useSelect( ( select ) => { // Retrieve the list of…
… defineComponent, ref } from vue import { CdxMenuButton } from @wikimedia/codex const menuItems { label Edit , value edit }, { label , value }, { label , value , disabled true }, { label Share , value share }, { label Delete , value delete , action destructive ]; export default d…
… defineComponent, ref } from vue import { CdxMenuButton } from @wikimedia/codex const menuItems { label Edit , value edit }, { label , value }, { label , value , disabled true }, { label Share , value share }, { label Delete , value delete , action destructive ]; export default d…
…gend Collaboration diagram for WANObjectCache: legend Public Member Functions __construct (array $params) adaptiveTTL ( $mtime, $maxTTL, $minTTL=30, $factor=0.2) Get a TTL that is higher for objects that have not changed recently. clearLastError () Clear the "last error" registry…
…signed to all instances of objects created by the given function when used as a constructor. We will discuss the prototype property of constructor functions in a later section . There are several ways to specify the [[Prototype]] of an object, which are listed in a later section …
…resetDialog::slotUpdateParams() break case RenderPresetParams :: RateControl :: Constrained if vcodec startsWith "libx264" || vcodec startsWith "libvpx" || vcodec startsWith "libaom-" )) if vcodec startsWith "libx264" || vcodec startsWith "libvpx" || vcodec startsWith "libaom-" |…
…FolderBeIndexed_data() QTest :: addColumn < bool > ( "shouldBeIndexed" ); for ( const auto & key : indexed ) { QVERIFY2 ( QFileInfo ( m_dirPrefix + key ). isDir (), qPrintable ( QStringLiteral ( "Not a folder: %1" ). arg ( m_dirPrefix + key ))); QTest :: addRow ( "%s" , qPrintabl…
…IconEllipsis " ></ cdx-icon > </ cdx-button > </ div > </ template > < script > const { defineComponent } = require ( ' vue ' ); const { CdxButton, CdxIcon } = require ( ' @wikimedia/codex ' ); const { cdxIconEllipsis } = require ( ' ./icons.json ' ); module . exports = defineCom…
…other behavior is unchanged. </ p > </ cdx-accordion > </ template > < script > const { defineComponent } = require ( ' vue ' ); const { CdxAccordion } = require ( ' @wikimedia/codex ' ); module . exports = defineComponent ( { name : ' AccordionDefault ' , components : { CdxAccor…