Added Page element
Summary: Page element was missing. I added it. Reviewers: #plasma, ngraham, mart Reviewed By: #plasma, ngraham, mart Subscribers: ngraham, davidedmundson, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D28466
This commit is contained in:
parent
bc3ccd1782
commit
8b5e093141
30
src/declarativeimports/plasmacomponents3/Page.qml
Normal file
30
src/declarativeimports/plasmacomponents3/Page.qml
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2020 Niccolò Venerandi <niccolo@venerandi.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library General Public License as
|
||||
* published by the Free Software Foundation; either version 2, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program 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 Library General Public License for more details
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Templates @QQC2_VERSION@ as T
|
||||
|
||||
T.Page {
|
||||
implicitWidth: contentWidth + leftPadding + rightPadding
|
||||
implicitHeight: contentHeight + topPadding + bottomPadding
|
||||
|
||||
contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
|
||||
contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
|
||||
}
|
||||
|
@ -34,3 +34,4 @@ ToolBar 3.0 ToolBar.qml
|
||||
ToolButton 3.0 ToolButton.qml
|
||||
ToolTip 3.0 ToolTip.qml
|
||||
RoundButton 3.0 RoundButton.qml
|
||||
Page 3.0 Page.qml
|
||||
|
Loading…
x
Reference in New Issue
Block a user