2021-02-05 Fred Gleason <fredg@paravelsystems.com>

* Added 'RDMacroCartModel'
	* Refactored the macro cart editor dialog in rdlibrary(1) to use the
	model-based API.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-02-05 15:47:49 -05:00
parent e6eededea4
commit 301d192754

View File

@ -207,12 +207,6 @@ void RDMacroCartModel::refresh(const QModelIndex &row,const QString &rml)
void RDMacroCartModel::save() const
{
/*
QString macro;
for(int i=0;i<lineCount();i++) {
macro+=d_texts.at(i).at(1).toString();
}
*/
QString sql=QString("update CART set ")+
"MACROS=\""+RDEscapeString(allCode())+"\" where "+
QString().sprintf("NUMBER=%u",d_cart_number);