this, SLOT(change_adaptor()));
connect(pageLayoutModule->pagestyleCO, SIGNAL(activated(int)),
this, SLOT(change_adaptor()));
- connect(pageLayoutModule->backgroundTB, SIGNAL(clicked()),
+ connect(pageLayoutModule->backgroundPB, SIGNAL(clicked()),
this, SLOT(changeBackgroundColor()));
connect(pageLayoutModule->delbackgroundTB, SIGNAL(clicked()),
this, SLOT(deleteBackgroundColor()));
if (!newColor.isValid())
return;
// set the button color
- pageLayoutModule->backgroundTB->setStyleSheet(
+ pageLayoutModule->backgroundPB->setStyleSheet(
colorButtonStyleSheet(newColor));
// save color
set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
void GuiDocument::deleteBackgroundColor()
{
// set the button color back to white
- pageLayoutModule->backgroundTB->setStyleSheet(
+ pageLayoutModule->backgroundPB->setStyleSheet(
colorButtonStyleSheet(QColor(Qt::white)));
// save white as the set color
set_backgroundcolor = rgbFromHexName("#ffffff");
pageLayoutModule->facingPagesCB->setChecked(
bp_.sides == TwoSides);
- pageLayoutModule->backgroundTB->setStyleSheet(
+ pageLayoutModule->backgroundPB->setStyleSheet(
colorButtonStyleSheet(rgb2qcolor(bp_.backgroundcolor)));
set_backgroundcolor = bp_.backgroundcolor;