mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
minor bugfixes
This commit is contained in:
parent
2da8553e5d
commit
71314496a0
@ -1291,7 +1291,7 @@ std::pair<QSizeF,QSizeF> JKQTPVerticalAxis::getSize0(JKQTPEnhancedPainter& paint
|
||||
const double top_offset=(zaxispos-top);
|
||||
const QSizeF s1(qMax(0.0,qMax(parent->pt2px(painter, ptwidth)+labwidth, arrowSize)-bottom_offset), getParentPlotWidth());
|
||||
const QSizeF s2(qMax(0.0,qMax(parent->pt2px(painter, ptwidth_r), arrowSize)-top_offset), getParentPlotWidth());
|
||||
qDebug()<<"JKQTPVerticalAxis::getSize0(): s1="<<s1<<", s2="<<s2<<", bottom_offset="<<bottom_offset<<", top_offset="<<top_offset<<" top="<<top<<", bottom="<<bottom<<", zaxispos="<<zaxispos;
|
||||
//qDebug()<<"JKQTPVerticalAxis::getSize0(): s1="<<s1<<", s2="<<s2<<", bottom_offset="<<bottom_offset<<", top_offset="<<top_offset<<" top="<<top<<", bottom="<<bottom<<", zaxispos="<<zaxispos;
|
||||
return std::pair<QSizeF,QSizeF>(s1,s2);
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ void JKQTPCoordinateAxisStyle::saveSettings(QSettings &settings, const QString &
|
||||
settings.setValue(group+"color", jkqtp_QColor2String(axisColor));
|
||||
settings.setValue(group+"draw_mode1", JKQTPCADrawMode2String(drawMode1));
|
||||
settings.setValue(group+"draw_mode2", JKQTPCADrawMode2String(drawMode2));
|
||||
settings.setValue(group+"draw_mode0", JKQTPCADrawMode2String(drawMode2));
|
||||
settings.setValue(group+"draw_mode0", JKQTPCADrawMode2String(drawMode0));
|
||||
settings.setValue(group+"line_width", lineWidth);
|
||||
settings.setValue(group+"arrow_size_factor", arrowSizeFactor);
|
||||
settings.setValue(group+"axis_lines_offset", axisLineOffset);
|
||||
@ -229,6 +229,7 @@ JKQTPColorbarCoordinateAxisStyle::JKQTPColorbarCoordinateAxisStyle(const JKQTBas
|
||||
}
|
||||
|
||||
void JKQTPColorbarCoordinateAxisStyle::initMembersForColorbars() {
|
||||
drawMode0=JKQTPCADMnone;
|
||||
drawMode1=JKQTPCADMLine;
|
||||
drawMode2=JKQTPCADMcomplete;
|
||||
minTicks=5;
|
||||
@ -236,5 +237,4 @@ void JKQTPColorbarCoordinateAxisStyle::initMembersForColorbars() {
|
||||
tickOutsideLength=0;
|
||||
minorTickOutsideLength=0;
|
||||
showZeroAxis=false;
|
||||
drawMode0=JKQTPCADMnone;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user