]> git.lyx.org Git - features.git/commitdiff
Correct naming
authorPavel Sanda <sanda@lyx.org>
Sun, 12 Apr 2009 12:56:38 +0000 (12:56 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 12 Apr 2009 12:56:38 +0000 (12:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29230 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/ui/PageLayoutUi.ui

index 879e498df4499e8a95c5c9703e3ac118ecc2deb7..b74e6536f058b3165254a5f30e2fcb87d51d2db6 100644 (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;
 
index 39368a8d8cc758c19102d887d856c18e12b59fb9..446ad1c58f4f16944625b8658ad700f90112de1b 100644 (file)
    <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>