aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-theme-engine/src/lthemeengine-style
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/lumina-theme-engine/src/lthemeengine-style')
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengine-style.pro4
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp10
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.h12
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp10
4 files changed, 18 insertions, 18 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengine-style.pro b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengine-style.pro
index f8584138..0b40de64 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengine-style.pro
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengine-style.pro
@@ -15,12 +15,12 @@ INCLUDEPATH += ../
HEADERS += \
lthemeengineproxystyle.h \
- ../lthemeengine/qt5ct.h
+ ../lthemeengine/lthemeengine.h
SOURCES += \
plugin.cpp \
lthemeengineproxystyle.cpp \
- ../lthemeengine/qt5ct.cpp
+ ../lthemeengine/lthemeengine.cpp
OTHER_FILES += \
lthemeengine.json
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp
index 8e72aff2..23ad01ef 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.cpp
@@ -27,23 +27,23 @@
*/
#include <QSettings>
-#include <lthemeengine/qt5ct.h>
+#include <lthemeengine/lthemeengine.h>
#include "lthemeengineproxystyle.h"
-Qt5CTProxyStyle::Qt5CTProxyStyle(const QString &key) :
+lthemeengineProxyStyle::Qt5CTProxyStyle(const QString &key) :
QProxyStyle(key)
{
- QSettings settings(Qt5CT::configFile(), QSettings::IniFormat);
+ QSettings settings(lthemeengine::configFile(), QSettings::IniFormat);
m_dialogButtonsHaveIcons = settings.value("Interface/dialog_buttons_have_icons", Qt::PartiallyChecked).toInt();
m_activateItemOnSingleClick = settings.value("Interface/activate_item_on_single_click", Qt::PartiallyChecked).toInt();
}
-Qt5CTProxyStyle::~Qt5CTProxyStyle()
+lthemeengineProxyStyle::~Qt5CTProxyStyle()
{
//qDebug("%s", Q_FUNC_INFO);
}
-int Qt5CTProxyStyle::styleHint(QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const
+int lthemeengineProxyStyle::styleHint(QStyle::StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const
{
if(hint == QStyle::SH_DialogButtonBox_ButtonsHaveIcons)
{
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.h b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.h
index 842247cf..47a18099 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.h
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/lthemeengineproxystyle.h
@@ -26,18 +26,18 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef QT5CTPROXYSTYLE_H
-#define QT5CTPROXYSTYLE_H
+#ifndef LTHEMEENGINEPROXYSTYLE_H
+#define LTHEMEENGINEPROXYSTYLE_H
#include <QProxyStyle>
-class Qt5CTProxyStyle : public QProxyStyle
+class lthemeengineProxyStyle : public QProxyStyle
{
Q_OBJECT
public:
- explicit Qt5CTProxyStyle(const QString &key);
+ explicit lthemeengineProxyStyle(const QString &key);
- virtual ~Qt5CTProxyStyle();
+ virtual ~lthemeengineProxyStyle();
int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const;
@@ -47,4 +47,4 @@ private:
};
-#endif // QT5CTPROXYSTYLE_H
+#endif // LTHEMEENGINEPROXYSTYLE_H
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
index 35ff6477..9d63093e 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine-style/plugin.cpp
@@ -29,10 +29,10 @@
#include <QStylePlugin>
#include <QSettings>
#include <QStyleFactory>
-#include <lthemeengine/qt5ct.h>
+#include <lthemeengine/lthemeengine.h>
#include "lthemeengineproxystyle.h"
-class Qt5CTStylePlugin : public QStylePlugin
+class lthemeengineStylePlugin : public QStylePlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QStyleFactoryInterface" FILE "lthemeengine.json")
@@ -41,15 +41,15 @@ public:
QStyle *create(const QString &key);
};
-QStyle *Qt5CTStylePlugin::create(const QString &key)
+QStyle *lthemeengineStylePlugin::create(const QString &key)
{
if (key == "lthemeengine-style")
{
- QSettings settings(Qt5CT::configFile(), QSettings::IniFormat);
+ QSettings settings(lthemeengine::configFile(), QSettings::IniFormat);
QString style = settings.value("Appearance/style", "Fusion").toString();
if(key == style || !QStyleFactory::keys().contains(style))
style = "Fusion";
- return new Qt5CTProxyStyle(style);
+ return new lthemeengineProxyStyle(style);
}
return 0;
}
bgstack15