]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/privacybrowserpcview.cpp
At the PO template (translation) framework.
[PrivacyBrowserPC.git] / src / privacybrowserpcview.cpp
index 84e5eed2b801cb16708a1280ffe9ba3dfcd339e2..8369f99391d8907bad3bac343b28c37e9f7ea726 100644 (file)
@@ -7,8 +7,8 @@
 // application headers
 #include "privacybrowserpcview.h"
 
-#include "PrivacyBrowserPCSettings.h"
-#include "privacybrowserpcdebug.h"
+#include "settings.h"
+#include "privacybrowserdebug.h"
 
 
 PrivacyBrowserPCView::PrivacyBrowserPCView(QWidget *parent)
@@ -25,9 +25,9 @@ PrivacyBrowserPCView::~PrivacyBrowserPCView()
 void PrivacyBrowserPCView::switchColors()
 {
     // switch the foreground/background colors of the label
-    QColor color = PrivacyBrowserPCSettings::colorBackground();
-    PrivacyBrowserPCSettings::setColorBackground(PrivacyBrowserPCSettings::colorForeground());
-    PrivacyBrowserPCSettings::setColorForeground(color);
+    QColor color = Settings::colorBackground();
+    Settings::setColorBackground(Settings::colorForeground());
+    Settings::setColorForeground(color);
 
     handleSettingsChanged();
 }
@@ -36,11 +36,11 @@ void PrivacyBrowserPCView::handleSettingsChanged()
 {
     qCDebug(PRIVACYBROWSER) << "PrivacyBrowserPCView::handleSettingsChanged()";
     QPalette palette = m_ui.templateLabel->palette();
-    palette.setColor(QPalette::Window, PrivacyBrowserPCSettings::colorBackground());
-    palette.setColor(QPalette::WindowText, PrivacyBrowserPCSettings::colorForeground());
+    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", PrivacyBrowserPCSettings::ageInDays()));
+    m_ui.templateLabel->setText(i18n("This project is %1 days old", Settings::ageInDays()));
 }