mirror of
				https://github.com/fralx/LimeReport.git
				synced 2025-11-04 07:01:26 +03:00 
			
		
		
		
	Finish 1.4.88
This commit is contained in:
		@@ -105,7 +105,7 @@ RCC_DIR        = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
 | 
			
		||||
 | 
			
		||||
LIMEREPORT_VERSION_MAJOR = 1
 | 
			
		||||
LIMEREPORT_VERSION_MINOR = 4
 | 
			
		||||
LIMEREPORT_VERSION_RELEASE = 87
 | 
			
		||||
LIMEREPORT_VERSION_RELEASE = 88
 | 
			
		||||
 | 
			
		||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
 | 
			
		||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
 | 
			
		||||
 
 | 
			
		||||
@@ -113,8 +113,8 @@ void SQLEditDialog::accept()
 | 
			
		||||
    if (ui->fieldsMap->rowCount()>0){
 | 
			
		||||
        for(int i=0;i<ui->fieldsMap->rowCount();++i){
 | 
			
		||||
            LimeReport::FieldsCorrelation fieldsCorrelation;
 | 
			
		||||
            fieldsCorrelation.master=ui->fieldsMap->item(i,0)->data(Qt::DisplayRole).toString();
 | 
			
		||||
            fieldsCorrelation.detail=ui->fieldsMap->item(i,1)->data(Qt::DisplayRole).toString();
 | 
			
		||||
            fieldsCorrelation.master = ui->fieldsMap->item(i,0) ? ui->fieldsMap->item(i,0)->data(Qt::DisplayRole).toString() : "";
 | 
			
		||||
            fieldsCorrelation.detail = ui->fieldsMap->item(i,1) ? ui->fieldsMap->item(i,1)->data(Qt::DisplayRole).toString() : "";
 | 
			
		||||
            result.fieldMap.append(fieldsCorrelation);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
@@ -350,4 +350,13 @@ void SQLEditDialog::hidePreview()
 | 
			
		||||
    ui->pbHidePreview->setVisible(false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void SQLEditDialog::on_pbDelField_clicked()
 | 
			
		||||
{
 | 
			
		||||
    ui->fieldsMap->removeRow(ui->fieldsMap->currentRow());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
} // namespace LimeReport
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -73,6 +73,7 @@ private slots:
 | 
			
		||||
    void on_rbProxy_clicked(bool checked);
 | 
			
		||||
    void on_rbSubQuery_clicked(bool checked);
 | 
			
		||||
    void on_pbAddField_clicked();
 | 
			
		||||
    void on_pbDelField_clicked();
 | 
			
		||||
    void initQueryMode();
 | 
			
		||||
    void initSubQueryMode();
 | 
			
		||||
    void initProxyMode();
 | 
			
		||||
 
 | 
			
		||||
@@ -638,6 +638,7 @@ QVariant MasterDetailProxyModel::sourceData(QString fieldName, int row) const
 | 
			
		||||
QVariant MasterDetailProxyModel::masterData(QString fieldName) const
 | 
			
		||||
{
 | 
			
		||||
    IDataSource* master = dataManager()->dataSource(m_masterName);
 | 
			
		||||
    if (master){
 | 
			
		||||
        int columnIndex = master->columnIndexByName(fieldName);
 | 
			
		||||
        if (columnIndex!=-1){
 | 
			
		||||
            return master->data(fieldName);
 | 
			
		||||
@@ -647,6 +648,8 @@ QVariant MasterDetailProxyModel::masterData(QString fieldName) const
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    return QVariant();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool CallbackDatasource::next(){
 | 
			
		||||
    if (!m_eof){
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user