mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Finish 1.4.91
This commit is contained in:
commit
5d4e1d7957
@ -105,7 +105,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 4
|
LIMEREPORT_VERSION_MINOR = 4
|
||||||
LIMEREPORT_VERSION_RELEASE = 90
|
LIMEREPORT_VERSION_RELEASE = 91
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
||||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
||||||
|
@ -703,7 +703,8 @@ void PageItemDesignIntf::bandDeleted(QObject *band)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PageItemDesignIntf::swapBands(BandDesignIntf* band, BandDesignIntf* bandToSwap){
|
void PageItemDesignIntf::swapBands(BandDesignIntf* band, BandDesignIntf* bandToSwap){
|
||||||
int startIndex = std::min(band->minChildIndex(), bandToSwap->minChildIndex());
|
int firstStartIndex = std::min(band->minChildIndex(), bandToSwap->minChildIndex());
|
||||||
|
int secondStartIndex = std::max(band->minChildIndex(), bandToSwap->minChildIndex());
|
||||||
|
|
||||||
// int endIndex = std::max(band->maxChildIndex(), bandToSwap->maxChildIndex());
|
// int endIndex = std::max(band->maxChildIndex(), bandToSwap->maxChildIndex());
|
||||||
// QList<BandDesignIntf*> bandToMove;
|
// QList<BandDesignIntf*> bandToMove;
|
||||||
@ -714,11 +715,11 @@ void PageItemDesignIntf::swapBands(BandDesignIntf* band, BandDesignIntf* bandToS
|
|||||||
|
|
||||||
BandDesignIntf* firstMoveBand = (bandToSwap->bandIndex() > band->bandIndex()) ? bandToSwap: band;
|
BandDesignIntf* firstMoveBand = (bandToSwap->bandIndex() > band->bandIndex()) ? bandToSwap: band;
|
||||||
|
|
||||||
firstMoveBand->changeBandIndex(startIndex, true);
|
firstMoveBand->changeBandIndex(firstStartIndex, true);
|
||||||
if (firstMoveBand == band){
|
if (firstMoveBand == band){
|
||||||
bandToSwap->changeBandIndex(firstMoveBand->maxChildIndex()+1,true);
|
bandToSwap->changeBandIndex(secondStartIndex,true);
|
||||||
} else {
|
} else {
|
||||||
band->changeBandIndex(firstMoveBand->maxChildIndex()+1, true);
|
band->changeBandIndex(secondStartIndex, true);
|
||||||
}
|
}
|
||||||
relocateBands();
|
relocateBands();
|
||||||
|
|
||||||
|
@ -1006,7 +1006,7 @@ bool ReportRender::registerBand(BandDesignIntf *band, bool registerInChildren)
|
|||||||
m_maxHeightByColumn.append(m_maxHeightByColumn[0]);
|
m_maxHeightByColumn.append(m_maxHeightByColumn[0]);
|
||||||
m_currentStartDataPos.append(m_currentStartDataPos[0]);
|
m_currentStartDataPos.append(m_currentStartDataPos[0]);
|
||||||
}
|
}
|
||||||
m_currentColumn = 0;
|
m_currentColumn = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user