mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-22 10:27:32 +03:00
Copy & Cut abilities have been removed from band
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user