371 if (entry.bSeparator) |
371 if (entry.bSeparator) |
372 qColorToolBar->addSeparator (); |
372 qColorToolBar->addSeparator (); |
373 else { |
373 else { |
374 QPushButton* qColorButton = new QPushButton; |
374 QPushButton* qColorButton = new QPushButton; |
375 qColorButton->setAutoFillBackground (true); |
375 qColorButton->setAutoFillBackground (true); |
376 qColorButton->setStyleSheet (str::mkfmt ("background-color: %s", entry.col->zColorString.chars())); |
376 qColorButton->setStyleSheet (format ("background-color: %s", entry.col->zColorString.chars())); |
377 qColorButton->setToolTip (entry.col->zName); |
377 qColorButton->setToolTip (entry.col->zName); |
378 |
378 |
379 connect (qColorButton, SIGNAL (clicked ()), this, SLOT (slot_quickColor ())); |
379 connect (qColorButton, SIGNAL (clicked ()), this, SLOT (slot_quickColor ())); |
380 qColorToolBar->addWidget (qColorButton); |
380 qColorToolBar->addWidget (qColorButton); |
381 qaColorButtons.push_back (qColorButton); |
381 qaColorButtons.push_back (qColorButton); |
808 |
808 |
809 // ========================================================================= // |
809 // ========================================================================= // |
810 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
810 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
811 // ========================================================================= // |
811 // ========================================================================= // |
812 QIcon getIcon (const char* sIconName) { |
812 QIcon getIcon (const char* sIconName) { |
813 return (QIcon (str::mkfmt ("./icons/%s.png", sIconName))); |
813 return (QIcon (format ("./icons/%s.png", sIconName))); |
814 } |
814 } |
815 |
815 |
816 // ========================================================================= // |
816 // ========================================================================= // |
817 bool confirm (str zMessage) { |
817 bool confirm (str zMessage) { |
818 return QMessageBox::question (g_ForgeWindow, "Confirm", zMessage, |
818 return QMessageBox::question (g_ForgeWindow, "Confirm", zMessage, |