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