mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 17:47:23 +03:00
fastLayoutManager add lockedZoomApplets property
This commit is contained in:
parent
98e89d6e39
commit
5c29dcc1e0
@ -849,6 +849,8 @@ Item {
|
||||
root.updateIndexes();
|
||||
}
|
||||
|
||||
onLockedZoomAppletsChanged: plasmoid.configuration.lockedZoomApplets = fastLayoutManager.lockedZoomApplets;
|
||||
|
||||
onSplitterPositionChanged: {
|
||||
plasmoid.configuration.splitterPosition = fastLayoutManager.splitterPosition;
|
||||
root.updateIndexes();
|
||||
|
@ -87,6 +87,21 @@ void LayoutManager::setAppletOrder(const QString &order)
|
||||
emit appletOrderChanged();
|
||||
}
|
||||
|
||||
QString LayoutManager::lockedZoomApplets() const
|
||||
{
|
||||
return m_lockedZoomApplets;
|
||||
}
|
||||
|
||||
void LayoutManager::setLockedZoomApplets(const QString &applets)
|
||||
{
|
||||
if (m_lockedZoomApplets == applets) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_lockedZoomApplets = applets;
|
||||
emit lockedZoomAppletsChanged();
|
||||
}
|
||||
|
||||
QObject *LayoutManager::plasmoid() const
|
||||
{
|
||||
return m_plasmoid;
|
||||
|
@ -53,7 +53,7 @@ class LayoutManager : public QObject
|
||||
Q_PROPERTY(int splitterPosition READ splitterPosition NOTIFY splitterPositionChanged)
|
||||
Q_PROPERTY(int splitterPosition2 READ splitterPosition2 NOTIFY splitterPosition2Changed)
|
||||
Q_PROPERTY(QString appletOrder READ appletOrder NOTIFY appletOrderChanged)
|
||||
|
||||
Q_PROPERTY(QString lockedZoomApplets READ lockedZoomApplets NOTIFY lockedZoomAppletsChanged)
|
||||
|
||||
public:
|
||||
LayoutManager(QObject *parent = nullptr);
|
||||
@ -61,6 +61,7 @@ public:
|
||||
int splitterPosition() const;
|
||||
int splitterPosition2() const;
|
||||
QString appletOrder() const;
|
||||
QString lockedZoomApplets() const;
|
||||
|
||||
QObject *plasmoid() const;
|
||||
void setPlasmoid(QObject *plasmoid);
|
||||
@ -99,6 +100,7 @@ signals:
|
||||
void plasmoidChanged();
|
||||
void rootItemChanged();
|
||||
void dndSpacerChanged();
|
||||
void lockedZoomAppletsChanged();
|
||||
void mainLayoutChanged();
|
||||
void metricsChanged();
|
||||
void splitterPositionChanged();
|
||||
@ -116,6 +118,7 @@ private:
|
||||
void setSplitterPosition2(const int &position);
|
||||
|
||||
void setAppletOrder(const QString &order);
|
||||
void setLockedZoomApplets(const QString &applets);
|
||||
|
||||
bool isValidApplet(const int &id);
|
||||
bool insertAtLayoutCoordinates(QQuickItem *layout, QQuickItem *item, int x, int y);
|
||||
@ -124,6 +127,7 @@ private:
|
||||
int m_splitterPosition{-1};
|
||||
int m_splitterPosition2{-1};
|
||||
QString m_appletOrder;
|
||||
QString m_lockedZoomApplets;
|
||||
|
||||
QQuickItem *m_rootItem{nullptr};
|
||||
QQuickItem *m_dndSpacer{nullptr};
|
||||
|
Loading…
x
Reference in New Issue
Block a user