MCPcopy Create free account
hub / github.com/KDE/kdevelop / pointerAlignChanged

Method pointerAlignChanged

plugins/astyle/astyle_preferences.cpp:400–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void AStylePreferences::pointerAlignChanged()
401{
402 if(!m_enableWidgetSignals)
403 return;
404 switch (cbPointerAlign->currentIndex()) {
405 case POINTERALIGN_NAME:
406 m_formatter->setPointerAlignment(astyle::PTR_ALIGN_NAME);
407 break;
408 case POINTERALIGN_TYPE:
409 m_formatter->setPointerAlignment(astyle::PTR_ALIGN_TYPE);
410 break;
411 case POINTERALIGN_MIDDLE:
412 m_formatter->setPointerAlignment(astyle::PTR_ALIGN_MIDDLE);
413 break;
414 default:
415 case POINTERALIGN_NOCHANGE:
416 m_formatter->setPointerAlignment(astyle::PTR_ALIGN_NONE);
417 break;
418 }
419
420 updatePreviewText();
421}
422
423void AStylePreferences::afterParensChanged()
424{

Callers

nothing calls this directly

Calls 2

currentIndexMethod · 0.45
setPointerAlignmentMethod · 0.45

Tested by

no test coverage detected