mirror of
https://github.com/fralx/LimeReport.git
synced 2025-09-23 08:29:07 +03:00
Finish 1.4.100
This commit is contained in:
@@ -511,10 +511,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();
|
||||
|
@@ -1944,7 +1944,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());
|
||||
|
Reference in New Issue
Block a user