Ran kdesdk/scripts/kf5/convert-kstandarddirs.pl
This commit is contained in:
parent
330efc1fa3
commit
ffdf930f8c
@ -33,6 +33,7 @@
|
|||||||
#include <kstandarddirs.h>
|
#include <kstandarddirs.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <kiconloader.h>
|
#include <kiconloader.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
|
|
||||||
#include "package.h"
|
#include "package.h"
|
||||||
#include "pluginloader.h"
|
#include "pluginloader.h"
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
#include <kiconloader.h>
|
#include <kiconloader.h>
|
||||||
#include <kkeysequencewidget.h>
|
#include <kkeysequencewidget.h>
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
#include <kservice.h>
|
#include <kservice.h>
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
#include <kshortcut.h>
|
#include <kshortcut.h>
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#include <kmessagebox.h>
|
#include <kmessagebox.h>
|
||||||
#include <kmimetype.h>
|
#include <kmimetype.h>
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
#include <kurlmimedata.h>
|
#include <kurlmimedata.h>
|
||||||
#include <kwindowsystem.h>
|
#include <kwindowsystem.h>
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
#include <kglobal.h>
|
#include <kglobal.h>
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
|
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
|
||||||
|
@ -25,8 +25,9 @@
|
|||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
#include <kglobal.h>
|
#include <kglobal.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
|
|
||||||
#include "datacontainer.h"
|
#include "datacontainer.h"
|
||||||
#include "pluginloader.h"
|
#include "pluginloader.h"
|
||||||
@ -203,7 +204,7 @@ KPluginInfo::List DataEngineManager::listEngineInfoByCategory(const QString &cat
|
|||||||
void DataEngineManager::timerEvent(QTimerEvent *)
|
void DataEngineManager::timerEvent(QTimerEvent *)
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
QString path = KGlobal::dirs()->locateLocal("appdata", "plasma_dataenginemanager_log");
|
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QLatin1Char('/') + "plasma_dataenginemanager_log";
|
||||||
QFile f(path);
|
QFile f(path);
|
||||||
if (!f.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) {
|
if (!f.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) {
|
||||||
kDebug() << "faild to open" << path;
|
kDebug() << "faild to open" << path;
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
#include <kdesktopfile.h>
|
#include <kdesktopfile.h>
|
||||||
#include <kmimetype.h>
|
#include <kmimetype.h>
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
#include <ktar.h>
|
#include <ktar.h>
|
||||||
#include <kzip.h>
|
#include <kzip.h>
|
||||||
|
|
||||||
@ -46,6 +45,7 @@
|
|||||||
#include <kio/deletejob.h>
|
#include <kio/deletejob.h>
|
||||||
#include <kio/jobclasses.h>
|
#include <kio/jobclasses.h>
|
||||||
#include <kio/job.h>
|
#include <kio/job.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "packagestructure.h"
|
#include "packagestructure.h"
|
||||||
@ -716,7 +716,7 @@ bool PackagePrivate::installPackage(const QString &package, const QString &packa
|
|||||||
QDir root(packageRoot);
|
QDir root(packageRoot);
|
||||||
|
|
||||||
if (!root.exists()) {
|
if (!root.exists()) {
|
||||||
KStandardDirs::makeDir(packageRoot);
|
QDir().mkpath(packageRoot);
|
||||||
if (!root.exists()) {
|
if (!root.exists()) {
|
||||||
kWarning() << "Could not create package root directory:" << packageRoot;
|
kWarning() << "Could not create package root directory:" << packageRoot;
|
||||||
return false;
|
return false;
|
||||||
|
@ -559,9 +559,7 @@ KPluginInfo::List PluginLoader::internalContainmentActionsInfo() const
|
|||||||
|
|
||||||
static KPluginInfo::List standardInternalInfo(const QString &type, const QString &category = QString())
|
static KPluginInfo::List standardInternalInfo(const QString &type, const QString &category = QString())
|
||||||
{
|
{
|
||||||
QStringList files = KGlobal::dirs()->findAllResources("appdata",
|
QStringList files = KGlobal::dirs()->findAllResources("appdata", "plasma/internal/" + type + "/*.desktop", KStandardDirs::NoDuplicates);
|
||||||
"plasma/internal/" + type + "/*.desktop",
|
|
||||||
KStandardDirs::NoDuplicates);
|
|
||||||
|
|
||||||
KPluginInfo::List allInfo = KPluginInfo::fromFiles(files);
|
KPluginInfo::List allInfo = KPluginInfo::fromFiles(files);
|
||||||
|
|
||||||
|
@ -30,9 +30,10 @@
|
|||||||
#include <kservice.h>
|
#include <kservice.h>
|
||||||
#include <kservicetypetrader.h>
|
#include <kservicetypetrader.h>
|
||||||
#include <ksharedconfig.h>
|
#include <ksharedconfig.h>
|
||||||
#include <kstandarddirs.h>
|
|
||||||
#include <dnssd/publicservice.h>
|
#include <dnssd/publicservice.h>
|
||||||
#include <dnssd/servicebrowser.h>
|
#include <dnssd/servicebrowser.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
|
|
||||||
#include "configloader.h"
|
#include "configloader.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include <kstandarddirs.h>
|
#include <kstandarddirs.h>
|
||||||
#include <kwindoweffects.h>
|
#include <kwindoweffects.h>
|
||||||
#include <kwindowsystem.h>
|
#include <kwindowsystem.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
|
|
||||||
|
|
||||||
#include "libplasma-theme-global.h"
|
#include "libplasma-theme-global.h"
|
||||||
@ -509,8 +510,7 @@ Theme::~Theme()
|
|||||||
|
|
||||||
KPluginInfo::List Theme::listThemeInfo()
|
KPluginInfo::List Theme::listThemeInfo()
|
||||||
{
|
{
|
||||||
const QStringList themes = KGlobal::dirs()->findAllResources("data", "desktoptheme/*/metadata.desktop",
|
const QStringList themes = KGlobal::dirs()->findAllResources("data", "desktoptheme/*/metadata.desktop", KStandardDirs::NoDuplicates);
|
||||||
KStandardDirs::NoDuplicates);
|
|
||||||
return KPluginInfo::fromFiles(themes);
|
return KPluginInfo::fromFiles(themes);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -752,14 +752,14 @@ QString Theme::wallpaperPath(const QSize &size) const
|
|||||||
if (fullPath.isEmpty()) {
|
if (fullPath.isEmpty()) {
|
||||||
// we failed to find it in the theme, so look in the standard directories
|
// we failed to find it in the theme, so look in the standard directories
|
||||||
//kDebug() << "looking for" << image;
|
//kDebug() << "looking for" << image;
|
||||||
fullPath = KStandardDirs::locate("wallpaper", image);
|
fullPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("wallpapers/") + image);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fullPath.isEmpty()) {
|
if (fullPath.isEmpty()) {
|
||||||
// we still failed to find it in the theme, so look for the default in
|
// we still failed to find it in the theme, so look for the default in
|
||||||
// the standard directories
|
// the standard directories
|
||||||
//kDebug() << "looking for" << defaultImage;
|
//kDebug() << "looking for" << defaultImage;
|
||||||
fullPath = KStandardDirs::locate("wallpaper", defaultImage);
|
fullPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("wallpapers/") + defaultImage);
|
||||||
|
|
||||||
if (fullPath.isEmpty()) {
|
if (fullPath.isEmpty()) {
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <version.h>
|
#include <version.h>
|
||||||
|
#include <qstandardpaths.h>
|
||||||
|
|
||||||
#include "package.h"
|
#include "package.h"
|
||||||
#include "pluginloader.h"
|
#include "pluginloader.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user