修复邮件发送模块不支持Qt6的BUG
This commit is contained in:
@@ -5,11 +5,15 @@ greaterThan(QT_MAJOR_VERSION, 4): CONFIG += c++11
|
||||
!contains(DEFINES, qcustomplot_v1_3) {
|
||||
!contains(DEFINES, qcustomplot_v2_0) {
|
||||
!contains(DEFINES, qcustomplot_v2_1) {
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
DEFINES += qcustomplot_v2_1
|
||||
} else {
|
||||
DEFINES += qcustomplot_v2_0
|
||||
}}}}
|
||||
}}}
|
||||
|
||||
!contains(DEFINES, qcustomplot_v2_1) {
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
DEFINES -= qcustomplot_v1_3
|
||||
DEFINES -= qcustomplot_v2_0
|
||||
DEFINES += qcustomplot_v2_1
|
||||
}}
|
||||
|
||||
contains(DEFINES, qcustomplot_v1_3) {
|
||||
INCLUDEPATH += $$PWD/v1_3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/***************************************************************************
|
||||
** **
|
||||
** QCustomPlot, an easy to use, modern plotting widget for Qt **
|
||||
** Copyright (C) 2011-2015 Emanuel Eichhammer **
|
||||
@@ -22848,7 +22848,7 @@ QPointF QCPItemPixmap::anchorPixelPoint(int anchorId) const
|
||||
case aiRight: return (rect.topRight()+rect.bottomRight())*0.5;
|
||||
case aiBottom: return (rect.bottomLeft()+rect.bottomRight())*0.5;
|
||||
case aiBottomLeft: return rect.bottomLeft();
|
||||
case aiLeft: return (rect.topLeft()+rect.bottomLeft())*0.5;;
|
||||
case aiLeft: return (rect.topLeft()+rect.bottomLeft())*0.5;
|
||||
}
|
||||
|
||||
qDebug() << Q_FUNC_INFO << "invalid anchorId" << anchorId;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/***************************************************************************
|
||||
** **
|
||||
** QCustomPlot, an easy to use, modern plotting widget for Qt **
|
||||
** Copyright (C) 2011-2018 Emanuel Eichhammer **
|
||||
@@ -4002,7 +4002,7 @@ QSize QCPLayout::getFinalMinimumOuterSize(const QCPLayoutElement *el)
|
||||
minOuter.rheight() += el->margins().top() + el->margins().bottom();
|
||||
|
||||
return QSize(minOuter.width() > 0 ? minOuter.width() : minOuterHint.width(),
|
||||
minOuter.height() > 0 ? minOuter.height() : minOuterHint.height());;
|
||||
minOuter.height() > 0 ? minOuter.height() : minOuterHint.height());
|
||||
}
|
||||
|
||||
/*! \internal
|
||||
@@ -29480,7 +29480,7 @@ QPointF QCPItemPixmap::anchorPixelPosition(int anchorId) const
|
||||
case aiRight: return (rect.topRight()+rect.bottomRight())*0.5;
|
||||
case aiBottom: return (rect.bottomLeft()+rect.bottomRight())*0.5;
|
||||
case aiBottomLeft: return rect.bottomLeft();
|
||||
case aiLeft: return (rect.topLeft()+rect.bottomLeft())*0.5;;
|
||||
case aiLeft: return (rect.topLeft()+rect.bottomLeft())*0.5;
|
||||
}
|
||||
|
||||
qDebug() << Q_FUNC_INFO << "invalid anchorId" << anchorId;
|
||||
|
||||
@@ -328,7 +328,7 @@ void IconHelper::setStyle1(QWidget *widget, QList<QAbstractButton *> btns, QList
|
||||
widget->setStyleSheet(qss.join(""));
|
||||
|
||||
//可能会重复调用设置所以先要移除上一次的
|
||||
for (int i = 0; i < btnCount; i++) {
|
||||
for (int i = 0; i < btnCount; ++i) {
|
||||
for (int j = 0; j < this->btns.count(); j++) {
|
||||
if (this->btns.at(j) == btns.at(i)) {
|
||||
disconnect(btns.at(i), SIGNAL(toggled(bool)), this, SLOT(toggled(bool)));
|
||||
@@ -345,7 +345,7 @@ void IconHelper::setStyle1(QWidget *widget, QList<QAbstractButton *> btns, QList
|
||||
|
||||
//存储对应按钮对象,方便鼠标移上去的时候切换图片
|
||||
int checkedIndex = -1;
|
||||
for (int i = 0; i < btnCount; i++) {
|
||||
for (int i = 0; i < btnCount; ++i) {
|
||||
int icon = icons.at(i);
|
||||
QPixmap pixNormal = getPixmap1(styleColor.normalTextColor, icon, iconSize, iconWidth, iconHeight);
|
||||
QPixmap pixHover = getPixmap1(styleColor.hoverTextColor, icon, iconSize, iconWidth, iconHeight);
|
||||
|
||||
Reference in New Issue
Block a user