MCPcopy Create free account
hub / github.com/QuiteRSS/quiterss / selectColorText

Method selectColorText

src/labeldialog.cpp:185–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void 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
204void LabelDialog::defaultColorBg()
205{

Callers

nothing calls this directly

Calls 3

execMethod · 0.80
nameMethod · 0.80
setIconMethod · 0.80

Tested by

no test coverage detected