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

void RosegardenGUIApp::slotTestClipboard (  )  [slot]

A command has happened; check the clipboard in case we need to change state

Definition at line 5742 of file rosegardengui.cpp.

References Rosegarden::Clipboard::isEmpty(), and Rosegarden::Clipboard::isSingleSegment().

Referenced by RosegardenGUIApp(), and setDocument().

{
    if (m_clipboard->isEmpty()) {
        stateChanged("have_clipboard", KXMLGUIClient::StateReverse);
        stateChanged("have_clipboard_single_segment",
                     KXMLGUIClient::StateReverse);
    } else {
        stateChanged("have_clipboard", KXMLGUIClient::StateNoReverse);
        stateChanged("have_clipboard_single_segment",
                     (m_clipboard->isSingleSegment() ?
                      KXMLGUIClient::StateNoReverse :
                      KXMLGUIClient::StateReverse));
    }
}


Generated by  Doxygen 1.6.0   Back to index