diff --git a/libspaghetti/source/nodes/ui/float_info.cc b/libspaghetti/source/nodes/ui/float_info.cc index 670cc96..d4349d7 100644 --- a/libspaghetti/source/nodes/ui/float_info.cc +++ b/libspaghetti/source/nodes/ui/float_info.cc @@ -33,7 +33,7 @@ FloatInfo::FloatInfo() QFont font{}; font.setFamily("Consolas"); font.setPointSize(10); - auto widget = new QGraphicsSimpleTextItem(QString::number(0.0, 'f', 4)); + auto widget = new QGraphicsSimpleTextItem(QString::number(0.0, 'f', 8)); widget->setFont(font); auto brush = widget->brush(); @@ -49,7 +49,7 @@ void FloatInfo::refreshCentralWidget() { if (!m_element) return; float const value{ std::get(m_element->inputs()[0].value) }; - m_info->setText(QString::number(static_cast(value), 'f', 4)); + m_info->setText(QString::number(static_cast(value), 'f', 8)); calculateBoundingRect(); } diff --git a/libspaghetti/source/package.cc b/libspaghetti/source/package.cc index 6f00fea..31f62a7 100644 --- a/libspaghetti/source/package.cc +++ b/libspaghetti/source/package.cc @@ -291,7 +291,7 @@ void Package::dispatchThreadFunction() } last = NOW; - std::this_thread::sleep_for(std::chrono::milliseconds(1)); +// std::this_thread::sleep_for(std::chrono::milliseconds(1)); if (m_pause) { spaghetti::log::trace("Pause requested.."); diff --git a/libspaghetti/source/ui/package_view.cc b/libspaghetti/source/ui/package_view.cc index 3d58597..e70a597 100644 --- a/libspaghetti/source/ui/package_view.cc +++ b/libspaghetti/source/ui/package_view.cc @@ -117,6 +117,9 @@ PackageView::PackageView(QTableWidget *const a_properties, Package *const a_pack m_timer.start(); m_package->startDispatchThread(); + + m_inputs->hide(); + m_outputs->hide(); } PackageView::~PackageView()