src/addObjectDialog.cc

changeset 789
4b7306f52bb5
parent 786
71d786ce0dcc
child 790
fe1b83f6ba82
--- a/src/addObjectDialog.cc	Mon Jun 02 14:34:23 2014 +0300
+++ b/src/addObjectDialog.cc	Tue Jun 03 20:28:10 2014 +0300
@@ -59,7 +59,7 @@
 	setlocale (LC_ALL, "C");
 
 	int coordCount = 0;
-	String typeName = LDObject::typeName (type);
+	QString typeName = LDObject::typeName (type);
 
 	switch (type)
 	{
@@ -283,7 +283,7 @@
 
 // =============================================================================
 // =============================================================================
-String AddObjectDialog::currentSubfileName()
+QString AddObjectDialog::currentSubfileName()
 {
 	SubfileListItem* item = static_cast<SubfileListItem*> (tw_subfileList->currentItem());
 
@@ -305,7 +305,7 @@
 // =============================================================================
 void AddObjectDialog::slot_subfileTypeChanged()
 {
-	String name = currentSubfileName();
+	QString name = currentSubfileName();
 
 	if (name.length() > 0)
 		le_subfileName->setText (name);
@@ -346,14 +346,14 @@
 
 	if (type == OBJ_Subfile)
 	{
-		QStringList matrixstrvals = dlg.le_matrix->text().split (" ", String::SkipEmptyParts);
+		QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts);
 
 		if (matrixstrvals.size() == 9)
 		{
 			double matrixvals[9];
 			int i = 0;
 
-			for (String val : matrixstrvals)
+			for (QString val : matrixstrvals)
 				matrixvals[i++] = val.toFloat();
 
 			transform = Matrix (matrixvals);
@@ -405,7 +405,7 @@
 
 		case OBJ_Subfile:
 		{
-			String name = dlg.le_subfileName->text();
+			QString name = dlg.le_subfileName->text();
 
 			if (name.length() == 0)
 				return; // no subfile filename

mercurial