OSDN Git Service

generic: adjust to Katie changes
authorIvailo Monev <xakepa10@laimg.moc>
Thu, 30 May 2019 02:19:12 +0000 (02:19 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Thu, 30 May 2019 02:19:12 +0000 (02:19 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
akregator/src/mainwidget.h
kuser/ku_configdlg.h
lokalize/src/catalog/gettext/gettextexport.cpp
lokalize/src/common/fastsizehintitemdelegate.cpp
lokalize/src/common/languagelistmodel.cpp
lokalize/src/lokalizemainwindow.cpp
lokalize/src/xlifftextedit.cpp
print-manager/libkcups/PrinterModel.cpp
yakuake/app/firstrundialog.h

index 79699f9..9e57015 100644 (file)
@@ -35,6 +35,7 @@
 #include <solid/networking.h>
 
 #include <QWidget>
+#include <QTimer>
 
 #include <boost/shared_ptr.hpp>
 
index a0bd272..dd52954 100644 (file)
 #include <kprogressdialog.h>
 #include <kio/job.h>
 
+QT_BEGIN_NAMESPACE
 class Ui_KU_FilesSettings;
+QT_END_NAMESPACE
+
 namespace KIO { class Job; }
 
 class KU_ConfigDlg : public KConfigDialog {
index 4a76781..085e8f9 100644 (file)
@@ -44,7 +44,6 @@
 #include <QList>
 #include <QTextStream>
 #include <QEventLoop>
-#include <QStringBuilder>
 
 #include <ksavefile.h>
 #include <kapplication.h>
@@ -121,7 +120,7 @@ ConversionStatus GettextExportPlugin::save(QIODevice* device,
             const int forms = catalog->numberOfPluralForms();
             for ( int i = 0; i < forms; ++i )
             {
-                QString keyword = "msgstr[" % QString::number( i ) % ']';
+                QString keyword = "msgstr[" + QString::number( i ) + ']';
                 writeKeyword( stream, keyword, catalogItem.msgstr(i), true, catalogItem.prependEmptyForMsgstr() );
             }
         }
index e0e1031..d580393 100644 (file)
@@ -25,7 +25,6 @@
 #include "fastsizehintitemdelegate.h"
 
 #include <QPainter>
-#include <QStringBuilder>
 #include <QTextDocument>
 
 FastSizeHintItemDelegate::FastSizeHintItemDelegate(QObject *parent, const QVector<bool>& slc, const QVector<bool>& rtc)
@@ -126,7 +125,7 @@ QString convertToHtml(QString str, bool italics)
     str=Qt::convertFromPlainText(str); //FIXME use another routine (this has bugs)
 
     if (italics)
-        str="<p><i>" % QString::fromRawData(str.unicode()+3, str.length()-3-4) % "</i></p>";
+        str="<p><i>" + QString::fromRawData(str.unicode()+3, str.length()-3-4) + "</i></p>";
 
     return str;
 }
index c350d70..9b19bde 100644 (file)
@@ -29,7 +29,6 @@
 #include <kicon.h>
 #include <klocale.h>
 
-#include <QStringBuilder>
 #include <QCoreApplication>
 #include <QSortFilterProxyModel>
 
@@ -106,7 +105,7 @@ QVariant LanguageListModel::data(const QModelIndex& index, int role) const
         const QString& code=stringList().at(index.row());
         if (code.isEmpty()) return code;
         //kDebug()<<"languageCodeToName"<<code;
-        return QVariant::fromValue<QString>(KGlobal::locale()->languageCodeToName(code)%" ("%code%")");
+        return QVariant::fromValue<QString>(KGlobal::locale()->languageCodeToName(code)+" ("+code+")");
     }
     return QStringListModel::data(index, role);
 }
index 91a6872..8dad839 100644 (file)
@@ -721,7 +721,7 @@ void LokalizeMainWindow::projectLoaded()
 //         KMessageBox::error(this, i18nc("@info","Error opening the following files:")+
 //                                 "<br><il><li><filename>"+failedFiles.join("</filename></li><li><filename>")+"</filename></li></il>" );
         KNotification* notification=new KNotification("FilesOpenError", this);
-        notification->setText( i18nc("@info","Error opening the following files:\n\n")%"<filename>"%failedFiles.join("</filename><br><filename>")%"</filename>" );
+        notification->setText( i18nc("@info","Error opening the following files:\n\n")+"<filename>"+failedFiles.join("</filename><br><filename>")+"</filename>" );
         notification->sendEvent();
     }
 
index b173679..ac81238 100644 (file)
@@ -34,7 +34,6 @@
 
 #include <kcompletionbox.h>
 
-#include <QStringBuilder>
 #include <QPixmap>
 #include <QPushButton>
 #include <QPainter>
@@ -1135,9 +1134,9 @@ bool TranslationUnitTextEdit::event(QEvent *event)
         bool nospell=langCode.isEmpty();
         if (nospell)
             langCode=m_part==DocPosition::Source?m_catalog->sourceLangCode():m_catalog->targetLangCode();
-        QString tip=KGlobal::locale()->languageCodeToName(langCode)%" ("%langCode%")";
+        QString tip=KGlobal::locale()->languageCodeToName(langCode)+" ("+langCode+")";
         if (nospell)
-            tip+=" - "%i18n("no spellcheck available");
+            tip+=" - "+i18n("no spellcheck available");
         QToolTip::showText(helpEvent->globalPos(), tip);
     }
     return KTextEdit::event(event);
index 3b3c77e..f13831a 100644 (file)
@@ -374,7 +374,7 @@ void PrinterModel::updateDest(QStandardItem *destItem, const KCupsPrinter &print
     }
 
     int markerChangeTime = printer.markerChangeTime();
-    if (markerChangeTime != destItem->data(DestMarkerChangeTime)) {
+    if (markerChangeTime != destItem->data(DestMarkerChangeTime).toInt()) {
         destItem->setData(printer.markerChangeTime(), DestMarkerChangeTime);
         QVariantHash markers;
         markers["marker-change-time"] = printer.markerChangeTime();
index f6a5361..eed6087 100644 (file)
 #ifndef FIRSTRUNDIALOG_H
 #define FIRSTRUNDIALOG_H
 
-
 #include <KDialog>
 
-
 class MainWindow;
-class Ui_FirstRunDialog;
 
+QT_BEGIN_NAMESPACE
+class Ui_FirstRunDialog;
+QT_END_NAMESPACE
 
 class FirstRunDialog : public KDialog
 {