mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
BasicChannelSettingsDialog: added indicator to tell if updates were made
This commit is contained in:
parent
4815b4bc3e
commit
79f46bec29
@ -8,7 +8,8 @@
|
||||
BasicChannelSettingsDialog::BasicChannelSettingsDialog(ChannelMarker* marker, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::BasicChannelSettingsDialog),
|
||||
m_channelMarker(marker)
|
||||
m_channelMarker(marker),
|
||||
m_hasChanged(false)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->title->setText(m_channelMarker->getTitle());
|
||||
@ -77,5 +78,6 @@ void BasicChannelSettingsDialog::accept()
|
||||
|
||||
m_channelMarker->setFrequencyScaleDisplayType((ChannelMarker::frequencyScaleDisplay_t) ui->fScaleDisplayType->currentIndex());
|
||||
|
||||
m_hasChanged = true;
|
||||
QDialog::accept();
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ class BasicChannelSettingsDialog : public QDialog
|
||||
public:
|
||||
explicit BasicChannelSettingsDialog(ChannelMarker* marker, QWidget *parent = 0);
|
||||
~BasicChannelSettingsDialog();
|
||||
bool hasChanged() const { return m_hasChanged; }
|
||||
|
||||
private slots:
|
||||
void on_colorBtn_clicked();
|
||||
@ -25,6 +26,7 @@ private:
|
||||
Ui::BasicChannelSettingsDialog *ui;
|
||||
ChannelMarker* m_channelMarker;
|
||||
QColor m_color;
|
||||
bool m_hasChanged;
|
||||
|
||||
void paintColor();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user