]> Git trees. - libqmvoc.git/commitdiff
makeStandardCaption
authorAaron J. Seigo <aseigo@kde.org>
Mon, 4 Dec 2006 15:55:31 +0000 (15:55 +0000)
committerAaron J. Seigo <aseigo@kde.org>
Mon, 4 Dec 2006 15:55:31 +0000 (15:55 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=610591

kdeeducore/keduvocdocument.cpp
kdeeducore/keduvockvtmlreader.cpp

index 50f868db5953c3e8cd65f7114e20c08472f01889..170a10d301721caa6e51d2feef76c4b089ae2e47 100644 (file)
 
 #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>
@@ -170,7 +170,7 @@ bool KEduVocDocument::open(const KUrl& url, bool /*append*/)
         // 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();
@@ -267,7 +267,7 @@ bool KEduVocDocument::saveAs(QObject *parent, const KUrl & url, FileType ft, con
       // 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;
     }
index 8d554abd92ff583511a1296e0625600c720f7c37..214ba162d9c45d1b07333791293cffb2f9dcace9 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
-#include <kapplication.h>
 #include <kdebug.h>
 #include <klocale.h>
 #include <kmessagebox.h>
 
+#include <QApplication>
 #include <QTextStream>
 #include <QList>
 
@@ -1665,7 +1665,7 @@ void KEduVocKvtmlReader::domErrorUnknownElement(const QString &elem)
       "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();
 }
@@ -1673,7 +1673,7 @@ void KEduVocKvtmlReader::domErrorUnknownElement(const QString &elem)
 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);