mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-25 00:53:54 +00:00
700d55f1fb
Implemented updating editor application from preferences menu, loading settings when editor loads, adding Record Status Display prefernce. Fixed multiple bugs, made changes to CSM(V)Settings classes to make implementing new prefrences easier. Rewrote CSMSettings::UserSettings to retain last-loaded settings. Adjusted icon position in Record Status column Capitalized status text Added delegate to referenceables table
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#include "blankpage.hpp"
|
|
|
|
#include <QList>
|
|
#include <QListView>
|
|
#include <QGroupBox>
|
|
#include <QRadioButton>
|
|
#include <QDockWidget>
|
|
#include <QVBoxLayout>
|
|
#include <QGridLayout>
|
|
#include <QStyle>
|
|
|
|
#ifdef Q_OS_MAC
|
|
#include <QPlastiqueStyle>
|
|
#endif
|
|
|
|
#include "../../model/settings/usersettings.hpp"
|
|
#include "groupblock.hpp"
|
|
#include "toggleblock.hpp"
|
|
|
|
CSVSettings::BlankPage::BlankPage(QWidget *parent):
|
|
AbstractPage("Blank", parent)
|
|
{
|
|
initPage();
|
|
}
|
|
|
|
CSVSettings::BlankPage::BlankPage(const QString &title, QWidget *parent):
|
|
AbstractPage(title, parent)
|
|
{
|
|
initPage();
|
|
}
|
|
|
|
void CSVSettings::BlankPage::initPage()
|
|
{
|
|
// Hacks to get the stylesheet look properly
|
|
#ifdef Q_OS_MAC
|
|
QPlastiqueStyle *style = new QPlastiqueStyle;
|
|
//profilesComboBox->setStyle(style);
|
|
#endif
|
|
|
|
setupUi();
|
|
}
|
|
|
|
void CSVSettings::BlankPage::setupUi()
|
|
{
|
|
QGroupBox *pageBox = new QGroupBox(this);
|
|
layout()->addWidget(pageBox);
|
|
}
|
|
|
|
void CSVSettings::BlankPage::initializeWidgets (const CSMSettings::SettingMap &settings)
|
|
{
|
|
//iterate each item in each blocks in this section
|
|
//validate the corresponding setting against the defined valuelist if any.
|
|
foreach (AbstractBlock *block, mAbstractBlocks)
|
|
block->updateSettings (settings);
|
|
}
|