From 0f77509d23af42616dc42ad4bdf07fec0172fa05 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 12 Apr 2009 12:56:38 +0000 Subject: [PATCH] Correct naming git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29230 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 8 ++++---- src/frontends/qt4/ui/PageLayoutUi.ui | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 879e498df4..b74e6536f0 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -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; diff --git a/src/frontends/qt4/ui/PageLayoutUi.ui b/src/frontends/qt4/ui/PageLayoutUi.ui index 39368a8d8c..446ad1c58f 100644 --- a/src/frontends/qt4/ui/PageLayoutUi.ui +++ b/src/frontends/qt4/ui/PageLayoutUi.ui @@ -281,7 +281,7 @@ - + -- 2.39.2