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() {
|
||||
showStatusMessage(tr("Invoked 'Server|Post items'"));
|
||||
const int currentRow = ui->tableView->currentIndex().row();
|
||||
emit m_core->sendItemToServer(currentRow);
|
||||
const QModelIndex currentIndex = ui->tableView->currentIndex();
|
||||
const QByteArray jsonData = m_proxyModel->jsonDataForServer(currentIndex);
|
||||
emit m_core->sendItemToServer(jsonData);
|
||||
}
|
||||
|
||||
void MainWindow::createActions() {
|
||||
|
||||
Reference in New Issue
Block a user