zz_configDialog.cpp

changeset 161
c9fba92c4e35
parent 160
edcb03f3ef75
child 165
88a03c1a52d9
--- a/zz_configDialog.cpp	Sat May 04 18:31:03 2013 +0300
+++ b/zz_configDialog.cpp	Sat May 04 19:14:16 2013 +0300
@@ -69,7 +69,7 @@
 	layout->addWidget (bbx_buttons);
 	setLayout (layout);
 	
-	setWindowTitle (APPNAME_DISPLAY " - Settings");
+	setWindowTitle (APPNAME " - Settings");
 	setWindowIcon (getIcon ("settings"));
 }
 
@@ -286,10 +286,10 @@
 	for (int i = 0; i < g_NumGrids; ++i) {
 		// Icon
 		lb_gridIcons[i] = new QLabel;
-		lb_gridIcons[i]->setPixmap (getIcon (format ("grid-%s", str (g_GridInfo[i].name).tolower ().chars ())));
+		lb_gridIcons[i]->setPixmap (getIcon (fmt ("grid-%s", str (g_GridInfo[i].name).tolower ().chars ())));
 		
 		// Text label
-		lb_gridLabels[i] = new QLabel (format ("%s:", g_GridInfo[i].name));
+		lb_gridLabels[i] = new QLabel (fmt ("%s:", g_GridInfo[i].name));
 		
 		QHBoxLayout* labellayout = new QHBoxLayout;
 		labellayout->addWidget (lb_gridIcons[i]);
@@ -504,7 +504,7 @@
 	qButton->setIcon (getIcon ("colorselect"));
 	qButton->setAutoFillBackground (true);
 	qButton->setStyleSheet (
-		format ("background-color: %s", zValue.chars()).chars()
+		fmt ("background-color: %s", zValue.chars()).chars()
 	);
 }
 
@@ -587,7 +587,7 @@
 	str zLabel = qAct->iconText ();
 	str zKeybind = qAct->shortcut ().toString ();
 	
-	qItem->setText (format ("%s (%s)", zLabel.chars () ,zKeybind.chars ()).chars());
+	qItem->setText (fmt ("%s (%s)", zLabel.chars () ,zKeybind.chars ()).chars());
 }
 
 // =============================================================================
@@ -694,7 +694,7 @@
 void KeySequenceDialog::updateOutput () {
 	str zShortcut = seq.toString ();
 	
-	str zText = format ("<center><b>%s</b></center>", zShortcut.chars ());
+	str zText = fmt ("<center><b>%s</b></center>", zShortcut.chars ());
 	
 	lb_output->setText (zText);
 }

mercurial