Camera UI fixes
* Add camera permission on macOS * Fix buttonClicked event for Qt 6 (it's now idClicked?)
This commit is contained in:
parent
93dfcf8714
commit
a1a342143b
|
@ -22,6 +22,8 @@
|
|||
<true/>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>We need microphone access so you can use the emulated DS microphone</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>Camera access is needed for emulation of the DSi's cameras</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
@ -121,7 +121,11 @@ CameraSettingsDialog::CameraSettingsDialog(QWidget* parent) : QDialog(parent), u
|
|||
grpInputType->addButton(ui->rbPictureNone, 0);
|
||||
grpInputType->addButton(ui->rbPictureImg, 1);
|
||||
grpInputType->addButton(ui->rbPictureCamera, 2);
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
||||
connect(grpInputType, SIGNAL(buttonClicked(int)), this, SLOT(onChangeInputType(int)));
|
||||
#else
|
||||
connect(grpInputType, SIGNAL(idClicked(int)), this, SLOT(onChangeInputType(int)));
|
||||
#endif
|
||||
|
||||
previewPanel = new CameraPreviewPanel(this);
|
||||
QVBoxLayout* previewLayout = new QVBoxLayout();
|
||||
|
|
Loading…
Reference in New Issue