Correct naming

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29230 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-04-12 12:56:38 +00:00
parent a9ffac3052
commit 0f77509d23
2 changed files with 5 additions and 5 deletions

View File

@ -679,7 +679,7 @@ GuiDocument::GuiDocument(GuiView & lv)
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()));
@ -1194,7 +1194,7 @@ void GuiDocument::changeBackgroundColor()
if (!newColor.isValid())
return;
// set the button color
pageLayoutModule->backgroundTB->setStyleSheet(
pageLayoutModule->backgroundPB->setStyleSheet(
colorButtonStyleSheet(newColor));
// save color
set_backgroundcolor = rgbFromHexName(fromqstr(newColor.name()));
@ -1205,7 +1205,7 @@ void GuiDocument::changeBackgroundColor()
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");
@ -2316,7 +2316,7 @@ void GuiDocument::paramsToDialog()
pageLayoutModule->facingPagesCB->setChecked(
bp_.sides == TwoSides);
pageLayoutModule->backgroundTB->setStyleSheet(
pageLayoutModule->backgroundPB->setStyleSheet(
colorButtonStyleSheet(rgb2qcolor(bp_.backgroundcolor)));
set_backgroundcolor = bp_.backgroundcolor;

View File

@ -281,7 +281,7 @@
<item row="9" column="5" colspan="2" >
<layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
<widget class="QPushButton" name="backgroundTB" >
<widget class="QPushButton" name="backgroundPB" >
<property name="text" >
<string/>
</property>