- key focus fixes, still some left.

- attempting to resolve playlist sync issue


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@647 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-11-04 04:28:15 +00:00
parent d79b3d284e
commit bd3dd4e811

View File

@ -114,6 +114,9 @@ void QProjectM_MainWindow::keyReleaseEvent ( QKeyEvent * e ) {
QModelIndex modelIndex;
switch (e->key()) {
case Qt::Key_L:
if (ui.presetSearchBarLineEdit->hasFocus())
return;
if (ui.lockPresetCheckBox->checkState() == Qt::Checked)
ui.lockPresetCheckBox->setCheckState(Qt::Unchecked);
else
@ -156,6 +159,9 @@ void QProjectM_MainWindow::keyReleaseEvent ( QKeyEvent * e ) {
return;
case Qt::Key_R:
if (ui.presetSearchBarLineEdit->hasFocus())
return;
//modelIndex.selectRandom()
//modelIndex = QModelIndex(0,0,0);
//selectPlaylistItem(modelIndex);