* It is simply caused by Qt trying to be smart and automatically connecting signals and slots, however not all the objects are created when it does this. Renaming the function avoids this automatic behavior.
(*iter)->setFixedHeight((*iter)->get_preferred_height());
++viewerIndex;
(*iter)->setFixedHeight((*iter)->get_preferred_height());
++viewerIndex;
- connect(*iter, SIGNAL(zoomFactorChanged(double)), this, SLOT(on_zoomFactorChanged(double)));
+ connect(*iter, SIGNAL(zoomFactorChanged(double)), this, SLOT(slot_zoomFactorChanged(double)));
m_depthExplorer->set_texture_objects(depthVec);
m_depthExplorer->set_active_texture(depthVec[0]->get_snapshot_handle());
}
m_depthExplorer->set_texture_objects(depthVec);
m_depthExplorer->set_active_texture(depthVec[0]->get_snapshot_handle());
}
- connect(m_depthExplorer, SIGNAL(zoomFactorChanged(double)), this, SLOT(on_zoomFactorChanged(double)));
+ connect(m_depthExplorer, SIGNAL(zoomFactorChanged(double)), this, SLOT(slot_zoomFactorChanged(double)));
m_depthExplorer->setMinimumHeight(m_depthExplorer->get_preferred_height());
}
m_depthExplorer->setMinimumHeight(m_depthExplorer->get_preferred_height());
}
m_stencilExplorer->set_texture_objects(stencilVec);
m_stencilExplorer->set_active_texture(stencilVec[0]->get_snapshot_handle());
}
m_stencilExplorer->set_texture_objects(stencilVec);
m_stencilExplorer->set_active_texture(stencilVec[0]->get_snapshot_handle());
}
- connect(m_stencilExplorer, SIGNAL(zoomFactorChanged(double)), this, SLOT(on_zoomFactorChanged(double)));
+ connect(m_stencilExplorer, SIGNAL(zoomFactorChanged(double)), this, SLOT(slot_zoomFactorChanged(double)));
m_stencilExplorer->setMinimumHeight(m_stencilExplorer->get_preferred_height());
}
}
m_stencilExplorer->setMinimumHeight(m_stencilExplorer->get_preferred_height());
}
}
return pRenderbufferState;
}
return pRenderbufferState;
}
-void vogleditor_QFramebufferExplorer::on_zoomFactorChanged(double zoomFactor)
+void vogleditor_QFramebufferExplorer::slot_zoomFactorChanged(double zoomFactor)
{
VOGL_NOTE_UNUSED(zoomFactor);
{
VOGL_NOTE_UNUSED(zoomFactor);
private slots:
void selectedFramebufferIndexChanged(int index);
private slots:
void selectedFramebufferIndexChanged(int index);
- void on_zoomFactorChanged(double zoomFactor);
+ void slot_zoomFactorChanged(double zoomFactor);
};
#endif // VOGLEDITOR_QFRAMEBUFFEREXPLORER_H
};
#endif // VOGLEDITOR_QFRAMEBUFFEREXPLORER_H