Retrieving JSON data from the proxy model and send it via core to the server.
This commit is contained in:
@ -304,8 +304,9 @@ void MainWindow::fetchItems() {
|
|||||||
|
|
||||||
void MainWindow::postItems() {
|
void MainWindow::postItems() {
|
||||||
showStatusMessage(tr("Invoked 'Server|Post items'"));
|
showStatusMessage(tr("Invoked 'Server|Post items'"));
|
||||||
const int currentRow = ui->tableView->currentIndex().row();
|
const QModelIndex currentIndex = ui->tableView->currentIndex();
|
||||||
emit m_core->sendItemToServer(currentRow);
|
const QByteArray jsonData = m_proxyModel->jsonDataForServer(currentIndex);
|
||||||
|
emit m_core->sendItemToServer(jsonData);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::createActions() {
|
void MainWindow::createActions() {
|
||||||
|
|||||||
Reference in New Issue
Block a user