mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Copy & Cut abilities have been removed from band
This commit is contained in:
parent
d162c2e6a3
commit
3a30273377
@ -75,7 +75,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
||||
|
||||
LIMEREPORT_VERSION_MAJOR = 1
|
||||
LIMEREPORT_VERSION_MINOR = 4
|
||||
LIMEREPORT_VERSION_RELEASE = 99
|
||||
LIMEREPORT_VERSION_RELEASE = 100
|
||||
|
||||
LIMEREPORT_VERSION = '\\"$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}\\"'
|
||||
DEFINES += LIMEREPORT_VERSION_STR=\"$${LIMEREPORT_VERSION}\"
|
||||
|
@ -502,10 +502,15 @@ void BandDesignIntf::moveItemsDown(qreal startPos, qreal offset){
|
||||
|
||||
void BandDesignIntf::preparePopUpMenu(QMenu &menu)
|
||||
{
|
||||
|
||||
QList<QString> disabledActions;
|
||||
disabledActions << tr("Bring to top") <<
|
||||
tr("Send to back") <<
|
||||
tr("Cut") <<
|
||||
tr("Copy");
|
||||
|
||||
foreach (QAction* action, menu.actions()) {
|
||||
if (action->text().compare(tr("Bring to top")) == 0 ||
|
||||
action->text().compare(tr("Send to back")) == 0 )
|
||||
action->setEnabled(false);
|
||||
action->setEnabled(!disabledActions.contains(action->text()));
|
||||
}
|
||||
|
||||
menu.addSeparator();
|
||||
|
@ -1859,7 +1859,7 @@ CommandIf::Ptr CutCommand::create(PageDesignIntf *page)
|
||||
ItemsWriterIntf *writer = new XMLWriter();
|
||||
foreach(QGraphicsItem * item, page->selectedItems()) {
|
||||
if (!dynamic_cast<PageItemDesignIntf*>(item)){
|
||||
BaseDesignIntf *reportItem = dynamic_cast<BaseDesignIntf *>(item);
|
||||
ItemDesignIntf *reportItem = dynamic_cast<ItemDesignIntf *>(item);
|
||||
|
||||
if (reportItem) {
|
||||
command->m_itemNames.push_back(reportItem->objectName());
|
||||
|
Loading…
Reference in New Issue
Block a user