kmessagebox -> qmessagebox

This commit is contained in:
Hugo Pereira Da Costa 2013-08-01 19:30:54 +02:00
parent b993d576c9
commit 70553ce8a2

View file

@ -27,10 +27,10 @@
#include "oxygenexceptionlistwidget.moc" #include "oxygenexceptionlistwidget.moc"
#include "oxygenexceptiondialog.h" #include "oxygenexceptiondialog.h"
#include <QMessageBox>
#include <QPointer> #include <QPointer>
#include <QIcon> #include <QIcon>
#include <KLocalizedString> #include <KLocalizedString>
#include <KMessageBox>
//__________________________________________________________ //__________________________________________________________
namespace Oxygen namespace Oxygen
@ -187,7 +187,7 @@ namespace Oxygen
{ {
// should use a konfirmation dialog // should use a konfirmation dialog
if( KMessageBox::questionYesNo( this, i18n("Remove selected exception?") ) == KMessageBox::No ) return; if( QMessageBox::question( this, i18n("Question - Oxygen Settings" ), i18n("Remove selected exception?") ) == QMessageBox::No ) return;
// remove // remove
model().remove( model().get( ui.exceptionListView->selectionModel()->selectedRows() ) ); model().remove( model().get( ui.exceptionListView->selectionModel()->selectedRows() ) );
@ -328,7 +328,7 @@ namespace Oxygen
while( exception->exceptionPattern().isEmpty() || !QRegExp( exception->exceptionPattern() ).isValid() ) while( exception->exceptionPattern().isEmpty() || !QRegExp( exception->exceptionPattern() ).isValid() )
{ {
KMessageBox::error( this, i18n("Regular Expression syntax is incorrect") ); QMessageBox::warning( this, i18n( "Warning - Oxygen Settings" ), i18n("Regular Expression syntax is incorrect") );
QPointer<ExceptionDialog> dialog( new ExceptionDialog( this ) ); QPointer<ExceptionDialog> dialog( new ExceptionDialog( this ) );
dialog->setException( exception ); dialog->setException( exception );
if( dialog->exec() == QDialog::Rejected ) if( dialog->exec() == QDialog::Rejected )