Skip to content

Commit

Permalink
plasmoid: Use QQ2 combo box (Plasma components 3 version clips end of…
Browse files Browse the repository at this point in the history
… text)
  • Loading branch information
Martchus committed Nov 30, 2020
1 parent 9df2a17 commit 81e9d53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plasmoid/package/contents/ui/FullRepresentation.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import QtQuick 2.8
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.15 as QQ2 // for ComboBox (PlasmaComponents3 version clips the end of the text)
import QtQml 2.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
Expand Down Expand Up @@ -432,12 +433,14 @@ ColumnLayout {
onActivated: webUIButton.clicked()
}
}
PlasmaComponents3.ComboBox {
QQ2.ComboBox {
id: connectionConfigsMenu
model: plasmoid.nativeInterface.connectionConfigNames
visible: plasmoid.nativeInterface.connectionConfigNames.length > 1
currentIndex: plasmoid.nativeInterface.currentConnectionConfigIndex
onCurrentIndexChanged: plasmoid.nativeInterface.currentConnectionConfigIndex = currentIndex
Layout.fillWidth: true
Layout.maximumWidth: implicitWidth
Shortcut {
sequence: "Ctrl+Shift+C"
onActivated: connectionConfigsMenu.popup()
Expand Down

0 comments on commit 81e9d53

Please sign in to comment.