zz_setContentsDialog.cpp

changeset 158
499286fcbf37
parent 135
c243df39913e
child 160
edcb03f3ef75
equal deleted inserted replaced
157:635da3135bd4 158:499286fcbf37
43 if (obj->getType() == OBJ_Gibberish) { 43 if (obj->getType() == OBJ_Gibberish) {
44 lb_error = new QLabel; 44 lb_error = new QLabel;
45 lb_error->setText (format ("<span style=\"color: #900\">%s</span>", 45 lb_error->setText (format ("<span style=\"color: #900\">%s</span>",
46 static_cast<LDGibberish*> (obj)->zReason.chars())); 46 static_cast<LDGibberish*> (obj)->zReason.chars()));
47 47
48 QPixmap qErrorPixmap = QPixmap ("icons/error.png").scaledToHeight (16); 48 QPixmap qErrorPixmap = getIcon ("error").scaledToHeight (16);
49 49
50 lb_errorIcon = new QLabel; 50 lb_errorIcon = new QLabel;
51 lb_errorIcon->setPixmap (qErrorPixmap); 51 lb_errorIcon->setPixmap (qErrorPixmap);
52 } 52 }
53 53
66 66
67 layout2->addWidget (bbx_buttons); 67 layout2->addWidget (bbx_buttons);
68 layout->addLayout (layout2); 68 layout->addLayout (layout2);
69 setLayout (layout); 69 setLayout (layout);
70 70
71 setWindowTitle (APPNAME_DISPLAY " - setting contents"); 71 setWindowTitle (APPNAME_DISPLAY ": Set Contents");
72 setWindowIcon (QIcon ("icons/set-contents.png")); 72 setWindowIcon (getIcon ("set-contents"));
73 } 73 }
74 74
75 // ============================================================================= 75 // =============================================================================
76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 76 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
77 // ============================================================================= 77 // =============================================================================

mercurial