Minor changes in histogram widget and seekstreamdialog
This commit is contained in:
1 parent
10b6090e0b
commit
d42b202b4c
4 files changed
+23
-27
No files matched your search
+15
-19
@@ -177,7 +177,20 @@ HistogramWidget::HistogramWidget( Int width, Int height, QWidget *parent ) :
|
||||
setAttribute( Qt::WA_DeleteOnClose );
|
||||
|
||||
d = new HistogramWidgetPrivate;
|
||||
setupWidget( width, height );
|
||||
|
||||
m_channelType = LumaHistogram;
|
||||
m_scaleType = LogScaleHistogram;
|
||||
m_colorType = FirstChannelColor;
|
||||
m_renderingType = FullImageHistogram;
|
||||
|
||||
setOptions( HistogramWidget::BlinkComputation | HistogramWidget::SelectMode | HistogramWidget::ShowLumaChannel );
|
||||
|
||||
setMouseTracking( true );
|
||||
setMinimumSize( width, height );
|
||||
|
||||
d->blinkTimer = new QTimer( this );
|
||||
|
||||
connect( d->blinkTimer, SIGNAL( timeout() ), this, SLOT( slotBlinkTimerDone() ) );
|
||||
|
||||
m_imageHistogram = 0;
|
||||
m_selectionHistogram = 0;
|
||||
@@ -210,23 +223,6 @@ HistogramWidget::~HistogramWidget()
|
||||
// Setup Functions
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Void HistogramWidget::setupWidget( Int width, Int height, HistogramOptions options )
|
||||
{
|
||||
m_channelType = LumaHistogram;
|
||||
m_scaleType = LogScaleHistogram;
|
||||
m_colorType = FirstChannelColor;
|
||||
m_renderingType = FullImageHistogram;
|
||||
|
||||
setOptions( options );
|
||||
|
||||
setMouseTracking( true );
|
||||
setMinimumSize( width, height );
|
||||
|
||||
d->blinkTimer = new QTimer( this );
|
||||
|
||||
connect( d->blinkTimer, SIGNAL( timeout() ), this, SLOT( slotBlinkTimerDone() ) );
|
||||
}
|
||||
|
||||
Void HistogramWidget::setOptions( HistogramOptions options )
|
||||
{
|
||||
d->statisticsVisible = ( bool )( options & ShowStatistics );
|
||||
@@ -1037,7 +1033,7 @@ Void HistogramWidget::mouseMoveEvent( QMouseEvent * e )
|
||||
{
|
||||
if( d->selectMode == true && d->clearFlag == HistogramWidgetPrivate::HistogramCompleted )
|
||||
{
|
||||
setCursor( Qt::CrossCursor );
|
||||
setCursor( Qt::SizeHorCursor );
|
||||
|
||||
if( d->inSelected )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user