generic: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-05-17 18:06:38 +00:00
parent a1711089b2
commit 1a61092a69
14 changed files with 27 additions and 14 deletions

View file

@ -87,7 +87,7 @@ void Folder::init(bool system, bool systemBus)
itsDisabledCfg.dirty=false;
if(itsDisabledCfg.name.isEmpty())
{
QString fileName("/"DISABLED_FONTS".xml");
QString fileName("/" DISABLED_FONTS ".xml");
if(system)
itsDisabledCfg.name=QString::fromLatin1(KFI_ROOT_CFG_DIR)+fileName;
@ -213,14 +213,14 @@ void Folder::saveDisabled()
QTextStream str(&file);
str << "<"DISABLED_FONTS">" << endl;
str << "<" DISABLED_FONTS ">" << endl;
FamilyCont::ConstIterator it(itsFonts.begin()),
end(itsFonts.end());
for(; it!=end; ++it)
(*it).toXml(true, str);
str << "</"DISABLED_FONTS">" << endl;
str << "</" DISABLED_FONTS ">" << endl;
str.flush();
if(!file.finalize())
@ -248,11 +248,11 @@ QStringList Folder::toXml(int max)
{
if(i)
{
str << "</"FONTLIST_TAG">" << endl;
str << "</" FONTLIST_TAG ">" << endl;
rv.append(string);
string=QString();
}
str << "<"FONTLIST_TAG" " << SYSTEM_ATTR"=\"" << (itsIsSystem ? "true" : "false") << "\">" << endl;
str << "<" FONTLIST_TAG " " << SYSTEM_ATTR "=\"" << (itsIsSystem ? "true" : "false") << "\">" << endl;
}
(*it).toXml(false, str);
@ -260,7 +260,7 @@ QStringList Folder::toXml(int max)
if(!string.isEmpty())
{
str << "</"FONTLIST_TAG">" << endl;
str << "</" FONTLIST_TAG ">" << endl;
rv.append(string);
}
return rv;

View file

@ -178,16 +178,16 @@ bool CGroupListItem::addFamilies(QDomElement &elem)
void CGroupListItem::save(QTextStream &str)
{
str << " <"GROUP_TAG" "NAME_ATTR"=\"" << Misc::encodeText(itsName, str) << "\">" << endl;
str << " <" GROUP_TAG " " NAME_ATTR "=\"" << Misc::encodeText(itsName, str) << "\">" << endl;
if(itsFamilies.count())
{
QSet<QString>::ConstIterator it(itsFamilies.begin()),
end(itsFamilies.end());
for(; it!=end; ++it)
str << " <"FAMILY_TAG">" << Misc::encodeText(*it, str) << "</"FAMILY_TAG">" << endl;
str << " <" FAMILY_TAG ">" << Misc::encodeText(*it, str) << "</" FAMILY_TAG ">" << endl;
}
str << " </"GROUP_TAG">" << endl;
str << " </" GROUP_TAG ">" << endl;
}
CGroupList::CGroupList(QWidget *parent)
@ -494,7 +494,7 @@ bool CGroupList::save(const QString &fileName, CGroupListItem *grp)
{
QTextStream str(&file);
str << "<"GROUPS_DOC">" << endl;
str << "<" GROUPS_DOC ">" << endl;
if(grp)
grp->save(str);
@ -507,7 +507,7 @@ bool CGroupList::save(const QString &fileName, CGroupListItem *grp)
if((*it)->isCustom())
(*it)->save(str);
}
str << "</"GROUPS_DOC">" << endl;
str << "</" GROUPS_DOC ">" << endl;
itsModified=false;
return file.finalize();
}

View file

@ -23,6 +23,7 @@
#define KSCREENSAVER_H
#include <QtGui/QWidget>
#include <QtGui/QDialog>
#include <kscreensaver_export.h>
#include <kaboutdata.h> // needed by all users of this header, so no point in a forward declaration

View file

@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <Plasma/PackageStructure>
#include <QTimer>
#include <QDeclarativeView>
namespace Plasma {

View file

@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef KWIN_PLASTIK_BUTTON_H
#define KWIN_PLASTIK_BUTTON_H
#include <QPainter>
#include <QDeclarativeImageProvider>
namespace KWin

View file

@ -39,6 +39,8 @@
#include "ui_decoration.h"
#include <QSortFilterProxyModel>
#include <QTimer>
namespace KWin
{

View file

@ -24,6 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <netwm_def.h>
#include <QRect>
#include <QTimer>
#include <kconfiggroup.h>
#include <kdebug.h>

View file

@ -24,6 +24,7 @@
#include "oxygen_export.h"
#include <QtGui/QPixmap>
#include <QtGui/QPainter>
#include <QtCore/QRect>
#include <QtCore/QVector>

View file

@ -24,6 +24,8 @@
#include <Plasma/PopupApplet>
#include <Plasma/Label>
#include <QTimer>
#include "plasmaclock/calendar.h"
namespace Plasma

View file

@ -23,14 +23,14 @@
#include <QtGui/qgraphicssceneevent.h>
#include <QList>
#include <QTimer>
#include <QDesktopWidget>
#include <Plasma/Applet>
#include "model.h"
#include "ui_pagerConfig.h"
#include <QDesktopWidget>
class KColorScheme;
class KWindowInfo;
class KCModuleProxy;

View file

@ -23,9 +23,10 @@
#define PLASMA_NEWSPAPER_H
#include <Plasma/Containment>
#include <QTimer>
#include <QGraphicsLinearLayout>
class AppletOverlay;
#include <QGraphicsLinearLayout>
class AppletsContainer;
class AppletsView;

View file

@ -20,6 +20,7 @@
#ifndef MOUSEEVENTLISTENER_H
#define MOUSEEVENTLISTENER_H
#include <QTimer>
#include <QDeclarativeItem>
class KDeclarativeMouseEvent : public QObject

View file

@ -25,6 +25,7 @@
#include <QBoxLayout>
#include <QGraphicsWidget>
#include <QTimer>
namespace Plasma
{

View file

@ -22,6 +22,7 @@
#include <Plasma/Corona>
#include <QTimer>
#include <QMenu>
#include <QAction>