#include "keduvocdocument.h"
+#include <QApplication>
#include <QFileInfo>
#include <QList>
#include <QTextStream>
#include <QtAlgorithms>
-#include <kapplication.h>
#include <klocale.h>
#include <kdebug.h>
#include <kmessagebox.h>
// the two messages should be merged
QString msg = i18n("Could not load \"%1\"\nDo you want to try again?", url.path());
int result = KMessageBox::warningContinueCancel(0, msg,
- kapp->makeStdCaption(i18n("I/O Failure")),
+ i18n("I/O Failure"),
KGuiItem(i18n("&Retry")));
if ( result == KMessageBox::Cancel ) {
Init();
// the two messages should be merged
QString msg = i18n("Could not save \"%1\"\nDo you want to try again?", tmp.path());
int result = KMessageBox::warningContinueCancel(0, msg,
- kapp->makeStdCaption(i18n("I/O Failure")),
+ i18n("I/O Failure"),
KGuiItem(i18n("&Retry")));
if ( result == KMessageBox::Cancel ) return false;
}
* *
***************************************************************************/
-#include <kapplication.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>
+#include <QApplication>
#include <QTextStream>
#include <QList>
"read documents with unknown elements.\n", elem
);
QApplication::changeOverrideCursor(Qt::ArrowCursor);
- QString s = kapp->makeStdCaption(i18n("Unknown element"));
+ QString s = i18n("Unknown element");
KMessageBox::sorry(0, ln+msg, s);
QApplication::restoreOverrideCursor();
}
void KEduVocKvtmlReader::domError(const QString &text )
{
QApplication::changeOverrideCursor(Qt::ArrowCursor);
- QString s = kapp->makeStandardCaption(i18n("Error"), this);
+ QString s = i18n("Error");
QString ln = i18n("File:\t%1\n", m_doc->URL().path());
QString msg = text;
KMessageBox::error(0, ln+msg, s);