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