LCOV - code coverage report
Current view: top level - src/engraving/editing - editscoreproperties.cpp Coverage Total Hit
Test: filtered_coverage.info Lines: 21.7 % 23 5
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-Studio-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2021 MuseScore Limited and others
       9              :  *
      10              :  * This program is free software: you can redistribute it and/or modify
      11              :  * it under the terms of the GNU General Public License version 3 as
      12              :  * published by the Free Software Foundation.
      13              :  *
      14              :  * This program is distributed in the hope that it will be useful,
      15              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      16              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      17              :  * GNU General Public License for more details.
      18              :  *
      19              :  * You should have received a copy of the GNU General Public License
      20              :  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
      21              :  */
      22              : 
      23              : #include "editscoreproperties.h"
      24              : 
      25              : #include "../dom/score.h"
      26              : #include "../dom/scoreorder.h"
      27              : 
      28              : using namespace mu::engraving;
      29              : 
      30              : //---------------------------------------------------------
      31              : //   ChangeMetaTags
      32              : //---------------------------------------------------------
      33              : 
      34            0 : void ChangeMetaTags::flip()
      35              : {
      36            0 :     std::map<String, String> t = score->metaTags();
      37            0 :     score->setMetaTags(metaTags);
      38            0 :     score->setLayoutAll();
      39            0 :     metaTags = t;
      40            0 : }
      41              : 
      42              : //---------------------------------------------------------
      43              : //   ChangeMetaText
      44              : //---------------------------------------------------------
      45              : 
      46            0 : void ChangeMetaText::flip()
      47              : {
      48            0 :     String s = score->metaTag(id);
      49            0 :     score->setMetaTag(id, text);
      50            0 :     score->setLayoutAll();
      51            0 :     text = s;
      52            0 : }
      53              : 
      54              : //---------------------------------------------------------
      55              : //   ChangeScoreOrder
      56              : //---------------------------------------------------------
      57              : 
      58            3 : void ChangeScoreOrder::flip()
      59              : {
      60            3 :     ScoreOrder s = score->scoreOrder();
      61            3 :     score->setScoreOrder(order);
      62            3 :     order = s;
      63            3 : }
      64              : 
      65              : //---------------------------------------------------------
      66              : //   ChangePageNumberOffset
      67              : //---------------------------------------------------------
      68              : 
      69            0 : void ChangePageNumberOffset::flip()
      70              : {
      71            0 :     int po = score->pageNumberOffset();
      72              : 
      73            0 :     score->setPageNumberOffset(pageOffset);
      74            0 :     score->setLayoutAll();
      75              : 
      76            0 :     pageOffset = po;
      77            0 : }
        

Generated by: LCOV version 2.0-1