remove deprecated options

--reversed, dotsOnActive and
threeColors that were related
to Latte indicator
pull/5/head
Michail Vourlakos 6 years ago
parent 950c067ba6
commit 67a4a4ab14

@ -49,7 +49,6 @@ Indicator::Indicator(Latte::View *parent)
connect(this, &Indicator::enabledChanged, this, &Indicator::saveConfig);
connect(this, &Indicator::enabledForAppletsChanged, this, &Indicator::saveConfig);
connect(this, &Indicator::paddingChanged, this, &Indicator::saveConfig);
connect(this, &Indicator::reversedChanged, this, &Indicator::saveConfig);
connect(this, &Indicator::pluginChanged, this, &Indicator::saveConfig);
connect(m_view, &Latte::View::latteTasksArePresentChanged, this, &Indicator::latteTasksArePresentChanged);
@ -142,21 +141,6 @@ void Indicator::setProvidesConfigUi(bool provides)
emit providesConfigUiChanged();
}
bool Indicator::reversed() const
{
return m_reversed;
}
void Indicator::setReversed(bool reversed)
{
if (m_reversed == reversed) {
return;
}
m_reversed = reversed;
emit reversedChanged();
}
float Indicator::padding() const
{
return m_padding;
@ -440,7 +424,6 @@ void Indicator::loadConfig()
m_enabled = config.readEntry("enabled", true);
m_enabledForApplets = config.readEntry("enabledForApplets", true);
m_padding = config.readEntry("padding", (float)0.08);
m_reversed = config.readEntry("reversed", false);
m_type = config.readEntry("type", "org.kde.latte.default");
}
@ -451,7 +434,6 @@ void Indicator::saveConfig()
config.writeEntry("enabled", m_enabled);
config.writeEntry("enabledForApplets", m_enabledForApplets);
config.writeEntry("padding", m_padding);
config.writeEntry("reversed", m_reversed);
config.writeEntry("type", m_type);
config.sync();

@ -56,7 +56,6 @@ class Indicator: public QObject
Q_PROPERTY(bool latteTasksArePresent READ latteTasksArePresent NOTIFY latteTasksArePresentChanged)
Q_PROPERTY(bool pluginIsReady READ pluginIsReady NOTIFY pluginIsReadyChanged)
Q_PROPERTY(bool providesConfigUi READ providesConfigUi NOTIFY providesConfigUiChanged)
Q_PROPERTY(bool reversed READ reversed WRITE setReversed NOTIFY reversedChanged)
Q_PROPERTY(float padding READ padding WRITE setPadding NOTIFY paddingChanged)
@ -97,9 +96,6 @@ public:
bool pluginIsReady();
bool reversed() const;
void setReversed(bool reversed);
float padding() const;
void setPadding(float padding);
@ -140,7 +136,6 @@ signals:
void pluginChanged();
void pluginIsReadyChanged();
void providesConfigUiChanged();
void reversedChanged();
private:
void loadConfig();
@ -160,7 +155,6 @@ private:
bool m_enabledForApplets{true};
bool m_pluginIsReady{false};
bool m_providesConfigUi{true};
bool m_reversed{false};
float m_padding{0.08};

@ -278,15 +278,6 @@
<default>true</default>
</entry>
<!-- Tasks properties -->
<entry name="threeColorsWindows" type="Bool">
<default>false</default>
</entry>
<entry name="dotsOnActive" type="Bool">
<default>false</default>
</entry>
<entry name="reverseLinesPosition" type="Bool">
<default>false</default>
</entry>
<entry name="launchersGroup" type="Enum">
<choices>
<choice name="Unique"/>

@ -33,7 +33,6 @@ Item{
readonly property bool isEnabled: latteView && latteView.indicator ? (latteView.indicator.enabled && latteView.indicator.pluginIsReady) : false
readonly property bool enabledForApplets: latteView && latteView.indicator ? latteView.indicator.enabledForApplets : true
readonly property bool reversed: latteView && latteView.indicator ? latteView.indicator.reversed : false
readonly property real padding: Math.max(info.minLengthPadding, latteView && latteView.indicator ? latteView.indicator.padding : 0.08)
readonly property string type: latteView && latteView.indicator ? latteView.indicator.type : "org.kde.latte.default"

@ -98,9 +98,6 @@
<entry name="durationTime" type="Int">
<default>2</default>
</entry>
<entry name="reverseLinesPosition" type="Bool">
<default>false</default>
</entry>
<entry name="showWindowActions" type="Bool">
<default>false</default>
</entry>

@ -42,7 +42,6 @@ Item {
property alias cfg_threeColorsWindows: threeColorsWindows.checked
property alias cfg_dotsOnActive: dotsOnActive.checked
property alias cfg_durationTime : durationTime.value
property alias cfg_reverseLinesPosition : reverseLinesPosition.checked
property alias cfg_isInLatteDock: mainItem.isInLatteDock
@ -172,12 +171,6 @@ Item {
text: i18n("Indicator for active window group")
enabled: true
}
CheckBox {
id: reverseLinesPosition
text: i18n("Reverse position for lines and dots")
enabled: true
}
}
}

@ -34,7 +34,6 @@ Item{
readonly property Item configuration: explicitOptions
readonly property bool isEnabled: true
readonly property bool reversed: plasmoid.configuration.reverseLinesPosition
readonly property string type: "org.kde.latte.default"
readonly property Component indicatorComponent: latteStyleIndicator

@ -593,17 +593,6 @@ PlasmaComponents.Page {
latteView.indicator.enabledForApplets = !latteView.indicator.enabledForApplets;
}
}
LatteComponents.CheckBox {
Layout.maximumWidth: dialog.optionsWidth
text: i18n("Reverse indicator style")
checked: latteView.indicator.reversed
tooltip: i18n("Reverse indicator style e.g. from bottom to top")
onClicked: {
latteView.indicator.reversed = !latteView.indicator.reversed;
}
}
}
}
}

Loading…
Cancel
Save