13 * |
13 * |
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 "MoniSpindels.h" |
17 #include "MoniSpindels.h" |
18 #include "EditSupplier.h" |
18 #include "DetailiSpindel.h" |
19 #include "MainWindow.h" |
19 #include "MainWindow.h" |
20 #include "Utils.h" |
20 #include "Utils.h" |
21 #include "config.h" |
21 #include "config.h" |
22 |
22 |
23 |
23 |
146 |
146 |
147 void MoniSpindels::refreshiSpindels(QString data) |
147 void MoniSpindels::refreshiSpindels(QString data) |
148 { |
148 { |
149 qDebug() << "refreshiSpindels" << data; |
149 qDebug() << "refreshiSpindels" << data; |
150 emit refreshTable(); |
150 emit refreshTable(); |
|
151 emit updateiSpindel(data); |
151 } |
152 } |
152 |
153 |
153 |
154 |
154 void MoniSpindels::edit(int recno) |
155 void MoniSpindels::edit(int recno) |
155 { |
156 { |
156 // EditSupplier dialog(recno, this); |
157 DetailiSpindel dialog(recno, this); |
157 /* Signal from editor if a refresh is needed */ |
158 dialog.setModal(true); |
158 // connect(&dialog, SIGNAL(entry_changed()), this, SLOT(refreshTable())); |
159 dialog.exec(); |
159 // dialog.setModal(true); |
|
160 // dialog.exec(); |
|
161 } |
160 } |
162 |
161 |
163 |
162 |
164 void MoniSpindels::on_editButton_clicked() |
163 void MoniSpindels::on_editButton_clicked() |
165 { |
164 { |