void FontColourChooser::setSampleColour() { QColor bg = mBgColourButton->color(); mFontChooser->setBackgroundColor(bg); QColor fg = fgColour(); mFontChooser->setColor(fg); }
void FontColourChooser::setSampleColour() { QColor bg = mBgColourButton->color(); mFontChooser->setBackgroundColor(bg); QColor fg = fgColour(); mFontChooser->setColor(fg); if(mRemoveColourButton) mRemoveColourButton->setEnabled(!mBgColourButton->isCustomColour()); // no deletion of custom colour }