From d8cc8bdfa7fa624a526d5aa1626974e1444cb799 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 27 May 2011 19:21:21 +0000 Subject: TQt4 port k3b This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/k3b@1233803 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/rip/k3bcddbpatternwidget.cpp | 54 ++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'src/rip/k3bcddbpatternwidget.cpp') diff --git a/src/rip/k3bcddbpatternwidget.cpp b/src/rip/k3bcddbpatternwidget.cpp index 9cea4d5..ba5427a 100644 --- a/src/rip/k3bcddbpatternwidget.cpp +++ b/src/rip/k3bcddbpatternwidget.cpp @@ -22,18 +22,18 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include -K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name ) - : base_K3bCddbPatternWidget( parent, name ) +K3bCddbPatternWidget::K3bCddbPatternWidget( TQWidget* tqparent, const char* name ) + : base_K3bCddbPatternWidget( tqparent, name ) { - // fix the layout - ((QGridLayout*)layout())->setRowStretch( 4, 1 ); + // fix the tqlayout + ((TQGridLayout*)tqlayout())->setRowStretch( 4, 1 ); // setup validators // there can never be one of the following characters in both dir and filename: @@ -41,7 +41,7 @@ K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name ) // additional the filename can never contain a slash / // and the dir should never start with a slash since it should always be a relative path - QRegExpValidator* dirValidator = new QRegExpValidator( QRegExp( "[^/][^?\\*\\\"]*" ), this ); + TQRegExpValidator* dirValidator = new TQRegExpValidator( TQRegExp( "[^/][^?\\*\\\"]*" ), TQT_TQOBJECT(this) ); m_comboFilenamePattern->setValidator( dirValidator ); m_comboPlaylistPattern->setValidator( dirValidator ); m_editBlankReplace->setValidator( dirValidator ); @@ -56,18 +56,18 @@ K3bCddbPatternWidget::K3bCddbPatternWidget( QWidget* parent, const char* name ) m_comboPlaylistPattern->insertItem( i18n( "Playlist" ) ); m_comboPlaylistPattern->insertItem( i18n( "playlists/%{albumartist}/%{albumtitle }" ) ); - connect( m_comboFilenamePattern, SIGNAL(textChanged(const QString&)), - this, SIGNAL(changed()) ); - connect( m_comboPlaylistPattern, SIGNAL(textChanged(const QString&)), - this, SIGNAL(changed()) ); - connect( m_editBlankReplace, SIGNAL(textChanged(const QString&)), - this, SIGNAL(changed()) ); - connect( m_checkBlankReplace, SIGNAL(toggled(bool)), - this, SIGNAL(changed()) ); - connect( m_specialStringsLabel, SIGNAL(leftClickedURL()), - this, SLOT(slotSeeSpecialStrings()) ); - connect( m_conditionalInclusionLabel, SIGNAL(leftClickedURL()), - this, SLOT(slotSeeConditionalInclusion()) ); + connect( m_comboFilenamePattern, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SIGNAL(changed()) ); + connect( m_comboPlaylistPattern, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SIGNAL(changed()) ); + connect( m_editBlankReplace, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SIGNAL(changed()) ); + connect( m_checkBlankReplace, TQT_SIGNAL(toggled(bool)), + this, TQT_SIGNAL(changed()) ); + connect( m_specialStringsLabel, TQT_SIGNAL(leftClickedURL()), + this, TQT_SLOT(slotSeeSpecialStrings()) ); + connect( m_conditionalInclusionLabel, TQT_SIGNAL(leftClickedURL()), + this, TQT_SLOT(slotSeeConditionalInclusion()) ); } @@ -76,19 +76,19 @@ K3bCddbPatternWidget::~K3bCddbPatternWidget() } -QString K3bCddbPatternWidget::filenamePattern() const +TQString K3bCddbPatternWidget::filenamePattern() const { return m_comboFilenamePattern->currentText(); } -QString K3bCddbPatternWidget::playlistPattern() const +TQString K3bCddbPatternWidget::playlistPattern() const { return m_comboPlaylistPattern->currentText(); } -QString K3bCddbPatternWidget::blankReplaceString() const +TQString K3bCddbPatternWidget::blankReplaceString() const { return m_editBlankReplace->text(); } @@ -129,7 +129,7 @@ void K3bCddbPatternWidget::loadDefaults() void K3bCddbPatternWidget::slotSeeSpecialStrings() { - QWhatsThis::display( i18n( "

Pattern special strings:" + TQWhatsThis::display( i18n( "

Pattern special strings:" "

The following strings will be replaced with their respective meaning in every " "track name.
" "Hint: %A differs from %a only on soundtracks or compilations." @@ -150,7 +150,7 @@ void K3bCddbPatternWidget::slotSeeSpecialStrings() void K3bCddbPatternWidget::slotSeeConditionalInclusion() { - QWhatsThis::display( i18n( "

Conditional inclusion:" + TQWhatsThis::display( i18n( "

Conditional inclusion:" "

These patterns make it possible to selectively include texts, " "depending on the value of CDDB entries. You can choose only to " "include or exclude texts if one of the entries is empty, " -- cgit v1.2.3