summaryrefslogtreecommitdiffstats
path: root/libkcddb/cdinfodialogbase.ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'libkcddb/cdinfodialogbase.ui.h')
-rw-r--r--libkcddb/cdinfodialogbase.ui.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/libkcddb/cdinfodialogbase.ui.h b/libkcddb/cdinfodialogbase.ui.h
index 1291010a..e33ad487 100644
--- a/libkcddb/cdinfodialogbase.ui.h
+++ b/libkcddb/cdinfodialogbase.ui.h
@@ -7,7 +7,7 @@
** place of a destructor.
*****************************************************************************/
-#include <qtextcodec.h>
+#include <tqtextcodec.h>
#include <kdebug.h>
#include <kdialogbase.h>
#include <kglobal.h>
@@ -25,7 +25,7 @@ void CDInfoDialogBase::init()
m_genre->insertStringList(m_genres.i18nList());
// We want control over the visibility of this column. See artistChanged().
- m_trackList->setColumnWidthMode(TRACK_ARTIST, QListView::Manual);
+ m_trackList->setColumnWidthMode(TRACK_ARTIST, TQListView::Manual);
// Make the user-definable values in-place editable.
m_trackList->setRenameable(TRACK_NUMBER, false);
@@ -39,7 +39,7 @@ void CDInfoDialogBase::destroy()
{
}
-void CDInfoDialogBase::slotTrackSelected( QListViewItem *item )
+void CDInfoDialogBase::slotTrackSelected( TQListViewItem *item )
{
emit play(item->text(0).toUInt()-1);
}
@@ -48,13 +48,13 @@ void CDInfoDialogBase::slotNextTrack()
{
if (m_trackList->currentItem())
{
- QListViewItem *item = m_trackList->currentItem()->nextSibling();
+ TQListViewItem *item = m_trackList->currentItem()->nextSibling();
m_trackList->setSelected(item, true);
m_trackList->ensureItemVisible(item);
}
}
-void CDInfoDialogBase::slotTrackDoubleClicked( QListViewItem *item, const QPoint &, int column)
+void CDInfoDialogBase::slotTrackDoubleClicked( TQListViewItem *item, const TQPoint &, int column)
{
m_trackList->rename(item, column);
}
@@ -66,7 +66,7 @@ void CDInfoDialogBase::setInfo( const KCDDB::CDInfo &info, KCDDB::TrackOffsetLis
m_category->setCurrentText(m_categories.cddb2i18n(info.category));
// Make sure the revision is set before the genre to allow the genreChanged() handler to fire.
- m_revision->setText(QString::number(info.revision));
+ m_revision->setText(TQString::number(info.revision));
m_genre->setCurrentText(m_genres.cddb2i18n(info.genre));
m_year->setValue(info.year);
m_comment->setText(info.extd.stripWhiteSpace());
@@ -78,11 +78,11 @@ void CDInfoDialogBase::setInfo( const KCDDB::CDInfo &info, KCDDB::TrackOffsetLis
m_trackList->clear();
for (unsigned i = 0; i < tracks; i++)
{
- QListViewItem *item = new QListViewItem(m_trackList, 0);
+ TQListViewItem *item = new TQListViewItem(m_trackList, 0);
- item->setText(TRACK_NUMBER, QString().sprintf("%02d", i + 1));
+ item->setText(TRACK_NUMBER, TQString().sprintf("%02d", i + 1));
item->setText(TRACK_TIME, framesTime(trackStartFrames[i + ((i + 1 < tracks) ? 1 : 2)] - trackStartFrames[i]));
- QString title = info.trackInfoList[i].title;
+ TQString title = info.trackInfoList[i].title;
int separator = title.find(SEPARATOR);
if (info.artist != "Various" || separator == -1 || !m_multiple->isChecked() )
{
@@ -104,16 +104,16 @@ void CDInfoDialogBase::setInfo( const KCDDB::CDInfo &info, KCDDB::TrackOffsetLis
}
}
-QString CDInfoDialogBase::framesTime(unsigned frames)
+TQString CDInfoDialogBase::framesTime(unsigned frames)
{
- QTime time;
+ TQTime time;
double ms;
ms = frames * 1000 / 75.0;
time = time.addMSecs((int)ms);
// Use ".zzz" for milliseconds...
- QString temp2;
+ TQString temp2;
if (time.hour() > 0)
temp2 = time.toString("hh:mm:ss");
else
@@ -134,10 +134,10 @@ KCDDB::CDInfo CDInfoDialogBase::info() const
info.extd = m_comment->text().stripWhiteSpace();
info.revision = m_revision->text().stripWhiteSpace().toUInt();
info.id = m_id->text().stripWhiteSpace();
- for (QListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
+ for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
{
// Combine the track artist if present with the title.
- QString trackArtist = item->text(TRACK_ARTIST).stripWhiteSpace();
+ TQString trackArtist = item->text(TRACK_ARTIST).stripWhiteSpace();
track.title = trackArtist;
if (!trackArtist.isEmpty())
{
@@ -153,7 +153,7 @@ KCDDB::CDInfo CDInfoDialogBase::info() const
}
-void CDInfoDialogBase::artistChanged( const QString &newArtist )
+void CDInfoDialogBase::artistChanged( const TQString &newArtist )
{
// Enable special handling of compilations.
if (newArtist.stripWhiteSpace().compare("Various")) {
@@ -163,7 +163,7 @@ void CDInfoDialogBase::artistChanged( const QString &newArtist )
}
}
-void CDInfoDialogBase::genreChanged( const QString &newGenre )
+void CDInfoDialogBase::genreChanged( const TQString &newGenre )
{
// Disable changes to category if the version number indicates that a record
// is already in the database, or if the genre is poorly set. The latter
@@ -176,9 +176,9 @@ void CDInfoDialogBase::genreChanged( const QString &newGenre )
void CDInfoDialogBase::slotMultipleArtists( bool hasMultipleArtist)
{
if(hasMultipleArtist){
- for (QListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
+ for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
{
- QString title = item->text(TRACK_TITLE);
+ TQString title = item->text(TRACK_TITLE);
int separator = title.find(SEPARATOR);
if (separator != -1)
{
@@ -191,12 +191,12 @@ void CDInfoDialogBase::slotMultipleArtists( bool hasMultipleArtist)
m_trackList->adjustColumn(TRACK_TITLE);
}
else{
- for (QListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
+ for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
{
- QString artist = item->text(TRACK_ARTIST);
+ TQString artist = item->text(TRACK_ARTIST);
if (!artist.isEmpty())
{
- item->setText(TRACK_ARTIST, QString::null);
+ item->setText(TRACK_ARTIST, TQString::null);
item->setText(TRACK_TITLE, artist + SEPARATOR + item->text(TRACK_TITLE));
}
}
@@ -213,10 +213,10 @@ void CDInfoDialogBase::slotChangeEncoding()
KDialogBase* dialog = new KDialogBase(this, 0, true, i18n("Change Encoding"),
KDialogBase::Ok | KDialogBase::Cancel);
- QStringList songTitles;
- for (QListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
+ TQStringList songTitles;
+ for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
{
- QString title = item->text(TRACK_ARTIST).stripWhiteSpace();
+ TQString title = item->text(TRACK_ARTIST).stripWhiteSpace();
if (!title.isEmpty())
title.append(SEPARATOR);
title.append(item->text(TRACK_TITLE).stripWhiteSpace());
@@ -231,14 +231,14 @@ void CDInfoDialogBase::slotChangeEncoding()
if (dialog->exec())
{
KCharsets* charsets = KGlobal::charsets();
- QTextCodec* codec = charsets->codecForName(charsets->encodingForName(encWidget->selectedEncoding()));
+ TQTextCodec* codec = charsets->codecForName(charsets->encodingForName(encWidget->selectedEncoding()));
m_artist->setText(codec->toUnicode(m_artist->text().latin1()));
m_title->setText(codec->toUnicode(m_title->text().latin1()));
m_genre->setCurrentText(codec->toUnicode(m_genre->currentText().latin1()));
m_comment->setText(codec->toUnicode(m_comment->text().latin1()));
- for (QListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
+ for (TQListViewItem *item = m_trackList->firstChild(); item; item=item->nextSibling())
{
item->setText(TRACK_ARTIST,codec->toUnicode(item->text(TRACK_ARTIST).latin1()));
item->setText(TRACK_TITLE,codec->toUnicode(item->text(TRACK_TITLE).latin1()));