src/ConfigurationDialog.cc

changeset 644
93dcd1a0e4bd
parent 642
751a8df42842
child 646
1ccb092cebed
--- a/src/ConfigurationDialog.cc	Wed Mar 05 05:31:07 2014 +0200
+++ b/src/ConfigurationDialog.cc	Wed Mar 05 12:47:00 2014 +0200
@@ -218,10 +218,10 @@
 	{
 		// Icon
 		lb_gridIcons[i] = new QLabel;
-		lb_gridIcons[i]->setPixmap (getIcon (fmt ("grid-%1", QString (g_GridInfo[i].name).toLower())));
+		lb_gridIcons[i]->setPixmap (getIcon (format ("grid-%1", QString (g_GridInfo[i].name).toLower())));
 
 		// Text label
-		lb_gridLabels[i] = new QLabel (fmt ("%1:", g_GridInfo[i].name));
+		lb_gridLabels[i] = new QLabel (format ("%1:", g_GridInfo[i].name));
 
 		QHBoxLayout* labellayout = new QHBoxLayout;
 		labellayout->addWidget (lb_gridIcons[i]);
@@ -587,7 +587,7 @@
 {
 	button->setIcon (getIcon ("colorselect"));
 	button->setAutoFillBackground (true);
-	button->setStyleSheet (fmt ("background-color: %1", value));
+	button->setStyleSheet (format ("background-color: %1", value));
 }
 
 // =============================================================================
@@ -693,7 +693,7 @@
 	}
 
 	assert (info != null);
-	QString fpath = QFileDialog::getOpenFileName (this, fmt ("Path to %1", info->name), *info->path, g_extProgPathFilter);
+	QString fpath = QFileDialog::getOpenFileName (this, format ("Path to %1", info->name), *info->path, g_extProgPathFilter);
 
 	if (fpath.isEmpty())
 		return;
@@ -720,7 +720,7 @@
 	QAction* act = item->action();
 	QString label = act->iconText();
 	QString keybind = item->keyConfig()->getValue().toString();
-	item->setText (fmt ("%1 (%2)", label, keybind));
+	item->setText (format ("%1 (%2)", label, keybind));
 }
 
 // =============================================================================
@@ -738,7 +738,7 @@
 		if (entry.isSeparator())
 			val += '|';
 		else
-			val += fmt ("%1", entry.color()->index);
+			val += format ("%1", entry.color()->index);
 	}
 
 	return val;
@@ -791,7 +791,7 @@
 	if (seq == QKeySequence())
 		shortcut = "<empty>";
 
-	QString text = fmt ("<center><b>%1</b></center>", shortcut);
+	QString text = format ("<center><b>%1</b></center>", shortcut);
 	lb_output->setText (text);
 }
 

mercurial