zz_setContentsDialog.cpp

changeset 82
e61c50fdb8cc
parent 61
109b07334fa0
child 90
03f718ed5b33
--- a/zz_setContentsDialog.cpp	Tue Apr 09 18:07:57 2013 +0300
+++ b/zz_setContentsDialog.cpp	Tue Apr 09 18:16:01 2013 +0300
@@ -43,6 +43,11 @@
 		qErrorLabel = new QLabel;
 		qErrorLabel->setText (str::mkfmt ("<span style=\"color: #900\">%s</span>",
 			static_cast<LDGibberish*> (obj)->zReason.chars()));
+		
+		QPixmap qErrorPixmap = QPixmap ("icons/error.png").scaledToHeight (16);
+		
+		qErrorIcon = new QLabel;
+		qErrorIcon->setPixmap (qErrorPixmap);
 	}
 	
 	IMPLEMENT_DIALOG_BUTTONS
@@ -53,8 +58,10 @@
 	
 	QHBoxLayout* layout2 = new QHBoxLayout;
 	
-	if (obj->getType() == OBJ_Gibberish)
+	if (obj->getType() == OBJ_Gibberish) {
+		layout2->addWidget (qErrorIcon);
 		layout2->addWidget (qErrorLabel);
+	}
 	
 	layout2->addWidget (qButtons);
 	layout->addLayout (layout2);

mercurial