Skip to content

QT old style connects #229

@atsju

Description

@atsju

I'm using clazy to to update old-style-connect.
More information here and here.
The new syntax is safer because it's checked at compile time. But also it should be marginally faster (I measured no difference).
The clazy automated fix seem to work well but there are about 32 other old style connect that I will fix manually.

I think I found several that should not be working in current code. However I don't know how to test them:

  • connect(savePb, SIGNAL(pressed()), sm, SLOT(saveAllContours()));

    saveAllContours is a private slot. Can you let me know how to test this specific line ? I don't know what corresponds to OGLview in the GUI.
  • myMenu.addAction("Save as image", this, SLOT(saveImage()));
    the signature of saveImage(QString fileName) doesn't match QAction::triggered(bool checked = false)
  • connect(Picker, SIGNAL(selected(QString)),this,SLOT(selectedwave(QString)));
    probably broken since Some code improvements #211 (me).
  • connect(m_surfTools, SIGNAL(updateSelected()), m_surfaceManager, SLOT(backGroundUpdate()));
    SurfaceManager::backGroundUpdate is a private slot
  • ...
  • List will increase when I work on it

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions