mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Some basic action functionality for application DocPage Organizer
This commit is contained in:
@ -18,6 +18,8 @@
|
||||
#ifndef PDFPAINTERUTILS_H
|
||||
#define PDFPAINTERUTILS_H
|
||||
|
||||
#include "pdfglobal.h"
|
||||
|
||||
#include <QPainter>
|
||||
|
||||
namespace pdf
|
||||
@ -42,6 +44,19 @@ private:
|
||||
QPainter* m_painter;
|
||||
};
|
||||
|
||||
class Pdf4QtLIBSHARED_EXPORT PDFPainterHelper
|
||||
{
|
||||
public:
|
||||
/// Draws bubble using painter. Bubble is aligned to the point, colored with color
|
||||
/// and inside bubble, text is being paint. Bubble bounding box is being returned.
|
||||
/// \param painter Painter
|
||||
/// \param point Position of the bubble
|
||||
/// \param color Color of the bubble
|
||||
/// \param text Text inside the bubble
|
||||
/// \param alignment Bubble alignment relative to the bubble position point
|
||||
static QRect drawBubble(QPainter* painter, QPoint point, QColor color, QString text, Qt::Alignment alignment);
|
||||
};
|
||||
|
||||
} // namespace pdf
|
||||
|
||||
#endif // PDFPAINTERUTILS_H
|
||||
|
Reference in New Issue
Block a user