extragear/multimedia/amarok
Seb Ruiz
ruiz at kde.org
Sun Mar 8 04:45:51 UTC 2009
SVN commit 936612 by seb:
Rename "selectedIndizes" to "selectedIndexes", to be correct and
consistent with the rest of the KDE/Qt api. (Indexes isn't actually a
word either).
This breaks the public API for QtScripts for those scripts which rely on
Amarok HEAD. Please update your (unreleased) scripts appropriately.
CCMAIL: amarok at kde.org
CCMAIL: grosser.meister.morti at gmx.net
M +1 -1 ChangeLog
M +4 -4 src/scriptengine/AmarokPlaylistScript.cpp
M +1 -1 src/scriptengine/AmarokPlaylistScript.h
--- trunk/extragear/multimedia/amarok/ChangeLog #936611:936612
@@ -27,7 +27,7 @@
* Option to automatically scroll the playlist to the active item on track
change.
* New QtScript methods for accessing the playlist:
- Amarok.Playlist.selectedFilenames() & Amarok.Playlist.selectedIndizes().
+ Amarok.Playlist.selectedFilenames() & Amarok.Playlist.selectedIndexes().
Patch by Mathias Panzenböck <grosser.meister.morti at gmx.net>.
* New QtScript method for the Track prototype: imagePixmap( size ). Returns
a QPixmap of the given size, or the default if the size argument isn't
--- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokPlaylistScript.cpp #936611:936612
@@ -140,7 +140,7 @@
emit CountChanged( The::playlistModel()->rowCount() );
}
- QList<int> AmarokPlaylistScript::selectedIndizes()
+ QList<int> AmarokPlaylistScript::selectedIndexes()
{
DEBUG_BLOCK
@@ -153,10 +153,10 @@
DEBUG_BLOCK
QStringList fileNames;
- const QList<int> indizes = selectedIndizes();
+ const QList<int> indexes = selectedIndexes();
- for( int i=0; i < indizes.size(); i++ )
- fileNames << The::playlistModel()->trackAt( indizes[i] )->prettyUrl();
+ for( int i=0; i < indexes.size(); i++ )
+ fileNames << The::playlistModel()->trackAt( indexes[i] )->prettyUrl();
return fileNames;
}
--- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokPlaylistScript.h #936611:936612
@@ -53,7 +53,7 @@
void togglePlaylist();
QStringList filenames();
QVariant trackAt( int row );
- QList<int> selectedIndizes();
+ QList<int> selectedIndexes();
QStringList selectedFilenames();
signals:
More information about the Amarok
mailing list