~ubuntu-branches/ubuntu/trusty/muse/trusty

« back to all changes in this revision

Viewing changes to muse/widgets/pitchlabel.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2013-08-28 16:25:57 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20130828162557-27ulrksfvm64td50
Tags: 2.1.2-1
* New upstream bugfix release.
* Refresh patches.
* Fix doc links.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
      setMidLineWidth(3);
45
45
      setValue(0);
46
46
      //int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0
47
 
      int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); 
 
47
      int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
48
48
      setIndent(fw);
 
49
      //setContentsMargins(0,0,0,0);  
49
50
      }
50
51
 
51
52
//---------------------------------------------------------
65
66
      {
66
67
      QFontMetrics fm(font());
67
68
      //int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, 0, this); // ddskrjo 0
68
 
      int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth); 
 
69
      int fw = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
69
70
      int h  = fm.height() + fw * 2;
70
71
//      int w = 2 + fm.width(QString("A#8")) +  fw * 4;
71
 
      int w = 2 + fm.width(QString("-9999")) + fw * 4;     // must display 14Bit controller values
 
72
      int w = fm.width(QString("-9999")) + fw * 2;     // must display 14Bit controller values
72
73
      return QSize(w, h).expandedTo(QApplication::globalStrut());
73
74
      }
74
75