diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-02 22:38:52 +0000 |
commit | 458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch) | |
tree | 624583f2873febe23770bee3fa94b5c24bd59f4f /src/test | |
parent | 747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff) | |
download | rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip |
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/segmenttransposecommand.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/test/segmenttransposecommand.cpp b/src/test/segmenttransposecommand.cpp index 0025529..710ca30 100644 --- a/src/test/segmenttransposecommand.cpp +++ b/src/test/segmenttransposecommand.cpp @@ -21,10 +21,10 @@ int testSegmentBbtoF() Event * bes = n->getAsNoteEvent(1, 10); segment1->insert(bes); segment1->insert(Key("Bb major").getAsEvent(0)); - SegmentTransposeCommand * mockCommand = + SegmentTransposeCommand * tqmockCommand = new SegmentTransposeCommand(*segment1, true, -3, -5, true); - mockCommand->execute(); + tqmockCommand->execute(); EventSelection m_selection(*segment1, segment1->getStartTime(), segment1->getEndMarkerTime()); EventSelection::eventcontainer::iterator i; @@ -58,10 +58,10 @@ int testGistoAis() Event * gis = n->getAsNoteEvent(1, 8); segment1->insert(gis); segment1->insert(Key("E major").getAsEvent(0)); - SegmentTransposeCommand * mockCommand = + SegmentTransposeCommand * tqmockCommand = new SegmentTransposeCommand(*segment1, true, 1, 2, true); - mockCommand->execute(); + tqmockCommand->execute(); EventSelection m_selection(*segment1, segment1->getStartTime(), segment1->getEndMarkerTime()); EventSelection::eventcontainer::iterator i; @@ -93,10 +93,10 @@ int testSegmentCisToC() Event * cis = n->getAsNoteEvent(1, 13); segment1->insert(cis); segment1->insert(Key("C# major").getAsEvent(0)); - SegmentTransposeCommand * mockCommand = + SegmentTransposeCommand * tqmockCommand = new SegmentTransposeCommand(*segment1, true, 0, -1, true); - mockCommand->execute(); + tqmockCommand->execute(); EventSelection m_selection(*segment1, segment1->getStartTime(), segment1->getEndMarkerTime()); EventSelection::eventcontainer::iterator i; @@ -124,29 +124,29 @@ int testUndo() Segment * segment2 = new Segment(); // transpose once - SegmentTransposeCommand * mockCommand1a = + SegmentTransposeCommand * tqmockCommand1a = new SegmentTransposeCommand(*segment1, true, -1, -2, true); - mockCommand1a->execute(); - SegmentTransposeCommand * mockCommand1b = + tqmockCommand1a->execute(); + SegmentTransposeCommand * tqmockCommand1b = new SegmentTransposeCommand(*segment2, true, -1, -2, true); - mockCommand1b->execute(); + tqmockCommand1b->execute(); // transpose twice - SegmentTransposeCommand * mockCommand2a = + SegmentTransposeCommand * tqmockCommand2a = new SegmentTransposeCommand(*segment1, true, -1, -2, true); - mockCommand2a->execute(); - SegmentTransposeCommand * mockCommand2b = + tqmockCommand2a->execute(); + SegmentTransposeCommand * tqmockCommand2b = new SegmentTransposeCommand(*segment2, true, -1, -2, true); - mockCommand2b->execute(); + tqmockCommand2b->execute(); - mockCommand2b->unexecute(); - mockCommand2a->unexecute(); - mockCommand1b->unexecute(); - mockCommand1a->unexecute(); + tqmockCommand2b->unexecute(); + tqmockCommand2a->unexecute(); + tqmockCommand1b->unexecute(); + tqmockCommand1a->unexecute(); return 0; } |