~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/master/tscale.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.1.12) (10.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120718160706-qy1lydijykeiqqmg
Tags: 2.0-1
* New stable release.
* debian/rules: Exclude muse/widgets/arrangercolumns.{cpp,h}~ from being
  deleted by dh_clean.
* Drop 0002-gcc_hardening.patch, applied upstream.
* Drop 0003-ftbfs_gcc47.patch, applied upstream.
* Refresh 1001-buildsystem.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
   : View(parent, 1, ymag)
39
39
      {
40
40
      setFont(MusEGlobal::config.fonts[5]);
41
 
      //int w = 4 * QFontMetrics(MusEGlobal::config.fonts[4]).width('0');
42
41
      int w = 4 * fontMetrics().width('0');
43
42
      setFixedWidth(w);
44
43
      setMouseTracking(true);
52
51
      {
53
52
      int y = r.y();
54
53
      int h = r.height();
55
 
      //p.setFont(MusEGlobal::config.fonts[4]);
56
54
      QString s;
57
55
      for (int i = 30000; i <= 250000; i += 10000) {
58
56
            int yy =  mapy(280000 - i);
62
60
                  continue;
63
61
            p.drawLine(0, yy, width(), yy);
64
62
            s.setNum(i/1000);
65
 
            //QFontMetrics fm(MusEGlobal::config.fonts[4]);
66
 
            //p.drawText(width() - fm.width(s) - 1, yy-2, s);
67
63
            p.drawText(width() - fontMetrics().width(s) - 1, yy-2, s);  // Use the window font. Tim p4.0.31
68
64
            }
69
65
      }