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 { |