File indexing completed on 2025-01-19 03:59:16
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2004-11-22 0007 * Description : digiKam image editor - Configure 0008 * 0009 * SPDX-FileCopyrightText: 2004-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #include "imagewindow_p.h" 0016 0017 namespace Digikam 0018 { 0019 0020 void ImageWindow::slotSetup() 0021 { 0022 Setup::execDialog(this); 0023 } 0024 0025 void ImageWindow::slotSetupICC() 0026 { 0027 Setup::execSinglePage(this, Setup::ICCPage); 0028 } 0029 0030 void ImageWindow::slotSetupChanged() 0031 { 0032 applyStandardSettings(); 0033 0034 VersionManagerSettings versionSettings = ApplicationSettings::instance()->getVersionManagerSettings(); 0035 d->versionManager.setSettings(versionSettings); 0036 m_nonDestructive = versionSettings.enabled; 0037 toggleNonDestructiveActions(); 0038 0039 d->imageFilterModel->setStringTypeNatural(ApplicationSettings::instance()->isStringTypeNatural()); 0040 d->imageFilterModel->setSortRole((ItemSortSettings::SortRole)ApplicationSettings::instance()->getImageSortOrder()); 0041 d->imageFilterModel->setSortOrder((ItemSortSettings::SortOrder)ApplicationSettings::instance()->getImageSorting()); 0042 d->rightSideBar->setStyle(ApplicationSettings::instance()->getSidebarTitleStyle()); 0043 } 0044 0045 } // namespace Digikam