forked from Ivasoft/DSView
Fix compile warnings
This commit is contained in:
@@ -267,7 +267,6 @@ void TriggerDock::paintEvent(QPaintEvent *)
|
|||||||
|
|
||||||
void TriggerDock::simple_trigger()
|
void TriggerDock::simple_trigger()
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
stages_label->setDisabled(true);
|
stages_label->setDisabled(true);
|
||||||
stages_comboBox->setDisabled(true);
|
stages_comboBox->setDisabled(true);
|
||||||
_adv_tabWidget->setDisabled(true);
|
_adv_tabWidget->setDisabled(true);
|
||||||
|
|||||||
@@ -494,8 +494,6 @@ void SamplingBar::commit_sample_rate()
|
|||||||
void SamplingBar::on_samplecount_sel(int index)
|
void SamplingBar::on_samplecount_sel(int index)
|
||||||
{
|
{
|
||||||
uint64_t sample_count = 0;
|
uint64_t sample_count = 0;
|
||||||
uint64_t max_sample_count = 0;
|
|
||||||
bool stream_mode = false;
|
|
||||||
|
|
||||||
qDebug() << "index: " << index;
|
qDebug() << "index: " << index;
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
@@ -520,10 +518,6 @@ void SamplingBar::on_samplecount_sel(int index)
|
|||||||
void SamplingBar::on_samplerate_sel(int index)
|
void SamplingBar::on_samplerate_sel(int index)
|
||||||
{
|
{
|
||||||
uint64_t sample_rate = 0;
|
uint64_t sample_rate = 0;
|
||||||
//uint64_t last_sample_rate = 0;
|
|
||||||
uint64_t max_sample_count = 0;
|
|
||||||
uint64_t sample_count = 0;
|
|
||||||
bool stream_mode = false;
|
|
||||||
|
|
||||||
if (index >= 0)
|
if (index >= 0)
|
||||||
sample_rate = _sample_rate.itemData(
|
sample_rate = _sample_rate.itemData(
|
||||||
|
|||||||
@@ -426,15 +426,15 @@ bool DsoSignal::load_settings()
|
|||||||
GVariant* gvar;
|
GVariant* gvar;
|
||||||
|
|
||||||
// -- enable
|
// -- enable
|
||||||
bool enable;
|
//bool enable;
|
||||||
gvar = _dev_inst->get_config(_probe, NULL, SR_CONF_EN_CH);
|
//gvar = _dev_inst->get_config(_probe, NULL, SR_CONF_EN_CH);
|
||||||
if (gvar != NULL) {
|
//if (gvar != NULL) {
|
||||||
enable = g_variant_get_boolean(gvar);
|
// enable = g_variant_get_boolean(gvar);
|
||||||
g_variant_unref(gvar);
|
// g_variant_unref(gvar);
|
||||||
} else {
|
//} else {
|
||||||
qDebug() << "ERROR: config_get SR_CONF_EN_CH failed.";
|
// qDebug() << "ERROR: config_get SR_CONF_EN_CH failed.";
|
||||||
return false;
|
// return false;
|
||||||
}
|
//}
|
||||||
|
|
||||||
// -- hdiv
|
// -- hdiv
|
||||||
uint64_t hdiv;
|
uint64_t hdiv;
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ void Header::mouseDoubleClickEvent(QMouseEvent *event)
|
|||||||
|
|
||||||
const vector< boost::shared_ptr<Trace> > traces(
|
const vector< boost::shared_ptr<Trace> > traces(
|
||||||
_view.get_traces());
|
_view.get_traces());
|
||||||
int action;
|
|
||||||
|
|
||||||
if (event->button() & Qt::LeftButton) {
|
if (event->button() & Qt::LeftButton) {
|
||||||
_mouse_down_point = event->pos();
|
_mouse_down_point = event->pos();
|
||||||
|
|||||||
Reference in New Issue
Block a user