From 445a5a801ea0e05ab7cee2ff41f1ffbf39f5a98f Mon Sep 17 00:00:00 2001 From: nhnielsen Date: Mon, 23 Jul 2007 18:25:47 +0000 Subject: [PATCH] EBN warnings-- QClass -> KClass fixes git-svn-id: svn+ssh://ianmonroe@svn.kde.org/home/kde/trunk/extragear/multimedia/amarok@691478 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../magnatunestore/magnatunepurchasedialog.cpp | 11 ++++++----- .../magnatunestore/magnatunepurchasehandler.cpp | 5 +++-- .../magnatunestore/magnatuneredownloadhandler.cpp | 12 +++++++----- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/servicebrowser/magnatunestore/magnatunepurchasedialog.cpp b/src/servicebrowser/magnatunestore/magnatunepurchasedialog.cpp index fce5312fa..4c8f7a461 100644 --- a/src/servicebrowser/magnatunestore/magnatunepurchasedialog.cpp +++ b/src/servicebrowser/magnatunestore/magnatunepurchasedialog.cpp @@ -23,10 +23,11 @@ #include "debug.h" #include "magnatunedatabasehandler.h" +#include + #include #include #include -#include #include #include #include @@ -94,7 +95,7 @@ bool MagnatunePurchaseDialog::verifyEntries( ) if ( !ccExp.exactMatch( ccString ) ) { - QMessageBox::information( this, "Invalid credit card number", + KMessageBox::information( this, "Invalid credit card number", "The credit card number entered does not appear to be valid\n" ); return false; } @@ -106,7 +107,7 @@ bool MagnatunePurchaseDialog::verifyEntries( ) if ( !emailExp.exactMatch( emailString ) ) { - QMessageBox::information( this, "Invalid email", + KMessageBox::information( this, "Invalid email", "The email address entered does not appear to be valid\n" ); return false; } @@ -118,7 +119,7 @@ bool MagnatunePurchaseDialog::verifyEntries( ) if ( !monthExp.exactMatch( monthString ) ) { - QMessageBox::information( this, "Invalid expiration month", + KMessageBox::information( this, "Invalid expiration month", "The credit card expitation month does not appear to be valid\n" ); return false; } @@ -130,7 +131,7 @@ bool MagnatunePurchaseDialog::verifyEntries( ) if ( !yearExp.exactMatch( yearString ) ) { - QMessageBox::information( this, "Invalid expiration month", + KMessageBox::information( this, "Invalid expiration month", "The credit card expitation year does not appear to be valid\n" ); return false; } diff --git a/src/servicebrowser/magnatunestore/magnatunepurchasehandler.cpp b/src/servicebrowser/magnatunestore/magnatunepurchasehandler.cpp index 8e2602c0c..650f5df04 100644 --- a/src/servicebrowser/magnatunestore/magnatunepurchasehandler.cpp +++ b/src/servicebrowser/magnatunestore/magnatunepurchasehandler.cpp @@ -25,12 +25,13 @@ #include "magnatunedatabasehandler.h" #include "statusbar.h" +#include #include #include #include #include -#include + MagnatunePurchaseHandler::MagnatunePurchaseHandler() @@ -157,7 +158,7 @@ void MagnatunePurchaseHandler::xmlDownloadComplete( KJob * downloadJob ) else { - QMessageBox::information( m_parent, "Could not process payment", + KMessageBox::information( m_parent, "Could not process payment", "There seems to be an error in the information entered (check the credit card number), please try again\n" ); m_purchaseDialog->setEnabled( true ); } diff --git a/src/servicebrowser/magnatunestore/magnatuneredownloadhandler.cpp b/src/servicebrowser/magnatunestore/magnatuneredownloadhandler.cpp index fec6b8f6c..f6befccb3 100644 --- a/src/servicebrowser/magnatunestore/magnatuneredownloadhandler.cpp +++ b/src/servicebrowser/magnatunestore/magnatuneredownloadhandler.cpp @@ -24,11 +24,13 @@ #include "amarok.h" #include "debug.h" +#include +#include "KMessageBox" + +#include "QDir" + -#include "qdir.h" -#include "qmessagebox.h" -#include @@ -55,7 +57,7 @@ void MagnatuneRedownloadHandler::showRedownloadDialog( ) if (previousDownloads.isEmpty()) { //No previously purchased track information found. No more to do here... - QMessageBox::information( m_parent, i18n( "No purchases found!" ) , + KMessageBox::information( m_parent, i18n( "No purchases found!" ) , i18n( "No previous purchases have been found. Nothing to redownload..." ) + '\n' ); return; } @@ -134,7 +136,7 @@ void MagnatuneRedownloadHandler::redownload( const QString &storedInfoFileName ) else { - QMessageBox::information( m_parent, i18n( "Could not re-download album" ), + KMessageBox::information( m_parent, i18n( "Could not re-download album" ), i18n( "There seems to be a problem with the selected redownload info file." ) + '\n' ); } -- 2.11.4.GIT