52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/***************************************************************************
|
|
|
|
source::worx raDIYo
|
|
Copyright © 2020-2022 c.holzheuer
|
|
chris@sourceworx.org
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#include <QDebug>
|
|
#include <swdummydialdialog.h>
|
|
|
|
|
|
SWDummyDialDialog::SWDummyDialDialog( QWidget* parent )
|
|
: QDialog( parent )
|
|
|
|
{
|
|
setupUi( this );
|
|
|
|
connect( &leftDial().dial(), SIGNAL(valueChanged(int)), this, SLOT( onLeftValueChanged(int) ) );
|
|
connect( &rightDial().dial(), SIGNAL(valueChanged(int)), this, SLOT( onRightValueChanged(int) ) );
|
|
|
|
}
|
|
|
|
|
|
SWDummyDialDialog::~SWDummyDialDialog()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
void SWDummyDialDialog::onLeftValueChanged( int value )
|
|
{
|
|
int delta = value > _oldLeft ? +1 : -1 ;
|
|
emit leftDeltaChanged( delta );
|
|
_oldLeft = value;
|
|
}
|
|
|
|
|
|
void SWDummyDialDialog::onRightValueChanged( int value )
|
|
{
|
|
int delta = value > _oldRight ? +1 : -1 ;
|
|
emit rightDeltaChanged( delta );
|
|
_oldRight = value;
|
|
|
|
}
|