mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
(profiler_gui) Removed unnecessary signals (rebuild may be needed)
This commit is contained in:
parent
c96a8c3a18
commit
6cae6901de
@ -1153,8 +1153,6 @@ void EasyGraphicsView::initMode()
|
||||
connect(globalSignals, &::profiler_gui::EasyGlobalSignals::selectedThreadChanged, this, &This::onSelectedThreadChange);
|
||||
connect(globalSignals, &::profiler_gui::EasyGlobalSignals::selectedBlockChanged, this, &This::onSelectedBlockChange);
|
||||
connect(globalSignals, &::profiler_gui::EasyGlobalSignals::itemsExpandStateChanged, this, &This::onItemsEspandStateChange);
|
||||
connect(globalSignals, &::profiler_gui::EasyGlobalSignals::drawBordersChanged, this, &This::repaintScene);
|
||||
connect(globalSignals, &::profiler_gui::EasyGlobalSignals::chronoPositionChanged, this, &This::repaintScene);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
@ -50,8 +50,6 @@ namespace profiler_gui {
|
||||
void selectedThreadChanged(::profiler::thread_id_t _id);
|
||||
void selectedBlockChanged(uint32_t _block_index);
|
||||
void itemsExpandStateChanged();
|
||||
void drawBordersChanged();
|
||||
void chronoPositionChanged();
|
||||
void blockStatusChanged(::profiler::block_id_t _id, ::profiler::EasyBlockStatus _status);
|
||||
|
||||
}; // END of class EasyGlobalSignals.
|
||||
|
@ -226,7 +226,7 @@ EasyMainWindow::EasyMainWindow() : Parent()
|
||||
action->setChecked(EASY_GLOBALS.bind_scene_and_tree_expand_status);
|
||||
connect(action, &QAction::triggered, this, &This::onBindExpandStatusChange);
|
||||
|
||||
action = menu->addAction("Paint event indicators");
|
||||
action = menu->addAction("Draw event indicators");
|
||||
action->setCheckable(true);
|
||||
action->setChecked(EASY_GLOBALS.enable_event_indicators);
|
||||
connect(action, &QAction::triggered, this, &This::onEventIndicatorsChange);
|
||||
@ -581,7 +581,7 @@ void EasyMainWindow::onChronoTextPosChanged(bool)
|
||||
{
|
||||
auto _sender = qobject_cast<QAction*>(sender());
|
||||
EASY_GLOBALS.chrono_text_position = static_cast<::profiler_gui::ChronometerTextPosition>(_sender->data().toInt());
|
||||
emit EASY_GLOBALS.events.chronoPositionChanged();
|
||||
static_cast<EasyGraphicsViewWidget*>(m_graphicsView->widget())->view()->scene()->update();
|
||||
}
|
||||
|
||||
void EasyMainWindow::onEventIndicatorsChange(bool _checked)
|
||||
@ -617,7 +617,7 @@ void EasyMainWindow::onEnableDisableStatistics(bool _checked)
|
||||
void EasyMainWindow::onDrawBordersChanged(bool _checked)
|
||||
{
|
||||
EASY_GLOBALS.draw_graphics_items_borders = _checked;
|
||||
emit EASY_GLOBALS.events.drawBordersChanged();
|
||||
static_cast<EasyGraphicsViewWidget*>(m_graphicsView->widget())->view()->scene()->update();
|
||||
}
|
||||
|
||||
void EasyMainWindow::onCollapseItemsAfterCloseChanged(bool _checked)
|
||||
|
Loading…
x
Reference in New Issue
Block a user