src/configuration.h

changeset 739
152b33a6d51b
parent 655
b376645315ab
child 757
8ab9fa53142b
--- a/src/configuration.h	Sun Apr 27 04:15:25 2014 +0300
+++ b/src/configuration.h	Sun Apr 27 04:23:09 2014 +0300
@@ -37,7 +37,7 @@
 // =========================================================
 class Config
 {
-	PROPERTY (private, QString, name, setName, STOCK_WRITE)
+	PROPERTY (private, String, name, setName, STOCK_WRITE)
 
 	public:
 		enum Type
@@ -52,14 +52,14 @@
 		};
 
 		using IntType			= int;
-		using StringType		= QString;
+		using StringType		= String;
 		using FloatType			= float;
 		using BoolType			= bool;
 		using KeySequenceType	= QKeySequence;
 		using ListType			= QList<QVariant>;
 		using VertexType		= Vertex;
 
-		Config (QString name);
+		Config (String name);
 
 		virtual QVariant	getDefaultAsVariant() const = 0;
 		virtual Type		getType() const = 0;
@@ -72,8 +72,8 @@
 		static bool load();
 		static bool save();
 		static void reset();
-		static QString dirpath();
-		static QString filepath (QString file);
+		static String dirpath();
+		static String filepath (String file);
 
 	protected:
 		static void addToArray (Config* ptr);
@@ -84,7 +84,7 @@
 public:																			\
 	using ValueType = Config::NAME##Type;										\
 																				\
-	NAME##Config (ValueType* valueptr, QString name, ValueType def) :			\
+	NAME##Config (ValueType* valueptr, String name, ValueType def) :			\
 		Config (name),															\
 		m_valueptr (valueptr),													\
 		m_default (def)															\
@@ -138,7 +138,7 @@
 		return QVariant::fromValue<ValueType> (m_default);						\
 	}																			\
 																				\
-	static NAME##Config* getByName (QString name);								\
+	static NAME##Config* getByName (String name);								\
 																				\
 private:																		\
 	ValueType*	m_valueptr;														\

mercurial