]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/privacybrowserpcview.cpp
Make Privacy Browser installable.
[PrivacyBrowserPC.git] / src / privacybrowserpcview.cpp
diff --git a/src/privacybrowserpcview.cpp b/src/privacybrowserpcview.cpp
deleted file mode 100644 (file)
index 8369f99..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-    SPDX-FileCopyrightText: %{CURRENT_YEAR} %{AUTHOR} <%{EMAIL}>
-
-    SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
-*/
-
-// application headers
-#include "privacybrowserpcview.h"
-
-#include "settings.h"
-#include "privacybrowserdebug.h"
-
-
-PrivacyBrowserPCView::PrivacyBrowserPCView(QWidget *parent)
-    : QWidget(parent)
-{
-    m_ui.setupUi(this);
-    handleSettingsChanged();
-}
-
-PrivacyBrowserPCView::~PrivacyBrowserPCView()
-{
-}
-
-void PrivacyBrowserPCView::switchColors()
-{
-    // switch the foreground/background colors of the label
-    QColor color = Settings::colorBackground();
-    Settings::setColorBackground(Settings::colorForeground());
-    Settings::setColorForeground(color);
-
-    handleSettingsChanged();
-}
-
-void PrivacyBrowserPCView::handleSettingsChanged()
-{
-    qCDebug(PRIVACYBROWSER) << "PrivacyBrowserPCView::handleSettingsChanged()";
-    QPalette palette = m_ui.templateLabel->palette();
-    palette.setColor(QPalette::Window, Settings::colorBackground());
-    palette.setColor(QPalette::WindowText, Settings::colorForeground());
-    m_ui.templateLabel->setPalette(palette);
-
-    // i18n : internationalization
-    m_ui.templateLabel->setText(i18n("This project is %1 days old", Settings::ageInDays()));
-}
-