2023-11-10 13:28:10 +01:00
|
|
|
#include "subcategory.hpp"
|
|
|
|
|
|
|
|
#include <QGridLayout>
|
|
|
|
|
|
|
|
namespace CSMPrefs
|
|
|
|
{
|
|
|
|
class Category;
|
|
|
|
|
2023-11-12 00:52:09 +01:00
|
|
|
Subcategory::Subcategory(Category* parent, QMutex* mutex, const QString& label, Settings::Index& index)
|
|
|
|
: Setting(parent, mutex, "", label, index)
|
2023-11-10 13:28:10 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
SettingWidgets Subcategory::makeWidgets(QWidget* /*parent*/)
|
|
|
|
{
|
|
|
|
QGridLayout* const layout = new QGridLayout();
|
|
|
|
layout->setSizeConstraint(QLayout::SetMinAndMaxSize);
|
|
|
|
|
|
|
|
return SettingWidgets{ .mLabel = nullptr, .mInput = nullptr, .mLayout = layout };
|
|
|
|
}
|
|
|
|
}
|