Skip to content

Commit

Permalink
[lipstick] Remove legacy orientation lock file support. Contributes t…
Browse files Browse the repository at this point in the history
…o JB#38781

Changed done September 2014. Think it should be safe already to remove
compatibility support.
  • Loading branch information
pvuorela committed Jan 17, 2018
1 parent d60d9e8 commit 839dd4a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/compositor/lipstickcompositor.cpp
Expand Up @@ -21,7 +21,6 @@
#include <QDesktopServices>
#include <QtSensors/QOrientationSensor>
#include <QClipboard>
#include <QSettings>
#include <QMimeData>
#include <QtGui/qpa/qplatformnativeinterface.h>
#include "homeapplication.h"
Expand Down Expand Up @@ -71,14 +70,6 @@ LipstickCompositor::LipstickCompositor()
m_orientationLock = new MGConfItem("/lipstick/orientationLock", this);
connect(m_orientationLock, SIGNAL(valueChanged()), SIGNAL(orientationLockChanged()));

// Load legacy settings from the config file and delete it from there
QSettings legacySettings("nemomobile", "lipstick");
QString legacyOrientationKey("Compositor/orientationLock");
if (legacySettings.contains(legacyOrientationKey)) {
m_orientationLock->set(legacySettings.value(legacyOrientationKey));
legacySettings.remove(legacyOrientationKey);
}

connect(this, SIGNAL(visibleChanged(bool)), this, SLOT(onVisibleChanged(bool)));
QObject::connect(this, SIGNAL(afterRendering()), this, SLOT(windowSwapped()));
QObject::connect(HomeApplication::instance(), SIGNAL(aboutToDestroy()), this, SLOT(homeApplicationAboutToDestroy()));
Expand Down

0 comments on commit 839dd4a

Please sign in to comment.