mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-06 15:46:13 -05:00
UI: Cleanup Qt for Qt6
This changes cleans up some deprecated functions that were removed in Qt6. Some are placed behind version ifdefs and others are replaced for their non-deprecated Qt5 version.
This commit is contained in:
@@ -904,8 +904,8 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
channelIndex = ui->channelSetup->currentIndex();
|
||||
sampleRateIndex = ui->sampleRate->currentIndex();
|
||||
|
||||
QRegExp rx("\\d{1,5}x\\d{1,5}");
|
||||
QValidator *validator = new QRegExpValidator(rx, this);
|
||||
QRegularExpression rx("\\d{1,5}x\\d{1,5}");
|
||||
QValidator *validator = new QRegularExpressionValidator(rx, this);
|
||||
ui->baseResolution->lineEdit()->setValidator(validator);
|
||||
ui->outputResolution->lineEdit()->setValidator(validator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user