We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connect
Instead of doing
connect( m_viewport_widget, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(slot_viewport_widget_context_menu(const QPoint&)));
do
connect( m_viewport_widget, &ViewportWidget::customContextMenuRequested, this, &FinalRenderViewportTab::slot_viewport_widget_context_menu);
This allows to detect connect errors at compile time instead of runtime. Also, navigating to signals or slots in Visual Studio is easier.
For signals or slots that have multiple arg possibilities, you can specify which one to chose with qOverload. Example, this
qOverload
connect( m_display_transform_combo, SIGNAL(currentIndexChanged(QString)), m_viewport_widget, SLOT(slot_display_transform_changed(QString)));
becomes
connect( m_display_transform_combo, qOverload<const QString&>(&QComboBox::currentIndexChanged), m_viewport_widget, &ViewportWidget::slot_display_transform_changed);
The text was updated successfully, but these errors were encountered:
I'd like to work on this issue, as I'm new to appleseed. Are there any particular files I can find this in? grep is taking a bit too long.
Sorry, something went wrong.
@LeaBroudo run grep in a specific folder. For instance src/appleseed.studio.
src/appleseed.studio
Got it! I'll start on it now.
Switch to modern connect syntax in appleseed.bench & appleseed.qtcommon
b6f0bee
Partially addresses #2797.
No branches or pull requests
Instead of doing
do
This allows to detect
connect
errors at compile time instead of runtime.Also, navigating to signals or slots in Visual Studio is easier.
For signals or slots that have multiple arg possibilities, you can specify which one to chose with
qOverload
. Example, thisconnect( m_display_transform_combo, SIGNAL(currentIndexChanged(QString)), m_viewport_widget, SLOT(slot_display_transform_changed(QString)));
becomes
The text was updated successfully, but these errors were encountered: