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:
parent
40f99da8a2
commit
513bcb8e35
11 changed files with 48 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue