+void MainWindow::buttonDown()
+{
+ int i = sender()->parent()->property("row").toInt();
+ qDebug () << "Presses down on " << i;
+ if (i < plman.size() - 1)
+ {
+ plman.moveItemDown(i);
+ setRowFromItem (i, plman.getItem(i));
+ setRowFromItem (i + 1, plman.getItem(i + 1));
+ musicTable->cellWidget(i, 3)->setProperty("row", i);
+ musicTable->cellWidget(i + 1, 3)->setProperty("row", i + 1);
+ musicTable->selectRow(i + 1);
+ }
+}
+
+void MainWindow::buttonDel()
+{
+ int i = sender()->parent()->property("row").toInt();
+ qDebug () << "Presses del on " << i;
+ if (i < plman.size())
+ {
+ plman.removeItem(i);
+ }
+}
+