Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/Menu.qml
Show All 17 Lines | |||||
18 | * ensure the GNU General Public License version 2.0 requirements will be | 18 | * ensure the GNU General Public License version 2.0 requirements will be | ||
19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | 19 | * met: http://www.gnu.org/licenses/gpl-2.0.html. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | 22 | | |||
23 | import QtQuick 2.6 | 23 | import QtQuick 2.6 | ||
24 | import QtQuick.Layouts 1.2 | 24 | import QtQuick.Layouts 1.2 | ||
25 | import QtGraphicalEffects 1.0 | 25 | import QtGraphicalEffects 1.0 | ||
26 | import QtQuick.Controls 2.0 | 26 | import QtQuick.Controls @QQC2_VERSION@ | ||
27 | import QtQuick.Templates 2.0 as T | 27 | import QtQuick.Templates @QQC2_VERSION@ as T | ||
28 | import org.kde.kirigami 2.2 as Kirigami | 28 | import org.kde.kirigami 2.2 as Kirigami | ||
29 | 29 | | |||
30 | T.Menu { | 30 | T.Menu { | ||
31 | id: control | 31 | id: control | ||
32 | 32 | | |||
33 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | 33 | implicitWidth: Math.max(background ? background.implicitWidth : 0, | ||
34 | contentItem ? contentItem.implicitWidth + leftPadding + rightPadding : 0) | 34 | contentItem ? contentItem.implicitWidth + leftPadding + rightPadding : 0) | ||
35 | implicitHeight: Math.max(background ? background.implicitHeight : 0, | 35 | implicitHeight: Math.max(background ? background.implicitHeight : 0, | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |