From fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:05:43 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- src/gui/editors/notation/NoteInserter.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/gui/editors/notation/NoteInserter.cpp') diff --git a/src/gui/editors/notation/NoteInserter.cpp b/src/gui/editors/notation/NoteInserter.cpp index 3db308f..932b2cf 100644 --- a/src/gui/editors/notation/NoteInserter.cpp +++ b/src/gui/editors/notation/NoteInserter.cpp @@ -78,8 +78,8 @@ NoteInserter::NoteInserter(NotationView* view) m_defaultStyle = qstrtostr(config->readEntry ("style", strtoqstr(NoteStyleFactory::DefaultStyle))); - KToggleAction *autoBeamAction = - new KToggleAction(i18n("Auto-Beam when appropriate"), 0, this, + TDEToggleAction *autoBeamAction = + new TDEToggleAction(i18n("Auto-Beam when appropriate"), 0, this, TQT_SLOT(slotToggleAutoBeam()), actionCollection(), "toggle_auto_beam"); autoBeamAction->setChecked(m_autoBeam); @@ -89,7 +89,7 @@ NoteInserter::NoteInserter(NotationView* view) icon = TQIconSet (NotePixmapFactory::toTQPixmap(NotePixmapFactory:: makeToolbarPixmap(m_actionsAccidental[i][3]))); - KRadioAction* noteAction = new KRadioAction(i18n(m_actionsAccidental[i][0]), + TDERadioAction* noteAction = new TDERadioAction(i18n(m_actionsAccidental[i][0]), icon, 0, this, m_actionsAccidental[i][1], actionCollection(), @@ -100,24 +100,24 @@ NoteInserter::NoteInserter(NotationView* view) icon = TQIconSet (NotePixmapFactory::toTQPixmap(NotePixmapFactory:: makeToolbarPixmap("dotted-crotchet"))); - new KToggleAction(i18n("Dotted note"), icon, 0, this, + new TDEToggleAction(i18n("Dotted note"), icon, 0, this, TQT_SLOT(slotToggleDot()), actionCollection(), "toggle_dot"); icon = TQIconSet(NotePixmapFactory::toTQPixmap(NotePixmapFactory:: makeToolbarPixmap("select"))); - new KAction(i18n("Switch to Select Tool"), icon, 0, this, + new TDEAction(i18n("Switch to Select Tool"), icon, 0, this, TQT_SLOT(slotSelectSelected()), actionCollection(), "select"); - new KAction(i18n("Switch to Erase Tool"), "eraser", 0, this, + new TDEAction(i18n("Switch to Erase Tool"), "eraser", 0, this, TQT_SLOT(slotEraseSelected()), actionCollection(), "erase"); icon = TQIconSet (NotePixmapFactory::toTQPixmap(NotePixmapFactory:: makeToolbarPixmap("rest-crotchet"))); - new KAction(i18n("Switch to Inserting Rests"), icon, 0, this, + new TDEAction(i18n("Switch to Inserting Rests"), icon, 0, this, TQT_SLOT(slotRestsSelected()), actionCollection(), "rests"); @@ -606,7 +606,7 @@ void NoteInserter::slotSetDots(unsigned int dots) { m_noteDots = dots; - KToggleAction *dotsAction = dynamic_cast + TDEToggleAction *dotsAction = dynamic_cast (actionCollection()->action("toggle_dot")); if (dotsAction) dotsAction->setChecked(dots > 0); @@ -662,7 +662,7 @@ void NoteInserter::slotToggleDot() Note note(m_noteType, m_noteDots); TQString actionName(NotationStrings::getReferenceName(note)); actionName.replace(TQRegExp("-"), "_"); - KAction *action = m_parentView->actionCollection()->action(actionName.ascii()); + TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii()); if (!action) { std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl; } else { @@ -690,7 +690,7 @@ void NoteInserter::slotRestsSelected() Note note(m_noteType, m_noteDots); TQString actionName(NotationStrings::getReferenceName(note, true)); actionName.replace(TQRegExp("-"), "_"); - KAction *action = m_parentView->actionCollection()->action(actionName.ascii()); + TDEAction *action = m_parentView->actionCollection()->action(actionName.ascii()); if (!action) { std::cerr << "WARNING: No such action as " << actionName.ascii() << std::endl; } else { -- cgit v1.2.1