MCPcopy Create free account
hub / github.com/davy7125/polyphone / toString

Method toString

sources/player/playeroptions.cpp:103–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103QString PlayerOptions::toString()
104{
105 // Channel
106 QString partChannel = "";
107 if (_playerChannel == -1)
108 partChannel = "all";
109 else
110 partChannel = QString::number(_playerChannel + 1);
111
112 // Multiple selection
113 QString partMultipleSelection = _playerMultipleSelection ? "on" : "off";
114
115 // Preset selection
116 QString partPresetSelection = "";
117 switch (_playerKeySelection)
118 {
119 case 1:
120 partPresetSelection = "on";
121 break;
122 case 2:
123 partPresetSelection = "toggle";
124 break;
125 case 0: default:
126 partPresetSelection = "off";
127 break;
128 }
129
130 return partChannel + "|" + partMultipleSelection + "|" + partPresetSelection;
131}

Callers 1

dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected