mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 00:27:55 +08:00
#91 [UI] Snapshot feature further progress (intermediate commit)
This commit is contained in:
parent
ef7b41fd0d
commit
ae5c46477d
File diff suppressed because it is too large
Load Diff
@ -378,9 +378,9 @@ MainWindow::MainWindow() : Parent(), m_theme("default"), m_lastAddress("localhos
|
|||||||
static_cast<DiagramWidget*>(m_graphicsView->widget())->view()->inspectCurrentView(true);
|
static_cast<DiagramWidget*>(m_graphicsView->widget())->view()->inspectCurrentView(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
action = toolbar->addAction(QIcon(imagePath("crop")), "Crop and save");
|
action = toolbar->addAction(QIcon(imagePath("crop")), "Snapshot");
|
||||||
action->setToolTip("Crop and save selected area\nas separate .prof file.");
|
action->setToolTip("Save selected area\nas separate .prof file.");
|
||||||
connect(action, &QAction::triggered, this, &This::onCropAndSaveClicked);
|
connect(action, &QAction::triggered, this, &This::onSnapshotClicked);
|
||||||
|
|
||||||
toolbar->addSeparator();
|
toolbar->addSeparator();
|
||||||
auto menu = new QMenu("Settings", this);
|
auto menu = new QMenu("Settings", this);
|
||||||
@ -2230,7 +2230,7 @@ void MainWindow::onFrameTimeChanged()
|
|||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void MainWindow::onCropAndSaveClicked(bool)
|
void MainWindow::onSnapshotClicked(bool)
|
||||||
{
|
{
|
||||||
profiler::timestamp_t beginTime = 0, endTime = 0;
|
profiler::timestamp_t beginTime = 0, endTime = 0;
|
||||||
const bool hasSelection = static_cast<DiagramWidget*>(m_graphicsView->widget())->view()->getSelectionRegionForSaving(beginTime, endTime);
|
const bool hasSelection = static_cast<DiagramWidget*>(m_graphicsView->widget())->view()->getSelectionRegionForSaving(beginTime, endTime);
|
||||||
|
@ -346,7 +346,7 @@ protected slots:
|
|||||||
void onEventTracingEnableChange(bool _checked);
|
void onEventTracingEnableChange(bool _checked);
|
||||||
void onFrameTimeEditFinish();
|
void onFrameTimeEditFinish();
|
||||||
void onFrameTimeChanged();
|
void onFrameTimeChanged();
|
||||||
void onCropAndSaveClicked(bool);
|
void onSnapshotClicked(bool);
|
||||||
|
|
||||||
void onBlockStatusChange(profiler::block_id_t _id, profiler::EasyBlockStatus _status);
|
void onBlockStatusChange(profiler::block_id_t _id, profiler::EasyBlockStatus _status);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user