#include <solid/networking.h>
#include <QWidget>
+#include <QTimer>
#include <boost/shared_ptr.hpp>
#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 {
#include <QList>
#include <QTextStream>
#include <QEventLoop>
-#include <QStringBuilder>
#include <ksavefile.h>
#include <kapplication.h>
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() );
}
}
#include "fastsizehintitemdelegate.h"
#include <QPainter>
-#include <QStringBuilder>
#include <QTextDocument>
FastSizeHintItemDelegate::FastSizeHintItemDelegate(QObject *parent, const QVector<bool>& slc, const QVector<bool>& rtc)
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;
}
#include <kicon.h>
#include <klocale.h>
-#include <QStringBuilder>
#include <QCoreApplication>
#include <QSortFilterProxyModel>
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);
}
// 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();
}
#include <kcompletionbox.h>
-#include <QStringBuilder>
#include <QPixmap>
#include <QPushButton>
#include <QPainter>
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);
}
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();
#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
{