Changeset 163 for smplayer/vendor/current/src/playlist.cpp
- Timestamp:
- May 15, 2014, 7:53:54 PM (12 years ago)
- File:
-
- 1 edited
-
smplayer/vendor/current/src/playlist.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/playlist.cpp
r154 r163 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 3Ricardo Villalba <[email protected]>2 Copyright (C) 2006-201 Ricardo Villalba <[email protected]> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 40 40 #include <QTextCodec> 41 41 #include <QApplication> 42 42 43 43 44 #include "mytablewidget.h" … … 154 155 listView->setSortingEnabled(false); 155 156 //listView->setAlternatingRowColors(true); 157 158 159 160 161 156 162 listView->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 157 163 listView->horizontalHeader()->setResizeMode(COL_NAME, QHeaderView::Stretch); 164 158 165 /* 159 166 listView->horizontalHeader()->setResizeMode(COL_TIME, QHeaderView::ResizeToContents); … … 396 403 397 404 if ((current_item > -1) && (current_item < pl.count())) { 398 pl[current_item].setPlayed( TRUE);405 pl[current_item].setPlayed(); 399 406 } 400 407 … … 472 479 if (filename.indexOf(QRegExp("^.*://.*")) == -1) { 473 480 // Local file 474 name = fi.fileName(); //fi.baseName( TRUE);481 name = fi.fileName(); //fi.baseName(); 475 482 } else { 476 483 // Stream … … 910 917 911 918 if (!filename.isEmpty()) { 912 //pl[n].setPlayed( TRUE);919 //pl[n].setPlayed(); 913 920 setCurrentItem(n); 914 921 if (play_files_from_start) … … 949 956 } else { 950 957 if (pl.count() > 1) playItem( pl.count() -1 ); 958 959 960 961 962 963 964 965 951 966 } 952 967 } … … 1138 1153 if (listView->isSelected(n, 0)) { 1139 1154 qDebug(" row %d selected", n); 1140 pl[n].setMarkForDeletion( TRUE);1155 pl[n].setMarkForDeletion(); 1141 1156 number_previous_item++; 1142 1157 if (first_selected == -1) first_selected = n; … … 1184 1199 PlaylistItemList::iterator it; 1185 1200 for ( it = pl.begin(); it != pl.end(); ++it ) { 1186 (*it).setPlayed( FALSE);1201 (*it).setPlayed(); 1187 1202 } 1188 1203 updateView(); … … 1329 1344 } 1330 1345 1346 1347 1348 1331 1349 1332 1350 QStringList only_files;
Note:
See TracChangeset
for help on using the changeset viewer.
