MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
- m_singleSignalView(false),
+ //m_singleSignalView(false),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QWidget* sender = qobject_cast<QWidget*>(QObject::sender());
for (int idx = 0; idx < m_dashboard->count(); idx++) {
- if (m_dashboard->widget(idx) != sender) {
+ /*if (m_dashboard->widget(idx) != sender) {
if (!m_singleSignalView)
m_dashboard->widget(idx)->hide();
else
m_dashboard->widget(idx)->show();
+ }*/
+ QWidget* w = m_dashboard->widget(idx);
+
+ if (w != sender) {
+ if (w->isHidden())
+ w->show();
+ else
+ w->hide();
}
}
- m_singleSignalView = !m_singleSignalView;
+ //m_singleSignalView = !m_singleSignalView;
}
void MainWindow::onZoomSelected()
//std::vector<SignalView*> m_itemsOnDashboard;
QSplitter* m_dashboard;
QFileDialog* m_loadDataFileDialog;
- bool m_singleSignalView;
+ //bool m_singleSignalView;
Ui::MainWindow *ui;
public slots: