mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-14 08:35:48 +01:00
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:
@@ -207,12 +207,6 @@ void RDMacroCartModel::refresh(const QModelIndex &row,const QString &rml)
|
|||||||
|
|
||||||
void RDMacroCartModel::save() const
|
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 ")+
|
QString sql=QString("update CART set ")+
|
||||||
"MACROS=\""+RDEscapeString(allCode())+"\" where "+
|
"MACROS=\""+RDEscapeString(allCode())+"\" where "+
|
||||||
QString().sprintf("NUMBER=%u",d_cart_number);
|
QString().sprintf("NUMBER=%u",d_cart_number);
|
||||||
|
|||||||
Reference in New Issue
Block a user