mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Replaced the QET_TBT_USE_QPICTURE_BASED_CACHE compile-time option with a hardcoded runtime check.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1536 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -32,12 +32,15 @@ class TitleBlockTemplateRenderer : public QObject {
|
||||
int height() const;
|
||||
void render(QPainter *, int);
|
||||
void invalidateRenderedTemplate();
|
||||
void setUseCache(bool);
|
||||
bool useCache() const;
|
||||
|
||||
private:
|
||||
void renderToQPicture(int);
|
||||
|
||||
private:
|
||||
const TitleBlockTemplate *titleblock_template_;
|
||||
bool use_cache_;
|
||||
QPicture rendered_template_;
|
||||
DiagramContext context_;
|
||||
int last_known_titleblock_width_;
|
||||
|
||||
Reference in New Issue
Block a user