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

« back to all changes in this revision

Viewing changes to muse/widgets/vscale.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-08-12 11:16:41 UTC
  • mto: (1.1.9) (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110812111641-72iatqb9jomjejko
ImportĀ upstreamĀ versionĀ 2.0~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
//=========================================================
7
7
 
8
8
#include "vscale.h"
9
 
#include <qpainter.h>
 
9
 
 
10
#include <QPainter>
 
11
#include <QPaintEvent>
10
12
 
11
13
//---------------------------------------------------------
12
14
//   paintEvent
16
18
      {
17
19
      int h = height();
18
20
      int w = width();
19
 
      QPainter p(this);
 
21
      QPainter p;
 
22
      p.begin(this);
20
23
      p.drawLine(w/2, h/4, w, h/4);
21
24
      p.drawLine(0, h/2, w, h/2);
22
25
      p.drawLine(w/2, (3*h)/4, w, (3*h)/4);
23
 
      setFixedWidth(18);
 
26
      p.end();
24
27
      }
25
28