@ -19,40 +19,29 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
import QtQuick 2.0
import QtQuick 2.0
import QtQuick . Controls 1.0 as Controls
import QtQuick . Controls 2.5
import QtQuick . Layouts 1.1 as Layouts
import org . kde . kirigami 2.5 as Kirigami
import org . kde . plasma . plasmoid 2.0
import org . kde . plasma . plasmoid 2.0
import org . kde . plasma . core 2.0 as PlasmaCore
import org . kde . plasma . core 2.0 as PlasmaCore
Layouts . ColumnLayout {
Kirigami . FormLayout {
id: configGeneral
anchors.left: parent . left
anchors.right: parent . right
property alias cfg_compactView: compactViewRadioButton . checked
property alias cfg_compactView: compactViewRadioButton . checked
property bool disableSetting: plasmoid . formFactor === PlasmaCore . Types . Vertical
property bool disableSetting: plasmoid . formFactor === PlasmaCore . Types . Vertical
Controls . ExclusiveGroup {
RadioButton {
id: viewOptionGroup
}
Controls . RadioButton {
id: compactViewRadioButton
id: compactViewRadioButton
enabled: ! disableSetting
enabled: ! disableSetting
text: i18n ( "Use single button for application menu" )
text: i18n ( "Use single button for application menu" )
exclusiveGroup: viewOptionGroup
}
}
Controls . RadioButton {
RadioButton {
id: fullViewRadioButton
id: fullViewRadioButton
/ / t h i s c h e c k e d b i n d i n g i s j u s t f o r t h e i n i t i a l l o a d i n c a s e
/ / c o m p a c t V i e w C h e c k B o x i s n o t c h e c k e d . T h e n e x c l u s i v e g r o u p m a n a g e s i t
enabled: ! disableSetting
enabled: ! disableSetting
checked: ! compactViewRadioButton . checked
checked: ! compactViewRadioButton . checked
text: i18n ( "Show full application menu" )
text: i18n ( "Show full application menu" )
exclusiveGroup: viewOptionGroup
}
Item {
Layouts.Layout.fillHeight: true
}
}
}
}