1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-04 13:47:19 +03:00

simplify autosize container ability

This commit is contained in:
Michail Vourlakos 2020-04-26 17:02:31 +03:00
parent 04daf81ac5
commit 7709e1514b
5 changed files with 4 additions and 28 deletions

View File

@ -1,24 +0,0 @@
/*
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.7
Item {
property QtObject publicApi: Item{}
}

View File

@ -24,7 +24,7 @@ import org.kde.plasma.plasmoid 2.0
import org.kde.latte.core 0.2 as LatteCore
Ability {
Item {
id: sizer
// when there are only plasma style task managers OR any applets that fill width or height

View File

@ -22,7 +22,7 @@ import QtQuick 2.7
ContainerPrivate {
id: apis
publicApi: Item {
readonly property Item publicApi: Item {
readonly property alias iconSize: apis.iconSize
readonly property alias maxIconSize: apis.maxIconSize
}

View File

@ -20,7 +20,7 @@
import QtQuick 2.7
import org.kde.plasma.plasmoid 2.0
Ability {
Item {
id: privateContainer
property Item animations: null

View File

@ -1743,7 +1743,7 @@ Item {
settings: universalSettings
}
Ability.AutoSizePrivate {
Ability.AutoSize {
id: _autosize
container: _container
layouts: layoutsContainer