~ubuntu-branches/ubuntu/karmic/muse/karmic-proposed

« back to all changes in this revision

Viewing changes to widgets/vscale.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2002-04-23 17:28:23 UTC
  • Revision ID: james.westby@ubuntu.com-20020423172823-w8yplzr81a759xa3
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//=========================================================
 
2
//  MusE
 
3
//  Linux Music Editor
 
4
//    $Id: vscale.cpp,v 1.1 2002/01/30 14:54:04 muse Exp $
 
5
//  (C) Copyright 1999 Werner Schweer (ws@seh.de)
 
6
//=========================================================
 
7
 
 
8
#include "vscale.h"
 
9
#include <qpainter.h>
 
10
 
 
11
//---------------------------------------------------------
 
12
//   paintEvent
 
13
//---------------------------------------------------------
 
14
 
 
15
void VScale::paintEvent(QPaintEvent*)
 
16
      {
 
17
      int h = height();
 
18
      int w = width();
 
19
      QPainter p(this);
 
20
      p.drawLine(w/2, h/4, w, h/4);
 
21
      p.drawLine(0, h/2, w, h/2);
 
22
      p.drawLine(w/2, (3*h)/4, w, (3*h)/4);
 
23
      setFixedWidth(18);
 
24
      }
 
25