| 398 | } |
| 399 | |
| 400 | void 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 | |
| 423 | void AStylePreferences::afterParensChanged() |
| 424 | { |
nothing calls this directly
no test coverage detected