@ -27,25 +27,18 @@ Item {
@@ -27,25 +27,18 @@ Item {
property bool loaded: false
Component {
id: filtersDialogComponent
QGCViewDialog {
QGCFlickable {
anchors.fill: parent
id: filtersPopupDialog
contentHeight: categoryColumn . height
clip: true
QGCPopupDialog {
title: qsTr ( "Turn on logging categories" )
buttons: StandardButton . Close
ColumnLayout {
anchors.fill: parent
RowLayout {
spacing: ScreenTools . defaultFontPixelHeight / 2
Layout.alignment: Qt . AlignVCenter
Layout.fillHeight: true
Layout.fillWidth: true
QGCLabel {
text: qsTr ( "Search:" )
}
QGCLabel { text: qsTr ( "Search:" ) }
QGCTextField {
id: searchText
@ -60,17 +53,10 @@ Item {
@@ -60,17 +53,10 @@ Item {
}
}
Row {
spacing: ScreenTools . defaultFontPixelHeight / 2
QGCButton {
text: qsTr ( "Clear All" )
onClicked: categoryRepeater . setAllLogs ( false )
}
}
Column {
id: categoryColumn
spacing: ScreenTools . defaultFontPixelHeight / 2
Repeater {
id: categoryRepeater
@ -100,8 +86,6 @@ Item {
@@ -100,8 +86,6 @@ Item {
}
}
}
}
}
Item {
id: panel
@ -225,7 +209,7 @@ Item {
@@ -225,7 +209,7 @@ Item {
anchors.bottom: parent . bottom
anchors.right: parent . right
text: qsTr ( "Set Logging" )
onClicked: mainWindow . showComponentDialog ( filtersDialogComponent , qsTr ( "Turn on logging categories" ) , mainWindow . showDialogDefaultWidth , StandardButton . Close )
onClicked: mainWindow . showPopupDialogFromComponent ( filtersPopupDialog )
}
}
}