Commit 554f8602 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove kde4support

parent 1d0e3df9
......@@ -69,7 +69,7 @@ MainWindow::MainWindow(QWidget *)
MainWindow::~MainWindow()
{
if (m_recentFilesAction) {
m_recentFilesAction->saveEntries(KGlobal::config()->group("Recent Files"));
m_recentFilesAction->saveEntries(KSharedConfig::openConfig()->group("Recent Files"));
}
delete m_part;
m_part = 0;
......@@ -177,7 +177,7 @@ void MainWindow::setupActions()
m_recentFilesAction->setIconText(i18nc("action, to open an archive", "Open"));
m_recentFilesAction->setStatusTip(i18n("Click to open an archive, click and hold to open a recently-opened archive"));
m_recentFilesAction->setToolTip(i18n("Open an archive"));
m_recentFilesAction->loadEntries(KGlobal::config()->group("Recent Files"));
m_recentFilesAction->loadEntries(KSharedConfig::openConfig()->group("Recent Files"));
connect(m_recentFilesAction, SIGNAL(triggered()),
this, SLOT(openArchive()));
......
......@@ -93,7 +93,7 @@ AddDialog::AddDialog(const QStringList& itemsToAdd,
void AddDialog::loadConfiguration()
{
m_config = KConfigGroup(KGlobal::config()->group("AddDialog"));
m_config = KConfigGroup(KSharedConfig::openConfig()->group("AddDialog"));
const QString defaultMimeType = QLatin1String( "application/x-compressed-tar" );
const QStringList writeMimeTypes = Kerfuffle::supportedWriteMimeTypes();
......
......@@ -226,7 +226,7 @@ void ExtractionDialog::writeSettings()
ArkSettings::setOpenDestinationFolderAfterExtraction(openDestinationAfterExtraction());
ArkSettings::setCloseAfterExtraction(closeAfterExtraction());
ArkSettings::setPreservePaths(preservePaths());
ArkSettings::self()->writeConfig();
ArkSettings::self()->save();
}
}
......
......@@ -81,7 +81,7 @@ JobsTest::JobsTest()
{
// Hackish way to make sure the i18n stuff
// is called from the main thread
KGlobal::locale();
KLocale::global();
qRegisterMetaType<ArchiveEntry>("ArchiveEntry");
}
......
......@@ -342,7 +342,7 @@ QVariant ArchiveModel::data(const QModelIndex &index, int role) const
case Timestamp: {
const QDateTime timeStamp = node->entry().value(Timestamp).toDateTime();
return KGlobal::locale()->formatDateTime(timeStamp);
return KLocale::global()->formatDateTime(timeStamp);
}
default:
......
......@@ -61,7 +61,7 @@ ArkViewer::~ArkViewer()
void ArkViewer::dialogClosed()
{
KConfigGroup conf = KGlobal::config()->group("Viewer");
KConfigGroup conf = KSharedConfig::openConfig()->group("Viewer");
saveDialogSize(conf);
if (m_part) {
......@@ -194,7 +194,7 @@ bool ArkViewer::viewInInternalViewer(const QString& fileName, const KMimeType::P
const KUrl fileUrl(fileName);
setCaption(fileUrl.fileName());
restoreDialogSize(KGlobal::config()->group("Viewer"));
restoreDialogSize(KSharedConfig::openConfig()->group("Viewer"));
QFrame *header = new QFrame(m_widget);
QHBoxLayout *headerLayout = new QHBoxLayout(header);
......
......@@ -318,7 +318,7 @@ void Part::updateActions()
menu->removeAction(menu->actions().last());
}
const KConfigGroup conf(KGlobal::config(), "DirSelect Dialog");
const KConfigGroup conf(KSharedConfig::openConfig(), "DirSelect Dialog");
const QStringList dirHistory = conf.readPathEntry("History Items", QStringList());
for (int i = 0; i < qMin(10, dirHistory.size()); ++i) {
......@@ -871,7 +871,7 @@ void Part::slotToggleInfoPanel(bool visible)
void Part::saveSplitterSizes()
{
ArkSettings::setSplitterSizes(m_splitter->sizes());
ArkSettings::self()->writeConfig();
ArkSettings::self()->save();
}
void Part::slotSaveAs()
......@@ -890,7 +890,7 @@ void Part::slotSaveAs()
}
}
KUrl srcUrl = KUrl::fromPath(localFilePath());
KUrl srcUrl = QUrl::fromLocalFile(localFilePath());
if (!QFile::exists(localFilePath())) {
if (url().isLocalFile()) {
......
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