mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 08:34:38 +03:00
CallbackDatasource has been fixed
This commit is contained in:
parent
5de7c36c8f
commit
16727fef18
@ -594,7 +594,7 @@ bool CallbackDatasource::next(){
|
|||||||
m_currentRow++;
|
m_currentRow++;
|
||||||
bool result = false;
|
bool result = false;
|
||||||
emit changePos(CallbackInfo::Next,result);
|
emit changePos(CallbackInfo::Next,result);
|
||||||
m_eof = !checkNextRecord(m_currentRow);
|
m_eof = !result; // !checkNextRecord(m_currentRow);
|
||||||
return result;
|
return result;
|
||||||
} else return false;
|
} else return false;
|
||||||
}
|
}
|
||||||
|
@ -145,8 +145,6 @@ class IConnectionController{
|
|||||||
public:
|
public:
|
||||||
virtual void addConnectionDesc(ConnectionDesc* connection) = 0;
|
virtual void addConnectionDesc(ConnectionDesc* connection) = 0;
|
||||||
virtual void changeConnectionDesc(ConnectionDesc* connection) = 0;
|
virtual void changeConnectionDesc(ConnectionDesc* connection) = 0;
|
||||||
virtual bool checkConnectionDesc(ConnectionDesc* connection) = 0;
|
|
||||||
virtual QString lastError() const = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QueryDesc : public QObject{
|
class QueryDesc : public QObject{
|
||||||
@ -367,7 +365,7 @@ class CallbackDatasource :public ICallbackDatasource, public IDataSource {
|
|||||||
public:
|
public:
|
||||||
CallbackDatasource(): m_currentRow(-1), m_eof(false){}
|
CallbackDatasource(): m_currentRow(-1), m_eof(false){}
|
||||||
bool next();
|
bool next();
|
||||||
bool hasNext(){ return !m_eof;}
|
bool hasNext(){ if (!m_eof) return checkNextRecord(m_currentRow);}
|
||||||
bool prior(){ if (m_currentRow !=-1) {m_currentRow--; return true;} else return false;}
|
bool prior(){ if (m_currentRow !=-1) {m_currentRow--; return true;} else return false;}
|
||||||
void first();
|
void first();
|
||||||
void last(){}
|
void last(){}
|
||||||
|
Loading…
Reference in New Issue
Block a user