timeLcd = new QLCDNumber;
QStringList headers;
- headers << tr("Artist") << tr("Title") << tr("Album");
+ headers << tr("Artist") << tr("Title") << tr("Album") << "Controls";
- musicTable = new QTableWidget(0, 3);
+ musicTable = new QTableWidget(0, 4);
musicTable->setHorizontalHeaderLabels(headers);
musicTable->setSelectionMode(QAbstractItemView::SingleSelection);
musicTable->setSelectionBehavior(QAbstractItemView::SelectRows);
musicTable->insertRow(currentRow);
setRowFromItem (currentRow, plman.getItem(i));
}
- if (plman.indexOf(mediaObject->currentSource()) < 0)
+/* if (plman.indexOf(mediaObject->currentSource()) < 0)
{
setItem (firstGood, false);
- }
+ }*/
setupShuffleList();
}
item3->setFlags(item3->flags() ^ Qt::ItemIsEditable);
musicTable->setItem(row, 2, item3);
}
+ qDebug () << "Widget: " << musicTable->cellWidget(row, 3);
+
+ if (!musicTable->cellWidget(row, 3))
+ {
+ QToolBar* bar = new QToolBar;
+ QPushButton* up = new QPushButton;
+ up->setText("up");
+ up->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
+ bar->setProperty("row", row);
+ bar->addWidget(up);
+ musicTable->setCellWidget(row, 3, bar);
+ connect (up, SIGNAL (clicked ()), this, SLOT (buttonUp ()));
+ }
+}
+
+void MainWindow::buttonUp()
+{
+ qDebug () << "Presses up on " << sender()->parent()->property("row");
+ plman.moveItemUp(sender()->parent()->property("row").toInt());
}
void MainWindow::itemUpdated(int index)
OTHER_FILES += \
bugs.txt \
README
+
+unix {
+ # VARIABLES
+ isEmpty(PREFIX):PREFIX = /usr #/local ?
+ BINDIR = $$PREFIX/bin
+ DATADIR = $$PREFIX/share
+ DEFINES += DATADIR=\"$$DATADIR\" \
+ PKGDATADIR=\"$$PKGDATADIR\"
+
+ contains(QT_CONFIG, hildon):{
+ DEFINES += CHIMGDIR=\'\"$$DATADIR/$${TARGET}\"\'
+ }
+ # MAKE INSTALL
+ INSTALLS += target \
+ imagery \
+ desktop \
+ iconxpm \
+ icon26 \
+ icon40 \
+ icon64
+ target.path = $$BINDIR
+ imagery.path = $$DATADIR/$${TARGET}/images
+ imagery.files += ../src/images/*png
+ desktop.path = $$DATADIR/applications/hildon
+ desktop.files += $${TARGET}.desktop
+ iconxpm.path = $$DATADIR/pixmap
+ iconxpm.files += ../data/maemo/$${TARGET}.xpm
+ icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+ icon26.files += ../data/26x26/Tomamp.png
+ icon40.path = $$DATADIR/icons/hicolor/40x40/apps
+ icon40.files += ../data/40x40/Tomamp.png
+ icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+ icon64.files += ../data/64x64/Tomamp.png
+}