src/addObjectDialog.cc

changeset 739
152b33a6d51b
parent 733
cc39df788660
child 767
44f0d5322628
--- a/src/addObjectDialog.cc	Sun Apr 27 04:15:25 2014 +0300
+++ b/src/addObjectDialog.cc	Sun Apr 27 04:23:09 2014 +0300
@@ -59,7 +59,7 @@
 	setlocale (LC_ALL, "C");
 
 	int coordCount = 0;
-	QString typeName = LDObject::typeName (type);
+	String typeName = LDObject::typeName (type);
 
 	switch (type)
 	{
@@ -286,7 +286,7 @@
 
 // =============================================================================
 // =============================================================================
-QString AddObjectDialog::currentSubfileName()
+String AddObjectDialog::currentSubfileName()
 {
 	SubfileListItem* item = static_cast<SubfileListItem*> (tw_subfileList->currentItem());
 
@@ -308,7 +308,7 @@
 // =============================================================================
 void AddObjectDialog::slot_subfileTypeChanged()
 {
-	QString name = currentSubfileName();
+	String name = currentSubfileName();
 
 	if (name.length() > 0)
 		le_subfileName->setText (name);
@@ -349,14 +349,14 @@
 
 	if (type == LDObject::ESubfile)
 	{
-		QStringList matrixstrvals = dlg.le_matrix->text().split (" ", QString::SkipEmptyParts);
+		QStringList matrixstrvals = dlg.le_matrix->text().split (" ", String::SkipEmptyParts);
 
 		if (matrixstrvals.size() == 9)
 		{
 			double matrixvals[9];
 			int i = 0;
 
-			for (QString val : matrixstrvals)
+			for (String val : matrixstrvals)
 				matrixvals[i++] = val.toFloat();
 
 			transform = Matrix (matrixvals);
@@ -408,7 +408,7 @@
 
 		case LDObject::ESubfile:
 		{
-			QString name = dlg.le_subfileName->text();
+			String name = dlg.le_subfileName->text();
 
 			if (name.length() == 0)
 				return; // no subfile filename

mercurial