|
@@ -26,7 +26,6 @@
|
|
#include "double-slider.hpp"
|
|
#include "double-slider.hpp"
|
|
#include "slider-ignorewheel.hpp"
|
|
#include "slider-ignorewheel.hpp"
|
|
#include "spinbox-ignorewheel.hpp"
|
|
#include "spinbox-ignorewheel.hpp"
|
|
-#include "combobox-ignorewheel.hpp"
|
|
|
|
#include "qt-wrappers.hpp"
|
|
#include "qt-wrappers.hpp"
|
|
#include "properties-view.hpp"
|
|
#include "properties-view.hpp"
|
|
#include "properties-view.moc.hpp"
|
|
#include "properties-view.moc.hpp"
|
|
@@ -532,7 +531,7 @@ static string from_obs_data_autoselect(obs_data_t *data, const char *name,
|
|
QWidget *OBSPropertiesView::AddList(obs_property_t *prop, bool &warning)
|
|
QWidget *OBSPropertiesView::AddList(obs_property_t *prop, bool &warning)
|
|
{
|
|
{
|
|
const char *name = obs_property_name(prop);
|
|
const char *name = obs_property_name(prop);
|
|
- QComboBox *combo = new ComboBoxIgnoreScroll();
|
|
|
|
|
|
+ QComboBox *combo = new QComboBox();
|
|
obs_combo_type type = obs_property_list_type(prop);
|
|
obs_combo_type type = obs_property_list_type(prop);
|
|
obs_combo_format format = obs_property_list_format(prop);
|
|
obs_combo_format format = obs_property_list_format(prop);
|
|
size_t count = obs_property_list_item_count(prop);
|
|
size_t count = obs_property_list_item_count(prop);
|
|
@@ -972,7 +971,7 @@ CreateSimpleFPSValues(OBSFrameRatePropertyWidget *fpsProps, bool &selected,
|
|
auto items = vector<common_frame_rate>{};
|
|
auto items = vector<common_frame_rate>{};
|
|
items.reserve(sizeof(common_fps) / sizeof(common_frame_rate));
|
|
items.reserve(sizeof(common_fps) / sizeof(common_frame_rate));
|
|
|
|
|
|
- auto combo = fpsProps->simpleFPS = new ComboBoxIgnoreScroll{};
|
|
|
|
|
|
+ auto combo = fpsProps->simpleFPS = new QComboBox();
|
|
|
|
|
|
combo->addItem("", QVariant::fromValue(make_fps(0, 0)));
|
|
combo->addItem("", QVariant::fromValue(make_fps(0, 0)));
|
|
for (const auto &fps : common_fps) {
|
|
for (const auto &fps : common_fps) {
|
|
@@ -1054,7 +1053,7 @@ static QWidget *CreateRationalFPS(OBSFrameRatePropertyWidget *fpsProps,
|
|
auto str = QTStr("Basic.PropertiesView.FPS.ValidFPSRanges");
|
|
auto str = QTStr("Basic.PropertiesView.FPS.ValidFPSRanges");
|
|
auto rlabel = new QLabel{str};
|
|
auto rlabel = new QLabel{str};
|
|
|
|
|
|
- auto combo = fpsProps->fpsRange = new ComboBoxIgnoreScroll{};
|
|
|
|
|
|
+ auto combo = fpsProps->fpsRange = new QComboBox();
|
|
auto convert_fps = media_frames_per_second_to_fps;
|
|
auto convert_fps = media_frames_per_second_to_fps;
|
|
//auto convert_fi = media_frames_per_second_to_frame_interval;
|
|
//auto convert_fi = media_frames_per_second_to_frame_interval;
|
|
|
|
|
|
@@ -1105,7 +1104,7 @@ CreateFrameRateWidget(obs_property_t *prop, bool &warning, const char *option,
|
|
|
|
|
|
swap(widget->fps_ranges, fps_ranges);
|
|
swap(widget->fps_ranges, fps_ranges);
|
|
|
|
|
|
- auto combo = widget->modeSelect = new ComboBoxIgnoreScroll{};
|
|
|
|
|
|
+ auto combo = widget->modeSelect = new QComboBox();
|
|
combo->addItem(QTStr("Basic.PropertiesView.FPS.Simple"),
|
|
combo->addItem(QTStr("Basic.PropertiesView.FPS.Simple"),
|
|
QVariant::fromValue(frame_rate_tag::simple()));
|
|
QVariant::fromValue(frame_rate_tag::simple()));
|
|
combo->addItem(QTStr("Basic.PropertiesView.FPS.Rational"),
|
|
combo->addItem(QTStr("Basic.PropertiesView.FPS.Rational"),
|