File: VariantEncoderExample.cpp

package info (click to toggle)
sonic-visualiser 2.5~repack1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,596 kB
  • ctags: 9,853
  • sloc: cpp: 93,843; ansic: 1,138; sh: 1,012; xml: 64; makefile: 35
file content (29 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

/* Bits pulled out from Node.cpp during tidying -- not a useful example yet */

/*!!! move this (and converse) to examples/ as example of encoder registration
static
QString
qTimeToXsdDuration(QTime t)
{
    if (t.hour() != 0) {
        return
            QString("PT%1H%2M%3S")
            .arg(t.hour())
            .arg(t.minute())
            .arg(t.second() + double(t.msec())/1000.0);
    } else if (t.minute() != 0) {
        return
            QString("PT%1M%2S")
            .arg(t.minute())
            .arg(t.second() + double(t.msec())/1000.0);
    } else {
        return
            QString("PT%1S")
            .arg(t.second() + double(t.msec())/1000.0);
    }
}
*/