mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a1711089b2
commit
1a61092a69
14 changed files with 27 additions and 14 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
#include "ui_decoration.h"
|
||||
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QTimer>
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "oxygen_export.h"
|
||||
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtCore/QRect>
|
||||
#include <QtCore/QVector>
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <Plasma/PopupApplet>
|
||||
#include <Plasma/Label>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
#include "plasmaclock/calendar.h"
|
||||
|
||||
namespace Plasma
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -23,9 +23,10 @@
|
|||
#define PLASMA_NEWSPAPER_H
|
||||
|
||||
#include <Plasma/Containment>
|
||||
#include <QTimer>
|
||||
#include <QGraphicsLinearLayout>
|
||||
|
||||
class AppletOverlay;
|
||||
#include <QGraphicsLinearLayout>
|
||||
class AppletsContainer;
|
||||
class AppletsView;
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#ifndef MOUSEEVENTLISTENER_H
|
||||
#define MOUSEEVENTLISTENER_H
|
||||
|
||||
#include <QTimer>
|
||||
#include <QDeclarativeItem>
|
||||
|
||||
class KDeclarativeMouseEvent : public QObject
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <QBoxLayout>
|
||||
#include <QGraphicsWidget>
|
||||
#include <QTimer>
|
||||
|
||||
namespace Plasma
|
||||
{
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <Plasma/Corona>
|
||||
|
||||
#include <QTimer>
|
||||
#include <QMenu>
|
||||
#include <QAction>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue