summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteInserter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:05:43 -0600
commitfb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca (patch)
tree5785d2ccbdfbe2f44d02fec75b4a51f5079a4b62 /src/gui/editors/notation/NoteInserter.cpp
parentacf699af8244896500e654cccdc8aae7e5b545db (diff)
downloadrosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.tar.gz
rosegarden-fb3718a55f355cd22f9eb9fa4e89cd3b84b8c9ca.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/gui/editors/notation/NoteInserter.cpp')
-rw-r--r--src/gui/editors/notation/NoteInserter.cpp20
1 files changed, 10 insertions, 10 deletions
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<KToggleAction *>
+ TDEToggleAction *dotsAction = dynamic_cast<TDEToggleAction *>
(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 {