code format
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include "alignedtextitem.h"
|
||||
|
||||
#include "blockbase.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QPainter>
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
|
||||
|
||||
AlignedTextItem::AlignedTextItem(QGraphicsItem * parent): QGraphicsItem(parent), text_(this) {
|
||||
@@ -28,7 +30,7 @@ void AlignedTextItem::setFont(const QFont & f) {
|
||||
|
||||
|
||||
QFont AlignedTextItem::sceneFont(const QFont & f) {
|
||||
QFont ret = f;
|
||||
QFont ret = f;
|
||||
double scl = 16. / fontHeight();
|
||||
ret.setPointSizeF(ret.pointSizeF() * scl);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user