Skip to content

Commit

Permalink
[add] global: dataset browser tab
Browse files Browse the repository at this point in the history
  • Loading branch information
bgallois committed Sep 10, 2021
1 parent da5b887 commit 7b29c5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
manual->setUrl(QUrl("https://www.fasttrack.sh/docs/intro"));
}
});
dataset = new QWebEngineView(this);
ui->tabWidget->addTab(dataset, tr("TD²"));
connect(ui->tabWidget, &QTabWidget::currentChanged, [this](int index) {
if (index == 5) {
dataset->setUrl(QUrl("http://data.ljp.upmc.fr/datasets/TD2/"));
}
});
#endif

} // Constructor
Expand Down
1 change: 1 addition & 0 deletions src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class MainWindow : public QMainWindow {
TrackingManager *trackingManager;
#ifndef NO_WEB
QWebEngineView *manual;
QWebEngineView *dataset;
#endif
};

Expand Down

0 comments on commit 7b29c5b

Please sign in to comment.