|
|
@ -86,6 +86,7 @@ QTSGraph::QTSGraph(int w, int h, int x, int y, QWidget *parent) |
|
|
|
Pen = QPen(QBrush(QColor(DefaultColor)), 1); |
|
|
|
Pen = QPen(QBrush(QColor(DefaultColor)), 1); |
|
|
|
Font = QFont(); |
|
|
|
Font = QFont(); |
|
|
|
Brush = QBrush(QColor(DefaultColor),Qt::NoBrush); |
|
|
|
Brush = QBrush(QColor(DefaultColor),Qt::NoBrush); |
|
|
|
|
|
|
|
SetTextStyle(1, 0, 10); |
|
|
|
ResetInterval = 1000; |
|
|
|
ResetInterval = 1000; |
|
|
|
ResetTimer = new QTimer(); |
|
|
|
ResetTimer = new QTimer(); |
|
|
|
connect(ResetTimer, SIGNAL(timeout()), this, SLOT(slotResetTimer())); |
|
|
|
connect(ResetTimer, SIGNAL(timeout()), this, SLOT(slotResetTimer())); |
|
|
@ -227,7 +228,7 @@ void QTSGraph::SetTextStyle(int idFont, int Direction, int CharSize) |
|
|
|
QString f; |
|
|
|
QString f; |
|
|
|
if(idFont == 0) f = "serif"; |
|
|
|
if(idFont == 0) f = "serif"; |
|
|
|
else if(idFont == 1) f = "sans"; |
|
|
|
else if(idFont == 1) f = "sans"; |
|
|
|
else if(idFont == 3) f = "mono"; |
|
|
|
else if(idFont == 2) f = "mono"; |
|
|
|
TextDirection = Direction; |
|
|
|
TextDirection = Direction; |
|
|
|
Font.setFamily(f); |
|
|
|
Font.setFamily(f); |
|
|
|
Font.setPointSize(CharSize); |
|
|
|
Font.setPointSize(CharSize); |
|
|
|