MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initConnection

Method initConnection

src/plugins/chat/widgets/codeeditcomponent.cpp:276–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void CodeEditComponent::initConnection()
277{
278 connect(copyButton, &DPushButton::clicked, this, &CodeEditComponent::onCopyBtnClicked);
279 connect(insertButton, &DPushButton::clicked, this, &CodeEditComponent::onInsertBtnClicked);
280 connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [=](DGuiApplicationHelper::ColorType theme) {
281 if (theme == DGuiApplicationHelper::LightType)
282 highLighter->setTheme(rep.defaultTheme(KSyntaxHighlighting::Repository::LightTheme));
283 else
284 highLighter->setTheme(rep.defaultTheme(KSyntaxHighlighting::Repository::DarkTheme));
285 });
286}

Callers

nothing calls this directly

Calls 2

connectFunction · 0.85
setThemeMethod · 0.80

Tested by

no test coverage detected