/[svn]/qsampler/trunk/src/qsamplerChannelStrip.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannelStrip.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3517 by capela, Tue Dec 4 09:52:38 2018 UTC revision 3518 by capela, Sun Jun 30 16:58:30 2019 UTC
# Line 1  Line 1 
1  // qsamplerChannelStrip.cpp  // qsamplerChannelStrip.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2018, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, 2008, 2014 Christian Schoenebeck     Copyright (C) 2007, 2008, 2014 Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 596  bool ChannelStrip::updateChannelUsage (v Line 596  bool ChannelStrip::updateChannelUsage (v
596          // As benno has suggested this is the percentage usage          // As benno has suggested this is the percentage usage
597          // of the least filled buffer stream...          // of the least filled buffer stream...
598          const int iStreamUsage = ::lscp_get_channel_stream_usage(          const int iStreamUsage = ::lscp_get_channel_stream_usage(
599                  pMainForm->client(), m_pChannel->channelID());;                  pMainForm->client(), m_pChannel->channelID());
600    
601          // Update the GUI elements...          // Update the GUI elements...
602          m_ui.StreamUsageProgressBar->setValue(iStreamUsage);          m_ui.StreamUsageProgressBar->setValue(iStreamUsage);
# Line 679  void ChannelStrip::setSelected ( bool bS Line 679  void ChannelStrip::setSelected ( bool bS
679          QPalette pal;          QPalette pal;
680          if (bSelected) {          if (bSelected) {
681                  const QColor& color = pal.midlight().color();                  const QColor& color = pal.midlight().color();
682                  pal.setColor(QPalette::Background, color.dark(150));                  pal.setColor(QPalette::Background, color.darker(150));
683                  pal.setColor(QPalette::Foreground, color.light(150));                  pal.setColor(QPalette::Foreground, color.lighter(150));
684          }          }
685    
686          QWidget *pParentWidget = QWidget::parentWidget();          QWidget *pParentWidget = QWidget::parentWidget();

Legend:
Removed from v.3517  
changed lines
  Added in v.3518

  ViewVC Help
Powered by ViewVC