MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / on_pushButtonBackgroundColor_clicked

Method on_pushButtonBackgroundColor_clicked

src/WizPreferenceDialog.cpp:476–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476void WizPreferenceWindow::on_pushButtonBackgroundColor_clicked()
477{
478 QColorDialog dlg;
479 QString color = m_app.userSettings().editorBackgroundColor();
480 if (!color.isEmpty()) {
481 dlg.setCurrentColor(color);
482 }
483 if (dlg.exec() == QDialog::Accepted)
484 {
485 QString strColor = dlg.currentColor().name();
486 updateEditorBackgroundColor(strColor);
487 }
488}
489
490void WizPreferenceWindow::on_pushButtonClearBackground_clicked()
491{

Callers

nothing calls this directly

Calls 4

editorBackgroundColorMethod · 0.80
isEmptyMethod · 0.80
execMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected