LCOV - code coverage report
Current view: top level - muse/framework/uicomponents/qml/Muse/UiComponents/internal - polylinepointstyle.cpp Coverage Total Hit
Test: filtered_coverage.info Lines: 0.0 % 87 0
Test Date: 2026-11-05 04:07:02

            Line data    Source code
       1              : /*
       2              :  * SPDX-License-Identifier: GPL-3.0-only
       3              :  * MuseScore-CLA-applies
       4              :  *
       5              :  * MuseScore Studio
       6              :  * Music Composition & Notation
       7              :  *
       8              :  * Copyright (C) 2026 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 "polylinepointstyle.h"
      24              : 
      25              : using namespace muse::uicomponents;
      26              : 
      27            0 : PolylinePointStyle::PolylinePointStyle(QObject* parent)
      28            0 :     : QObject(parent)
      29              : {
      30            0 : }
      31              : 
      32            0 : qreal PolylinePointStyle::centerRadius() const
      33              : {
      34            0 :     return m_centerRadius;
      35              : }
      36              : 
      37            0 : void PolylinePointStyle::setCenterRadius(qreal r)
      38              : {
      39            0 :     if (m_centerRadius == r) {
      40            0 :         return;
      41              :     }
      42              : 
      43            0 :     m_centerRadius = r;
      44            0 :     emit styleChanged();
      45              : }
      46              : 
      47            0 : qreal PolylinePointStyle::centerRadiusHovered() const
      48              : {
      49            0 :     return m_centerRadiusHovered;
      50              : }
      51              : 
      52            0 : void PolylinePointStyle::setCenterRadiusHovered(qreal r)
      53              : {
      54            0 :     if (m_centerRadiusHovered == r) {
      55            0 :         return;
      56              :     }
      57              : 
      58            0 :     m_centerRadiusHovered = r;
      59            0 :     emit styleChanged();
      60              : }
      61              : 
      62            0 : QColor PolylinePointStyle::centerColor() const
      63              : {
      64            0 :     return m_centerColor;
      65              : }
      66              : 
      67            0 : void PolylinePointStyle::setCenterColor(const QColor& c)
      68              : {
      69            0 :     if (m_centerColor == c) {
      70            0 :         return;
      71              :     }
      72              : 
      73            0 :     m_centerColor = c;
      74            0 :     emit styleChanged();
      75              : }
      76              : 
      77            0 : QColor PolylinePointStyle::centerColorHovered() const
      78              : {
      79            0 :     return m_centerColorHovered;
      80              : }
      81              : 
      82            0 : void PolylinePointStyle::setCenterColorHovered(const QColor& c)
      83              : {
      84            0 :     if (m_centerColorHovered == c) {
      85            0 :         return;
      86              :     }
      87              : 
      88            0 :     m_centerColorHovered = c;
      89            0 :     emit styleChanged();
      90              : }
      91              : 
      92            0 : qreal PolylinePointStyle::middleRingWidth() const
      93              : {
      94            0 :     return m_middleRingWidth;
      95              : }
      96              : 
      97            0 : void PolylinePointStyle::setMiddleRingWidth(qreal w)
      98              : {
      99            0 :     if (m_middleRingWidth == w) {
     100            0 :         return;
     101              :     }
     102              : 
     103            0 :     m_middleRingWidth = w;
     104            0 :     emit styleChanged();
     105              : }
     106              : 
     107            0 : qreal PolylinePointStyle::middleRingWidthHovered() const
     108              : {
     109            0 :     return m_middleRingWidthHovered;
     110              : }
     111              : 
     112            0 : void PolylinePointStyle::setMiddleRingWidthHovered(qreal w)
     113              : {
     114            0 :     if (m_middleRingWidthHovered == w) {
     115            0 :         return;
     116              :     }
     117              : 
     118            0 :     m_middleRingWidthHovered = w;
     119            0 :     emit styleChanged();
     120              : }
     121              : 
     122            0 : QColor PolylinePointStyle::middleRingColor() const
     123              : {
     124            0 :     return m_middleRingColor;
     125              : }
     126              : 
     127            0 : void PolylinePointStyle::setMiddleRingColor(const QColor& c)
     128              : {
     129            0 :     if (m_middleRingColor == c) {
     130            0 :         return;
     131              :     }
     132              : 
     133            0 :     m_middleRingColor = c;
     134            0 :     emit styleChanged();
     135              : }
     136              : 
     137            0 : QColor PolylinePointStyle::middleRingColorHovered() const
     138              : {
     139            0 :     return m_middleRingColorHovered;
     140              : }
     141              : 
     142            0 : void PolylinePointStyle::setMiddleRingColorHovered(const QColor& c)
     143              : {
     144            0 :     if (m_middleRingColorHovered == c) {
     145            0 :         return;
     146              :     }
     147              : 
     148            0 :     m_middleRingColorHovered = c;
     149            0 :     emit styleChanged();
     150              : }
     151              : 
     152            0 : qreal PolylinePointStyle::outlineWidth() const
     153              : {
     154            0 :     return m_outlineWidth;
     155              : }
     156              : 
     157            0 : void PolylinePointStyle::setOutlineWidth(qreal w)
     158              : {
     159            0 :     if (m_outlineWidth == w) {
     160            0 :         return;
     161              :     }
     162              : 
     163            0 :     m_outlineWidth = w;
     164            0 :     emit styleChanged();
     165              : }
     166              : 
     167            0 : qreal PolylinePointStyle::outlineWidthHovered() const
     168              : {
     169            0 :     return m_outlineWidthHovered;
     170              : }
     171              : 
     172            0 : void PolylinePointStyle::setOutlineWidthHovered(qreal w)
     173              : {
     174            0 :     if (m_outlineWidthHovered == w) {
     175            0 :         return;
     176              :     }
     177              : 
     178            0 :     m_outlineWidthHovered = w;
     179            0 :     emit styleChanged();
     180              : }
     181              : 
     182            0 : QColor PolylinePointStyle::outlineColor() const
     183              : {
     184            0 :     return m_outlineColor;
     185              : }
     186              : 
     187            0 : void PolylinePointStyle::setOutlineColor(const QColor& c)
     188              : {
     189            0 :     if (m_outlineColor == c) {
     190            0 :         return;
     191              :     }
     192              : 
     193            0 :     m_outlineColor = c;
     194            0 :     emit styleChanged();
     195              : }
     196              : 
     197            0 : QColor PolylinePointStyle::outlineColorHovered() const
     198              : {
     199            0 :     return m_outlineColorHovered;
     200              : }
     201              : 
     202            0 : void PolylinePointStyle::setOutlineColorHovered(const QColor& c)
     203              : {
     204            0 :     if (m_outlineColorHovered == c) {
     205            0 :         return;
     206              :     }
     207              : 
     208            0 :     m_outlineColorHovered = c;
     209            0 :     emit styleChanged();
     210              : }
        

Generated by: LCOV version 2.0-1