From ed8c4669dc7ed209ed0f3aae2d7fc4c0f15d50fa Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 18 Dec 2017 21:33:20 +0300 Subject: [PATCH] Keep top space action added to context menu --- limereport/lrbanddesignintf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/limereport/lrbanddesignintf.cpp b/limereport/lrbanddesignintf.cpp index a56cf9c..c9ab208 100644 --- a/limereport/lrbanddesignintf.cpp +++ b/limereport/lrbanddesignintf.cpp @@ -495,6 +495,10 @@ void BandDesignIntf::preparePopUpMenu(QMenu &menu) currAction->setCheckable(true); currAction->setChecked(keepBottomSpaceOption()); + currAction = menu.addAction(tr("Keep top space")); + currAction->setCheckable(true); + currAction->setChecked(keepTopSpace()); + currAction = menu.addAction(tr("Start from new page")); currAction->setCheckable(true); currAction->setChecked(startFromNewPage()); @@ -515,6 +519,9 @@ void BandDesignIntf::processPopUpAction(QAction *action) if (action->text().compare(tr("Keep bottom space")) == 0){ setProperty("keepBottomSpace",action->isChecked()); } + if (action->text().compare(tr("Keep top space")) == 0){ + setProperty("keepTopSpace",action->isChecked()); + } if (action->text().compare(tr("Start new page")) == 0){ setProperty("startNewPage",action->isChecked()); }