src/ProdInprod.cpp

changeset 175
f1ed3a2a94e9
parent 173
8514932b61aa
child 227
7966bf14cc34
equal deleted inserted replaced
174:ceb8aa4ebd25 175:f1ed3a2a94e9
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 #include "ProdInprod.h" 17 #include "ProdInprod.h"
18 #include "MainWindow.h" 18 #include "MainWindow.h"
19 #include "EditProduct.h"
19 #include "config.h" 20 #include "config.h"
20 #include "global.h" 21 #include "global.h"
21 22
22 23
23 ProdInprod::ProdInprod(QWidget *parent) : QDialog(parent) 24 ProdInprod::ProdInprod(QWidget *parent) : QDialog(parent)
137 ProdInprod::~ProdInprod() {} 138 ProdInprod::~ProdInprod() {}
138 139
139 140
140 void ProdInprod::edit(int recno) 141 void ProdInprod::edit(int recno)
141 { 142 {
142 // EditProfileMash dialog(recno, this); 143 EditProduct dialog(recno, this);
143 /* Signal from editor if a refresh is needed */ 144 /* Signal from editor if a refresh is needed */
144 // connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable())); 145 connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable()));
145 // dialog.setModal(true); 146 dialog.setModal(true);
146 // dialog.exec(); 147 dialog.exec();
147 } 148 }
148 149
149 150
150 void ProdInprod::on_editButton_clicked() 151 void ProdInprod::on_editButton_clicked()
151 { 152 {

mercurial