mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
Editor: Use Qt 5 signal/slot connections where applicable
Migrates the UI signals and slots over to the new Qt 5 syntax. This syntax is nicer, as the compiler can report errors at compile-time, as opposed to the other method which would require a runtime error to indicate any issues with the signals and slots.
This commit is contained in:
@@ -34,7 +34,7 @@ StatusBarWidget::StatusBarWidget(QWidget* parent)
|
||||
m_volumeIcon.setPixmap(m_volumeIcons[0].pixmap(16, 16));
|
||||
QString volTip = tr("Master volume level");
|
||||
m_volumeIcon.setToolTip(volTip);
|
||||
connect(&m_volumeSlider, SIGNAL(valueChanged(int)), this, SLOT(volumeChanged(int)));
|
||||
connect(&m_volumeSlider, qOverload<int>(&QSlider::valueChanged), this, &StatusBarWidget::volumeChanged);
|
||||
m_volumeSlider.setRange(0, 100);
|
||||
m_volumeSlider.setFixedWidth(100);
|
||||
m_volumeSlider.setToolTip(volTip);
|
||||
|
||||
Reference in New Issue
Block a user