Commit 0acf9a77 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove kdelibs4support

parent 8182ac8e
......@@ -32,7 +32,7 @@ PrintOptions::PrintOptions(QWidget* aParent) : QWidget(aParent)
{
setupUi(this);
KConfigGroup configGroup(KGlobal::config(), "PrintOptions");
KConfigGroup configGroup(KSharedConfig::openConfig(), "PrintOptions");
printerFriendly->setChecked(configGroup.readEntry("PrinterFriendly", true));
scaleOutput->setChecked(configGroup.readEntry("ScaleOutput", true));
}
......@@ -43,7 +43,7 @@ PrintOptions::~PrintOptions()
void PrintOptions::saveSettings()
{
KConfigGroup configGroup(KGlobal::config(), "PrintOptions");
KConfigGroup configGroup(KSharedConfig::openConfig(), "PrintOptions");
configGroup.writeEntry("PrinterFriendly", printerFriendly->isChecked());
configGroup.writeEntry("ScaleOutput", scaleOutput->isChecked());
}
......@@ -151,7 +151,7 @@ QSet<QString> ProcessInfo::commonDirNames()
static bool forTheFirstTime = true;
if (forTheFirstTime) {
const KSharedConfigPtr& config = KGlobal::config();
const KSharedConfigPtr& config = KSharedConfig::openConfig();
const KConfigGroup& configGroup = config->group("ProcessInfo");
_commonDirNames = QSet<QString>::fromList(configGroup.readEntry("CommonDirNames", QStringList()));
......
......@@ -76,7 +76,7 @@ ProfileManager::ProfileManager()
// lookup the default profile specified in <App>rc
// for stand-alone Konsole, appConfig is just konsolerc
// for konsolepart, appConfig might be yakuakerc, dolphinrc, katerc...
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup group = appConfig->group("Desktop Entry");
QString defaultProfileFileName = group.readEntry("DefaultProfile", "");
......@@ -281,7 +281,7 @@ void ProfileManager::saveSettings()
saveFavorites();
// ensure default/favorites/shortcuts settings are synced into disk
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
appConfig->sync();
}
......@@ -428,7 +428,7 @@ void ProfileManager::saveDefaultProfile()
QFileInfo fileInfo(path);
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup group = appConfig->group("Desktop Entry");
group.writeEntry("DefaultProfile", fileInfo.fileName());
}
......@@ -454,7 +454,7 @@ void ProfileManager::setFavorite(Profile::Ptr profile , bool favorite)
}
void ProfileManager::loadShortcuts()
{
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup shortcutGroup = appConfig->group("Profile Shortcuts");
QMap<QString, QString> entries = shortcutGroup.entryMap();
......@@ -480,7 +480,7 @@ void ProfileManager::loadShortcuts()
}
void ProfileManager::saveShortcuts()
{
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup shortcutGroup = appConfig->group("Profile Shortcuts");
shortcutGroup.deleteGroup();
......@@ -534,7 +534,7 @@ void ProfileManager::loadFavorites()
if (_loadedFavorites)
return;
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup favoriteGroup = appConfig->group("Favorite Profiles");
QSet<QString> favoriteSet;
......@@ -567,7 +567,7 @@ void ProfileManager::loadFavorites()
}
void ProfileManager::saveFavorites()
{
KSharedConfigPtr appConfig = KGlobal::config();
KSharedConfigPtr appConfig = KSharedConfig::openConfig();
KConfigGroup favoriteGroup = appConfig->group("Favorite Profiles");
QStringList paths;
......
......@@ -1407,7 +1407,7 @@ void SessionController::print_screen()
QPainter painter;
painter.begin(&printer);
KConfigGroup configGroup(KGlobal::config(), "PrintOptions");
KConfigGroup configGroup(KSharedConfig::openConfig(), "PrintOptions");
if (configGroup.readEntry("ScaleOutput", true)) {
double scale = qMin(printer.pageRect().width() / static_cast<double>(_view->width()),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment