Exemplo n.º 1
0
QkUiApplication::QkUiApplication(int& pArgc, char** pArgv, const QString& pCompanyName, const QString& pAppName)
    : QApplication(pArgc, pArgv)
{
    setApplicationName(pAppName);
    setOrganizationName(pCompanyName);
    initMyResource();
}
Exemplo n.º 2
0
Overlay::Overlay(QGraphicsItem* parent, QObject* parentObject): BandInterface(parent, parentObject)
{
	initMyResource();
	setBandType(Report::BandInterface::Overlay);
	setResizeFlags(ResizeLeft | ResizeTop | ResizeRight | ResizeBottom);
	setHeight(50/UNIT);
	setWidth(50/UNIT);
}
Exemplo n.º 3
0
Image::Image(QGraphicsItem* parent, QObject* parentObject) : ItemInterface(parent, parentObject)
{
    m_paintType = RESIZE_IMAGE_TO_ITEM_KEEP_ASPECT_RATIO;
	m_frameType = NO_FRAME;
	m_comment = "picture";
	m_textColor = Qt::black;
	m_borderColor = Qt::black;
	m_borderWidth = 0;
	m_drawTextType = NO_TEXT;
	initMyResource();
	setWidth(20/UNIT); //20 mm
	setHeight(20/UNIT); // 20 mm
	m_emptyBrush = QBrush(QImage(":/empty.png"));
	m_font=QFont("Serif");
	m_font.setPointSizeF(3.5);
	m_font.setStyleStrategy(QFont::PreferMatch);
	m_font.setStyleStrategy(QFont::ForceOutline);
}
Exemplo n.º 4
0
Summary::Summary(QGraphicsItem* parent, QObject* parentObject): BandInterface(parent, parentObject)
{
	initMyResource();
	setBandType(Report::BandInterface::Summary);
	setResizeFlags(FixedPos | ResizeBottom);
}