|
@@ -793,6 +793,11 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
|
|
|
|
|
|
|
channelIndex = ui->channelSetup->currentIndex();
|
|
channelIndex = ui->channelSetup->currentIndex();
|
|
|
sampleRateIndex = ui->sampleRate->currentIndex();
|
|
sampleRateIndex = ui->sampleRate->currentIndex();
|
|
|
|
|
+
|
|
|
|
|
+ QRegExp rx("\\d{1,5}x\\d{1,5}");
|
|
|
|
|
+ QValidator *validator = new QRegExpValidator(rx, this);
|
|
|
|
|
+ ui->baseResolution->lineEdit()->setValidator(validator);
|
|
|
|
|
+ ui->outputResolution->lineEdit()->setValidator(validator);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
OBSBasicSettings::~OBSBasicSettings()
|
|
OBSBasicSettings::~OBSBasicSettings()
|