From 0784cbd9b04d181f3b400ea963d20acfeba0ba64 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 26 Sep 2023 11:44:59 +0900 Subject: Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version Signed-off-by: Michele Calgaro --- doc/en/advanced.docbook | 72 ++++++++++++++++++++++++------------------------- doc/en/faq.docbook | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) (limited to 'doc/en') diff --git a/doc/en/advanced.docbook b/doc/en/advanced.docbook index 9f0908eb..7e96c002 100644 --- a/doc/en/advanced.docbook +++ b/doc/en/advanced.docbook @@ -243,7 +243,7 @@ -QString query( QString sql) +TQString query( TQString sql) Queries the database via SQL. @@ -253,7 +253,7 @@ -void migrateFile( QString oldURL, QString newURL ) +void migrateFile( TQString oldURL, TQString newURL ) Move a file in the collection, keeping stats intact. @@ -389,97 +389,97 @@ -QString album() +TQString album() Return the album of the currently playing track. -QString artist() +TQString artist() Return the artist of the currently playing track. -QString bitrate() +TQString bitrate() Return the bitrate of the currently playing track (XX kbps). -QString comment() +TQString comment() Return the comment of the currently playing track. -QString coverImage() +TQString coverImage() Return the encoded URL of the current track's cover image -QString currentTime() +TQString currentTime() Return the position of the currently playing track ([h:]mm:ss format). -QString encodedURL() +TQString encodedURL() Return the encoded URL of the currently playing track. -QString engine() +TQString engine() Return the current sound engine. -QString genre() +TQString genre() Return the genre of the currently playing track. -QString lyrics() +TQString lyrics() Return the lyrics of the currently playing track. -QString lyricsByPath( QString path ) +TQString lyricsByPath( TQString path ) Return the lyrics of a track by path. -QString nowPlaying() +TQString nowPlaying() The title of now playing media. -QString path() +TQString path() Return the unencoded path of the currently playing track. -QString setContextStyle( QString ) +TQString setContextStyle( TQString ) Set the CSS style for the context browser. -QString title() +TQString title() Return the title of the currently playing track. -QString totalTime() +TQString totalTime() Return the total length of the currently playing track ([h:]mm:ss format). -QString track() +TQString track() Return the track number. -QString type() +TQString type() Return the file type. -QString year() +TQString year() Return the year of the currently playing track. @@ -579,12 +579,12 @@ -void setEqualizerPreset( QString name ) +void setEqualizerPreset( TQString name ) Set the equalizer preset -void setLyricsByPath( QString url, QString lyrics ) +void setLyricsByPath( TQString url, TQString lyrics ) Set the lyrics of a track by it's path. @@ -594,7 +594,7 @@ -void setScoreByPath( QString url, int score ) +void setScoreByPath( TQString url, int score ) Set the score of a track by it's path. @@ -604,7 +604,7 @@ -void showBrowser( QString browser ) +void showBrowser( TQString browser ) Shows browsers in the playlist window @@ -664,7 +664,7 @@ -QString saveCurrentPlaylist() +TQString saveCurrentPlaylist() Saves the current playlist to current.xml and returns its path. @@ -694,7 +694,7 @@ -void popupMessage( QString) +void popupMessage( TQString) Shows a temporary popup message. @@ -709,7 +709,7 @@ -void saveM3u( QString path, bool relativePaths) +void saveM3u( TQString path, bool relativePaths) Saves the current playlist as m3u. @@ -719,7 +719,7 @@ -void shortStatusMessage( QString) +void shortStatusMessage( TQString) Shows a temporary message on the statusbar. @@ -754,7 +754,7 @@ -void addPodcast( QString ) +void addPodcast( TQString ) Add a podcast entry to the playlist browser. @@ -764,7 +764,7 @@ -void addPlaylist( QString ) +void addPlaylist( TQString ) Add a playlist to the playlist browser. @@ -790,12 +790,12 @@ -bool runScript( QString name) +bool runScript( TQString name) Starts the script with the given name. Returns true on success. -bool stopScript( QString name) +bool stopScript( TQString name) Stops the script with the given name. Returns true on success. @@ -805,17 +805,17 @@ -void addCustomMenuItem(QString submenu, QString itemTitle ) +void addCustomMenuItem(TQString submenu, TQString itemTitle ) Enables and sets custom menu item title. -void removeCustomMenuItem(QString submenu, QString itemTitle ) +void removeCustomMenuItem(TQString submenu, TQString itemTitle ) Removes the custom menu item. -QString readConfig( QString key) +TQString readConfig( TQString key) Returns a AmarokConfig configuration entry value from the given key. diff --git a/doc/en/faq.docbook b/doc/en/faq.docbook index 43e78113..7c16f582 100644 --- a/doc/en/faq.docbook +++ b/doc/en/faq.docbook @@ -684,7 +684,7 @@ When defining a score for a track which has been played before, the calculation score = ( ( values[2].toDouble() * values.first().toInt() ) + percentage ) / ( values.first().toInt() + 1 ); Substituting in the values from this line: - QStringList values = query( QString( + QStringList values = query( TQString( "SELECT playcounter, createdate, percentage FROM statistics " "WHERE url = '%1';" ) .arg( escapeString( url ) ) ); -- cgit v1.2.1