avoid warnings reg. unused variables
This commit is contained in:
parent
836db56543
commit
5a9b6395de
8 changed files with 16 additions and 0 deletions
|
@ -206,7 +206,9 @@ void Slider::paintEvent(QPaintEvent* ev)
|
|||
if ((orient == Qt::Vertical && _invert) || (orient == Qt::Horizontal && !_invert))
|
||||
ppos = pixel - ppos;
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
QRect rr(ev->rect());
|
||||
#endif
|
||||
QPainter p(this);
|
||||
|
||||
QColor sc(isEnabled() ? _scaleColor : Qt::gray);
|
||||
|
|
|
@ -29,7 +29,9 @@ static const NoteHeadType NOTEHEADTYPE_DEFAULT = NoteHeadType::HEAD_AUTO;
|
|||
static const DirectionH DIR_DEFAULT = DirectionH::DH_AUTO;
|
||||
static const bool HASLINE_DEFAULT = true;
|
||||
static const qreal LINEWIDTH_DEFAULT = 0.12;
|
||||
#if 0 // yet(?) unused
|
||||
static const qreal LEDGEROFFSET_DEFAULT = 0.25;
|
||||
#endif
|
||||
static const qreal LINEOFFSET_DEFAULT = 0.8; // the distance between note head and line
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -480,8 +480,10 @@ static int penalty(int lof1, int lof2, int k)
|
|||
}
|
||||
|
||||
static const int WINDOW = 9;
|
||||
#if 1 // yet(?) unused
|
||||
static const int WINDOW_SHIFT = 3;
|
||||
static const int ASIZE = 1024; // 2 ** WINDOW
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------
|
||||
// computeWindow
|
||||
|
|
|
@ -1470,7 +1470,9 @@ void Slur::layoutChord()
|
|||
QPointF off1(xo1, yo);
|
||||
QPointF off2(0.0, yo);
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
QPointF ppos(pagePos());
|
||||
#endif
|
||||
|
||||
// TODO: cleanup
|
||||
|
||||
|
|
|
@ -361,7 +361,9 @@ void Tie::layout()
|
|||
QPointF off1(xo1, yo);
|
||||
QPointF off2(0.0, yo);
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
QPointF ppos(pagePos());
|
||||
#endif
|
||||
|
||||
// TODO: cleanup
|
||||
|
||||
|
|
|
@ -28,8 +28,10 @@
|
|||
|
||||
namespace Ms {
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
const int MIN_VOL = -60;
|
||||
const int MAX_VOL = 10;
|
||||
#endif
|
||||
|
||||
static const int DEFAULT_POS_X = 300;
|
||||
static const int DEFAULT_POS_Y = 100;
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
|
||||
namespace Ms {
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
static const int MAP_OFFSET = 480;
|
||||
#endif
|
||||
|
||||
QPixmap* Ruler::markIcon[3];
|
||||
|
||||
|
|
|
@ -56,9 +56,11 @@ static const int peakHoldTime = 1400; // msec
|
|||
static const int peakHold = (peakHoldTime * guiRefresh) / 1000;
|
||||
static OggVorbis_File vf;
|
||||
|
||||
#if 0 // yet(?) unused
|
||||
static const int AUDIO_BUFFER_SIZE = 1024 * 512; // 2 MB
|
||||
|
||||
static const int MIN_CLICKS = 3; // the minimum number of 'clicks' in a count-in
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------
|
||||
// VorbisData
|
||||
|
|
Loading…
Reference in a new issue