summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/playlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.cpp b/core/multimedia/opieplayer/playlistwidget.cpp
index b9b63c7..26103c3 100644
--- a/core/multimedia/opieplayer/playlistwidget.cpp
+++ b/core/multimedia/opieplayer/playlistwidget.cpp
@@ -1121,97 +1121,97 @@ void PlayListWidget::keyReleaseEvent( QKeyEvent *e)
1121// audioUI->showMaximized(); 1121// audioUI->showMaximized();
1122 break; 1122 break;
1123 case Key_F10: //contacts 1123 case Key_F10: //contacts
1124// if( videoUI->isHidden()) 1124// if( videoUI->isHidden())
1125// videoUI->showMaximized(); 1125// videoUI->showMaximized();
1126 break; 1126 break;
1127 case Key_F11: //menu 1127 case Key_F11: //menu
1128 break; 1128 break;
1129 case Key_F12: //home 1129 case Key_F12: //home
1130// doBlank(); 1130// doBlank();
1131 break; 1131 break;
1132 case Key_F13: //mail 1132 case Key_F13: //mail
1133// doUnblank(); 1133// doUnblank();
1134 break; 1134 break;
1135 case Key_Q: //add to playlist 1135 case Key_Q: //add to playlist
1136 qDebug("Add"); 1136 qDebug("Add");
1137 addSelected(); 1137 addSelected();
1138 break; 1138 break;
1139 case Key_R: //remove from playlist 1139 case Key_R: //remove from playlist
1140 removeSelected(); 1140 removeSelected();
1141 break; 1141 break;
1142// case Key_P: //play 1142// case Key_P: //play
1143// qDebug("Play"); 1143// qDebug("Play");
1144// playSelected(); 1144// playSelected();
1145// break; 1145// break;
1146 case Key_Space: 1146 case Key_Space:
1147 qDebug("Play"); 1147 qDebug("Play");
1148// playSelected(); puh 1148// playSelected(); puh
1149 break; 1149 break;
1150 case Key_1: 1150 case Key_1:
1151 tabWidget->setCurrentPage(0); 1151 tabWidget->setCurrentPage(0);
1152 break; 1152 break;
1153 case Key_2: 1153 case Key_2:
1154 tabWidget->setCurrentPage(1); 1154 tabWidget->setCurrentPage(1);
1155 break; 1155 break;
1156 case Key_3: 1156 case Key_3:
1157 tabWidget->setCurrentPage(2); 1157 tabWidget->setCurrentPage(2);
1158 break; 1158 break;
1159 case Key_4: 1159 case Key_4:
1160 tabWidget->setCurrentPage(3); 1160 tabWidget->setCurrentPage(3);
1161 break; 1161 break;
1162 case Key_Down: 1162 case Key_Down:
1163 if ( !d->selectedFiles->next() ) 1163 if ( !d->selectedFiles->next() )
1164 d->selectedFiles->first(); 1164 d->selectedFiles->first();
1165 1165
1166 break; 1166 break;
1167 case Key_Up: 1167 case Key_Up:
1168 if ( !d->selectedFiles->prev() ) 1168 if ( !d->selectedFiles->prev() )
1169 d->selectedFiles->last(); 1169 // d->selectedFiles->last();
1170 1170
1171 break; 1171 break;
1172 1172
1173 } 1173 }
1174} 1174}
1175 1175
1176void PlayListWidget::keyPressEvent( QKeyEvent *e) 1176void PlayListWidget::keyPressEvent( QKeyEvent *e)
1177{ 1177{
1178// qDebug("Key press"); 1178// qDebug("Key press");
1179// switch ( e->key() ) { 1179// switch ( e->key() ) {
1180// ////////////////////////////// Zaurus keys 1180// ////////////////////////////// Zaurus keys
1181// case Key_A: //add to playlist 1181// case Key_A: //add to playlist
1182// qDebug("Add"); 1182// qDebug("Add");
1183// addSelected(); 1183// addSelected();
1184// break; 1184// break;
1185// case Key_R: //remove from playlist 1185// case Key_R: //remove from playlist
1186// removeSelected(); 1186// removeSelected();
1187// break; 1187// break;
1188// case Key_P: //play 1188// case Key_P: //play
1189// qDebug("Play"); 1189// qDebug("Play");
1190// playSelected(); 1190// playSelected();
1191// break; 1191// break;
1192// case Key_Space: 1192// case Key_Space:
1193// qDebug("Play"); 1193// qDebug("Play");
1194// playSelected(); 1194// playSelected();
1195// break; 1195// break;
1196// } 1196// }
1197} 1197}
1198 1198
1199void PlayListWidget::doBlank() { 1199void PlayListWidget::doBlank() {
1200 qDebug("do blanking"); 1200 qDebug("do blanking");
1201 fd=open("/dev/fb0",O_RDWR); 1201 fd=open("/dev/fb0",O_RDWR);
1202 if (fd != -1) { 1202 if (fd != -1) {
1203 ioctl(fd,FBIOBLANK,1); 1203 ioctl(fd,FBIOBLANK,1);
1204// close(fd); 1204// close(fd);
1205 } 1205 }
1206} 1206}
1207 1207
1208void PlayListWidget::doUnblank() { 1208void PlayListWidget::doUnblank() {
1209 // this crashes opieplayer with a segfault 1209 // this crashes opieplayer with a segfault
1210// int fd; 1210// int fd;
1211// fd=open("/dev/fb0",O_RDWR); 1211// fd=open("/dev/fb0",O_RDWR);
1212 qDebug("do unblanking"); 1212 qDebug("do unblanking");
1213 if (fd != -1) { 1213 if (fd != -1) {
1214 ioctl(fd,FBIOBLANK,0); 1214 ioctl(fd,FBIOBLANK,0);
1215 close(fd); 1215 close(fd);
1216 } 1216 }
1217 QCopEnvelope h("QPE/System", "setBacklight(int)"); 1217 QCopEnvelope h("QPE/System", "setBacklight(int)");