void FloodPlot::showContourPlot() { if (contourPlot->text() == "Show Contour") { contourPlot->setText(tr("Show Colormap")); showSpectrogram(false); showContour(true); } else { contourPlot->setText(tr("Show Contour")); showContour(false); showSpectrogram(true); } m_qwtPlot->replot(); }
int Plot::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QwtPlot::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: showContour((*reinterpret_cast< bool(*)>(_a[1]))); break; case 1: showSpectrogram((*reinterpret_cast< bool(*)>(_a[1]))); break; case 2: printPlot(); break; default: ; } _id -= 3; } return _id; }