From bed474e68711ef8d3e347a6ea5107bbe521b3bdb Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Wed, 5 Sep 2007 16:12:46 +0200
Subject: [PATCH] Variant factories know the name and the theme proxy.
---
src/hlvariant/tagua_wrapped.h | 8 ++++++++
src/tagua.h | 2 ++
src/variants.cpp | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/hlvariant/tagua_wrapped.h b/src/hlvariant/tagua_wrapped.h
index d8f4b66..bb1caa9 100644
--- a/src/hlvariant/tagua_wrapped.h
+++ b/src/hlvariant/tagua_wrapped.h
@@ -494,6 +494,14 @@ namespace HLVariant {
virtual VariantInfo* createVariant() const {
return new WrappedVariantInfo;
}
+
+ virtual QString name() const {
+ return Variant::m_name;
+ }
+
+ virtual QString themeProxy() const {
+ return Variant::m_theme_proxy;
+ }
};
}
diff --git a/src/tagua.h b/src/tagua.h
index 627c1cc..1a9edb5 100644
--- a/src/tagua.h
+++ b/src/tagua.h
@@ -388,6 +388,8 @@ class VariantFactory {
public:
virtual ~VariantFactory() { }
virtual VariantInfo* createVariant() const = 0;
+ virtual QString name() const = 0;
+ virtual QString themeProxy() const = 0;
};
diff --git a/src/variants.cpp b/src/variants.cpp
index 3f941ce..d595de4 100644
--- a/src/variants.cpp
+++ b/src/variants.cpp
@@ -22,7 +22,7 @@ using namespace HLVariant;
template
void register_variant(Variants* variants) {
variants->addFactory(
- Variant::m_name,
+ Variant::m_name,
new WrappedVariantFactory);
}
--
2.11.4.GIT