Remove unneeded QSettings functions and imports
This commit is contained in:
@@ -40,12 +40,6 @@ int main( int argc, char* argv[] )
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
QSettings appSettings( QSettings::IniFormat,
|
|
||||||
QSettings::UserScope,
|
|
||||||
mainEventLoop.organizationName(),
|
|
||||||
mainEventLoop.applicationName() );
|
|
||||||
advsettings::OverlayController::setAppSettings( &appSettings );
|
|
||||||
|
|
||||||
QQmlEngine qmlEngine;
|
QQmlEngine qmlEngine;
|
||||||
|
|
||||||
advsettings::OverlayController controller( commandLineArgs.desktopMode,
|
advsettings::OverlayController controller( commandLineArgs.desktopMode,
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
// application namespace
|
// application namespace
|
||||||
namespace advsettings
|
namespace advsettings
|
||||||
{
|
{
|
||||||
QSettings* OverlayController::_appSettings = nullptr;
|
|
||||||
|
|
||||||
int verifyCustomTickRate( const int tickRate )
|
int verifyCustomTickRate( const int tickRate )
|
||||||
{
|
{
|
||||||
if ( tickRate < 1 )
|
if ( tickRate < 1 )
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#include <QVector2D>
|
#include <QVector2D>
|
||||||
#include <QVector3D>
|
#include <QVector3D>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QSettings>
|
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
#include <QtGui/QOpenGLContext>
|
#include <QtGui/QOpenGLContext>
|
||||||
#include <QtWidgets/QGraphicsScene>
|
#include <QtWidgets/QGraphicsScene>
|
||||||
@@ -279,20 +278,6 @@ signals:
|
|||||||
void vsyncDisabledChanged( bool value );
|
void vsyncDisabledChanged( bool value );
|
||||||
void customTickRateMsChanged( int value );
|
void customTickRateMsChanged( int value );
|
||||||
void debugStateChanged( int value );
|
void debugStateChanged( int value );
|
||||||
|
|
||||||
private:
|
|
||||||
static QSettings* _appSettings;
|
|
||||||
|
|
||||||
public:
|
|
||||||
static QSettings* appSettings()
|
|
||||||
{
|
|
||||||
return _appSettings;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void setAppSettings( QSettings* settings )
|
|
||||||
{
|
|
||||||
_appSettings = settings;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace advsettings
|
} // namespace advsettings
|
||||||
|
|||||||
Reference in New Issue
Block a user