]> git.lyx.org Git - features.git/commitdiff
GuiTabular.cpp: add comments
authorUwe Stöhr <uwestoehr@web.de>
Wed, 3 Nov 2010 01:29:01 +0000 (01:29 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 3 Nov 2010 01:29:01 +0000 (01:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36011 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiTabular.cpp

index 1a1dd29f50e78628c695f87837ed5e0d3e794bfb..eb137870112d9cba1b90e4192b278184fefe0d22 100644 (file)
@@ -197,6 +197,8 @@ void GuiTabular::checkEnabled()
        headerBorderBelowCB->setEnabled(longtabular
                && headerStatusCB->isChecked());
 
+       // first header can only be suppressed when there is a header
+       // firstheader_suppressable_ is set in paramsToDialog
        firstheaderNoContentsCB->setEnabled(longtabular && firstheader_suppressable_);
        // check if setting a first header is allowed
        // additionally check firstheaderNoContentsCB because when this is
@@ -214,6 +216,8 @@ void GuiTabular::checkEnabled()
        footerBorderBelowCB->setEnabled(longtabular
                && footerBorderAboveCB->isChecked());
 
+       // last footer can only be suppressed when there is a footer
+       // lastfooter_suppressable_ is set in paramsToDialog
        lastfooterNoContentsCB->setEnabled(longtabular && lastfooter_suppressable_);
        // check if setting a last footer is allowed
        // additionally check lastfooterNoContentsCB because when this is