| 183 | } |
| 184 | |
| 185 | void LabelDialog::selectColorText() |
| 186 | { |
| 187 | |
| 188 | QColorDialog *colorDialog = new QColorDialog(this); |
| 189 | |
| 190 | if (colorDialog->exec() == QDialog::Rejected) { |
| 191 | delete colorDialog; |
| 192 | return; |
| 193 | } |
| 194 | |
| 195 | QColor color = colorDialog->selectedColor(); |
| 196 | delete colorDialog; |
| 197 | |
| 198 | colorTextStr_ = color.name(); |
| 199 | QPixmap pixmap(14, 14); |
| 200 | pixmap.fill(color); |
| 201 | colorTextButton_->setIcon(pixmap); |
| 202 | } |
| 203 | |
| 204 | void LabelDialog::defaultColorBg() |
| 205 | { |