void AddRuleDialog::creaView() {

    foreach (const QString &name, QColor::colorNames()) {
        QColor color(name);
        cbBackground->addItem(colorSwatch(color), name, color);
        cbBorderColor->addItem(colorSwatch(color),name,color);
        cbSignColor->addItem(colorSwatch(color),name,color);
    }
Beispiel #2
0
void OptionsForm::createWidgets()
{
    colorComboBox = new QComboBox;
    foreach (const QString &name, QColor::colorNames()) {
        QColor color(name);
        colorComboBox->addItem(colorSwatch(color), name, color);
    }