0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-20 06:30:03 +03:00

Items context menu has been added

Fields drag & drop init  band datasource if it empty
This commit is contained in:
Arin Alexander
2017-02-24 07:13:43 +03:00
parent 117023e920
commit a2c93601d0
10 changed files with 177 additions and 12 deletions

View File

@@ -33,6 +33,7 @@
#include <QGraphicsScene>
#include <QPrinter>
#include <QMenu>
namespace LimeReport {
@@ -519,6 +520,14 @@ void PageItemDesignIntf::initPageSize(const QSizeF& size)
setHeight(size.height());
m_sizeChainging=false;
}
void PageItemDesignIntf::preparePopUpMenu(QMenu &menu)
{
foreach (QAction* action, menu.actions()) {
if (action->text().compare(tr("Paste")) != 0)
action->setVisible(false);
}
}
void PageItemDesignIntf::initPageSize(const PageItemDesignIntf::PageSize &size)
{
m_sizeChainging = true;