[aKregator-devel] [Bug 104169] Kiosk restrictions are not applied completely to settings dialog
Brought to you by:
lippel
From: Heinrich W. <h_w...@co...> - 2005-06-27 11:52:42
|
------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=104169 ------- Additional Comments From h_wendel cojobo net 2005-06-27 13:52 ------- SVN commit 429361 by lanius: fix kiosk settings for font options CCBUG: 104169 M +9 -1 configdialog.cpp M +4 -1 configdialog.h M +2 -2 settings_appearance.ui --- trunk/KDE/kdepim/akregator/src/configdialog.cpp #429360:429361 @ -35,6 +35,8 @ #include "settings_archive.h" #include "settings_browser.h" #include "settings_general.h" +#include <qslider.h> +#include <qlabel.h> namespace Akregator { @ -43,11 +45,13 @ { addPage(new SettingsGeneral(this, "General"), i18n("General"), "package_settings"); addPage(new SettingsArchive(this, "Archive"), i18n("Archive"), "package_settings"); - addPage(new SettingsAppearance(this, "Appearance"), i18n("Appearance"), "fonts"); + m_settingsAppearance = new SettingsAppearance(this, "Appearance"); + addPage(m_settingsAppearance, i18n("Appearance"), "fonts"); addPage(new SettingsBrowser(this, "Browser"), i18n("Browser"), "package_network"); m_settingsAdvanced = new SettingsAdvanced(this, "Advanced"); addPage(m_settingsAdvanced, i18n("Advanced"), "package_network"); m_settingsAdvanced->selectFactory(Settings::archiveBackend()); + m_config = config; } void ConfigDialog::updateSettings() @ -59,6 +63,10 @ void ConfigDialog::updateWidgets() { m_settingsAdvanced->selectFactory(Settings::archiveBackend()); + m_settingsAppearance->slider_minimumFontSize->setDisabled(m_config->isImmutable("MinimumFontSize")); + m_settingsAppearance->slider_mediumFontSize->setDisabled(m_config->isImmutable("MediumFontSize")); + m_settingsAppearance->lbl_MinimumFontSize->setDisabled(m_config->isImmutable("MinimumFontSize")); + m_settingsAppearance->lbl_MediumFontSize->setDisabled(m_config->isImmutable("MediumFontSize")); KConfigDialog::updateSettings(); } --- trunk/KDE/kdepim/akregator/src/configdialog.h #429360:429361 @ -30,6 +30,7 @ namespace Akregator { class SettingsAdvanced; +class SettingsAppearance; class ConfigDialog : public KConfigDialog { @ -47,7 +48,9 @ virtual void updateWidgets(); private: - SettingsAdvanced* m_settingsAdvanced; + KConfigSkeleton* m_config; + SettingsAdvanced* m_settingsAdvanced; + SettingsAppearance* m_settingsAppearance; }; --- trunk/KDE/kdepim/akregator/src/settings_appearance.ui #429360:429361 @ -36,7 +36,7 @ </property> <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> <property name="name"> - <cstring>textLabel1_2</cstring> + <cstring>lbl_MinimumFontSize</cstring> </property> <property name="text"> <string>Minimum font size:</string> @ -75,7 +75,7 @ </widget> <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2"> <property name="name"> - <cstring>textLabel2</cstring> + <cstring>lbl_MediumFontSize</cstring> </property> <property name="text"> <string>Medium font size:</string> |