Skip to content

Commit

Permalink
Merge pull request #46 from aljen/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
aljen authored Feb 17, 2018
2 parents 8d4a3e4 + 4d35d41 commit 08d6db1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libspaghetti/source/nodes/ui/float_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -49,7 +49,7 @@ void FloatInfo::refreshCentralWidget()
{
if (!m_element) return;
float const value{ std::get<float>(m_element->inputs()[0].value) };
m_info->setText(QString::number(static_cast<qreal>(value), 'f', 4));
m_info->setText(QString::number(static_cast<qreal>(value), 'f', 8));

calculateBoundingRect();
}
Expand Down
2 changes: 1 addition & 1 deletion libspaghetti/source/package.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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..");
Expand Down
3 changes: 3 additions & 0 deletions libspaghetti/source/ui/package_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 08d6db1

Please sign in to comment.