Skip to content

Commit

Permalink
Done with SIGNALs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcwhite committed May 3, 2022
1 parent 62dcda8 commit 8689d49
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Superbuild/Superbuild.cmake
Expand Up @@ -69,7 +69,7 @@ OPTION(BUILD_WITH_PYTHON "Build with python support." ON)

###########################################
# Configure tetgen
OPTION(WITH_TETGEN "Build Tetgen." OFF)
OPTION(WITH_TETGEN "Build Tetgen." ON)

###########################################
# Configure ospray
Expand Down
2 changes: 1 addition & 1 deletion src/Interface/Application/GuiCommands.cc
Expand Up @@ -200,7 +200,7 @@ bool NetworkFileProcessCommand::execute()
{
const int numModules = static_cast<int>(file->network.modules.size());
QProgressDialog progress("Loading network " + (tempFile ? "" : QString::fromStdString(filename)), QString(), 0, numModules + 1, SCIRunMainWindow::Instance());
progress.connect(networkEditor_->getNetworkEditorController().get(), SIGNAL(networkDoneLoading(int)), SLOT(setValue(int)));
QObject::connect(networkEditor_->getNetworkEditorController().get(), &NetworkEditorControllerGuiProxy::networkDoneLoading, &progress, &QProgressDialog::setValue);
progress.setWindowModality(Qt::WindowModal);
progress.show();
progress.setValue(0);
Expand Down
4 changes: 2 additions & 2 deletions src/Interface/Application/ModuleWidget.cc
Expand Up @@ -944,8 +944,8 @@ void ModuleWidget::addDynamicPort(const ModuleId& mid, const PortId& pid)
[this]() { return closestPortFinder_; },
PortDataDescriber(), this);
hookUpGeneralPortSignals(w);
//TODO: later
connect(this, SIGNAL(connectionAdded(const SCIRun::Dataflow::Networks::ConnectionDescription&)), w, SLOT(makeConnection(const SCIRun::Dataflow::Networks::ConnectionDescription&)));

connect(this, &ModuleWidget::connectionAdded, w, &InputPortWidget::makeConnection);

const auto newPortIndex = static_cast<int>(port->getIndex());

Expand Down
2 changes: 1 addition & 1 deletion src/Interface/Modules/Math/PlotDialog.cc
Expand Up @@ -170,7 +170,7 @@ void Plot::addLegend()
auto legend = new QwtLegend();
legend->setDefaultItemMode(QwtLegendData::Checkable);
insertLegend(legend, QwtPlot::RightLegend);
connect(legend, SIGNAL(checked(const QVariant&, bool, int)), SLOT(showItem(const QVariant&, bool)));
connect(legend, &QwtLegend::checked, this, &Plot::showItem);

auto items = itemList( QwtPlotItem::Rtti_PlotCurve );
for ( int i = 0; i < items.size(); i++ )
Expand Down

0 comments on commit 8689d49

Please sign in to comment.