Commit 115b121e authored by Rafał Malinowski's avatar Rafał Malinowski

widgets: remove unused configuration widget

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 6ff0d892
......@@ -124,7 +124,6 @@ set (widgets_SRCS
configuration/config-check-box.cpp
configuration/config-color-button.cpp
configuration/config-combo-box.cpp
configuration/config-gg-password-edit.cpp
configuration/config-hot-key-edit.cpp
configuration/config-label.cpp
configuration/config-line-separator.cpp
......
/*
* %kadu copyright begin%
* Copyright 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im)
* Copyright 2010 Piotr Dąbrowski (ultr@ultr.pl)
* Copyright 2010, 2013, 2014 Bartosz Brachaczek (b.brachaczek@gmail.com)
* Copyright 2008, 2009, 2010, 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com)
* %kadu copyright end%
*
* This program 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.
*
* This program 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 <QtWidgets/QApplication>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include "configuration/configuration-window-data-manager.h"
#include "widgets/configuration/config-group-box.h"
#include "misc/misc.h"
#include "config-gg-password-edit.h"
#include "config-gg-password-edit.moc"
ConfigGGPasswordEdit::ConfigGGPasswordEdit(
const QString &section, const QString &item, const QString &widgetCaption, const QString &toolTip,
ConfigGroupBox *parentConfigGroupBox, ConfigurationWindowDataManager *dataManager)
: ConfigLineEdit(section, item, widgetCaption, toolTip, parentConfigGroupBox, dataManager)
{
setEchoMode(QLineEdit::Password);
}
ConfigGGPasswordEdit::ConfigGGPasswordEdit(
ConfigGroupBox *parentConfigGroupBox, ConfigurationWindowDataManager *dataManager)
: ConfigLineEdit(parentConfigGroupBox, dataManager)
{
setEchoMode(QLineEdit::Password);
}
void ConfigGGPasswordEdit::loadConfiguration()
{
if (!dataManager)
return;
setText(pwHash(dataManager->readEntry(section, item).toString()));
}
void ConfigGGPasswordEdit::saveConfiguration()
{
if (!dataManager)
return;
dataManager->writeEntry(section, item, QVariant(pwHash(text())));
}
/*
* %kadu copyright begin%
* Copyright 2011 Piotr Galiszewski (piotr.galiszewski@kadu.im)
* Copyright 2010 Bartosz Brachaczek (b.brachaczek@gmail.com)
* Copyright 2008, 2009, 2010, 2011, 2013, 2014 Rafał Przemysław Malinowski (rafal.przemyslaw.malinowski@gmail.com)
* %kadu copyright end%
*
* This program 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.
*
* This program 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 CONFIG_GG_PASSWORD_EDIT_H
#define CONFIG_GG_PASSWORD_EDIT_H
#include "widgets/configuration/config-line-edit.h"
#include "exports.h"
class ConfigGroupBox;
/**
&lt;gg-password-edit caption="caption" id="id" /&gt;
**/
class KADUAPI ConfigGGPasswordEdit : public ConfigLineEdit
{
Q_OBJECT
public:
ConfigGGPasswordEdit(
const QString &section, const QString &item, const QString &widgetCaption, const QString &toolTip,
ConfigGroupBox *parentConfigGroupBox, ConfigurationWindowDataManager *dataManager);
ConfigGGPasswordEdit(ConfigGroupBox *parentConfigGroupBox, ConfigurationWindowDataManager *dataManager);
virtual ~ConfigGGPasswordEdit()
{
}
virtual void loadConfiguration();
virtual void saveConfiguration();
};
#endif
......@@ -41,7 +41,6 @@
#include "widgets/configuration/config-check-box.h"
#include "widgets/configuration/config-color-button.h"
#include "widgets/configuration/config-combo-box.h"
#include "widgets/configuration/config-gg-password-edit.h"
#include "widgets/configuration/config-group-box.h"
#include "widgets/configuration/config-hot-key-edit.h"
#include "widgets/configuration/config-label.h"
......@@ -331,8 +330,6 @@ ConfigWidget *ConfigurationWidget::appendUiElementFromDom(QDomNode uiElementNode
if (tagName == "line-edit")
widget = m_injectedFactory->makeInjected<ConfigLineEdit>(configGroupBox, DataManager);
else if (tagName == "gg-password-edit")
widget = m_injectedFactory->makeInjected<ConfigGGPasswordEdit>(configGroupBox, DataManager);
else if (tagName == "check-box")
widget = m_injectedFactory->makeInjected<ConfigCheckBox>(configGroupBox, DataManager);
else if (tagName == "radio-button")
......
......@@ -30,26 +30,6 @@
#include "configuration/configuration-manager.h"
#include "core/injected-factory.h"
#include "os/generic/window-geometry-manager.h"
#include "widgets/configuration/config-action-button.h"
#include "widgets/configuration/config-check-box.h"
#include "widgets/configuration/config-color-button.h"
#include "widgets/configuration/config-combo-box.h"
#include "widgets/configuration/config-gg-password-edit.h"
#include "widgets/configuration/config-group-box.h"
#include "widgets/configuration/config-hot-key-edit.h"
#include "widgets/configuration/config-label.h"
#include "widgets/configuration/config-line-edit.h"
#include "widgets/configuration/config-line-separator.h"
#include "widgets/configuration/config-list-widget.h"
#include "widgets/configuration/config-path-list-edit.h"
#include "widgets/configuration/config-preview.h"
#include "widgets/configuration/config-section.h"
#include "widgets/configuration/config-select-file.h"
#include "widgets/configuration/config-select-font.h"
#include "widgets/configuration/config-slider.h"
#include "widgets/configuration/config-spin-box.h"
#include "widgets/configuration/config-syntax-editor.h"
#include "widgets/configuration/config-widget.h"
#include "widgets/configuration/configuration-widget.h"
#include "windows/kadu-window.h"
#include "activate.h"
......@@ -57,11 +37,9 @@
#include <QtGui/QKeyEvent>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QStyle>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include <QtXml/QDomElement>
ConfigurationWindow::ConfigurationWindow(
const QString &name, const QString &caption, const QString &section, ConfigurationWindowDataManager *dataManager,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment