| Summary: | Kiosk restrictions are not applied completely to settings dialog | ||
|---|---|---|---|
| Product: | [Applications] akregator | Reporter: | Eckhart Wörner <ewoerner> |
| Component: | general | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | minor | CC: | adrian |
| Priority: | NOR | ||
| Version First Reported In: | 1.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Eckhart Wörner
2005-04-18 22:05:20 UTC
the global fetch interval seems to work fine here, any hint? 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>
the global fetch interval is a different bug. the kiosk restrictions are applied, so you can't change anything although it is enabled. the problem is a bigger one that affects other options and other applications as well. it is related to connecting toggled(bool) to setEnabled(bool). From the last comment, I assume this is an upstream issue, not Akregator’s. Can this be closed? Closing as outdated. |