remove deprecated class from layout

pull/5/head
Michail Vourlakos 6 years ago
parent 260307d16f
commit 2767c0f4a0

@ -11,7 +11,6 @@ set(lattedock-app_SRCS
screenpool.cpp
indicator/factory.cpp
layout/layout.cpp
layout/shortcuts.cpp
package/lattepackage.cpp
plasma/extended/screenpool.cpp
plasma/extended/theme.cpp

@ -21,7 +21,6 @@
#include "layout.h"
// local
#include "shortcuts.h"
#include "../importer.h"
#include "../lattecorona.h"
#include "../layoutmanager.h"
@ -70,10 +69,6 @@ Layout::Layout(QObject *parent, QString layoutFile, QString assignedName)
Layout::~Layout()
{
if (m_shortcuts) {
m_shortcuts->deleteLater();
}
if (!m_layoutFile.isEmpty()) {
m_layoutGroup.sync();
}
@ -195,10 +190,6 @@ void Layout::initToCorona(Latte::Corona *corona)
m_corona = corona;
if (!m_shortcuts) {
m_shortcuts = new LayoutPart::Shortcuts(this);
}
for (const auto containment : m_corona->containments()) {
if (m_corona->layoutManager()->memoryUsage() == Types::SingleLayout) {
addContainment(containment);

@ -46,9 +46,6 @@ class Types;
namespace Latte {
class Corona;
class View;
namespace LayoutPart {
class Shortcuts;
}
}
namespace Latte {
@ -272,7 +269,6 @@ private:
QStringList m_unloadedContainmentsIds;
Latte::Corona *m_corona{nullptr};
QPointer<Latte::LayoutPart::Shortcuts> m_shortcuts;
KConfigGroup m_layoutGroup;

@ -1,36 +0,0 @@
/*
* Copyright 2019 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "shortcuts.h"
namespace Latte {
namespace LayoutPart {
Shortcuts::Shortcuts(QObject *parent)
: QObject(parent)
{
}
Shortcuts::~Shortcuts()
{
}
}
}

@ -1,47 +0,0 @@
/*
* Copyright 2019 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LAYOUTSHORTCUTS_H
#define LAYOUTSHORTCUTS_H
// Qt
#include <QObject>
// KDE
#include <KConfigGroup>
#include <KSharedConfig>
namespace Latte {
namespace LayoutPart {
class Shortcuts: public QObject {
Q_OBJECT
public:
Shortcuts(QObject *parent);
~Shortcuts() override;
private:
};
}
}
#endif
Loading…
Cancel
Save