Logo Search packages:      
Sourcecode: canorus version File versions  Download package

void CAMainWin::on_uiStanzaNumber_valueChanged ( int  stanzaNumber  )  [private, slot]

Sets the stanza number of the current lyrics context.

Definition at line 3913 of file mainwin.cpp.

References currentContext().

                                                               {
      if (currentContext() && currentContext()->contextType()==CAContext::LyricsContext) {
            CACanorus::undo()->createUndoCommand( document(), tr("change stanza number", "undo") );
            if (static_cast<CALyricsContext*>(currentContext())->stanzaNumber()!=stanzaNumber)
                  CACanorus::undo()->pushUndoCommand();
            static_cast<CALyricsContext*>(currentContext())->setStanzaNumber( stanzaNumber );
      }
}


Generated by  Doxygen 1.6.0   Back to index