1- import  "./Constants" 
1+ import  "BaseComponents" 
2+ import  "Constants" 
23import  Qt.labs.qmlmodels  1.0 
34import  QtQuick  2.15 
45import  QtQuick.Controls  2.15 
@@ -48,13 +49,43 @@ Item {
4849            anchors .rightMargin :  Constants .logPanel .pauseButtonRightMargin 
4950            z:  Constants .logPanel .zAboveTable 
5051
51-             RoundButton {
52-                 id:  baselinePauseButton
52+             SwiftButton {
53+                 width:  Constants .logPanel .pauseButtonWidth 
54+                 height:  Constants .logPanel .pauseButtonWidth 
55+                 padding:  Constants .logPanel .pauseButtonPadding 
56+                 icon .width :  Constants .logPanel .pauseButtonWidth  /  3 
57+                 icon .height :  Constants .logPanel .pauseButtonWidth  /  3 
58+                 icon .source :  Constants .icons .xPath 
59+                 icon .color :  Constants .materialGrey 
60+                 anchors .right :  parent .right 
61+                 anchors .top :  parent .top 
62+                 ToolTip .visible :  hovered
63+                 ToolTip .text :  Constants .logPanel .clearButtonTooltip 
64+                 onClicked:  {
65+                     tableView .model .clear ();
66+                     var  new_row =  {
67+                     };
68+                     new_row[Constants .logPanel .timestampHeader ] =  " " 
69+                     new_row[Constants .logPanel .levelHeader ] =  " " 
70+                     new_row[Constants .logPanel .msgHeader ] =  " " 
71+                     logEntries =  [new_row];
72+                     tableView .model .setRow (0 , new_row);
73+                     tableView .forceLayout ();
74+                 }
75+             }
5376
77+         }
78+ 
79+         Item {
80+             anchors .fill :  parent
81+             anchors .topMargin :  Constants .genericTable .cellHeight  *  2 
82+             anchors .rightMargin :  Constants .logPanel .pauseButtonRightMargin 
83+             z:  Constants .logPanel .zAboveTable 
84+ 
85+             SwiftButton {
5486                visible:  ! consolePaused
5587                width:  Constants .logPanel .pauseButtonWidth 
5688                height:  Constants .logPanel .pauseButtonWidth 
57-                 radius:  Constants .logPanel .pauseButtonWidth  /  3 
5889                padding:  Constants .logPanel .pauseButtonPadding 
5990                icon .width :  Constants .logPanel .pauseButtonWidth  /  3 
6091                icon .height :  Constants .logPanel .pauseButtonWidth  /  3 
@@ -69,13 +100,10 @@ Item {
69100                }
70101            }
71102
72-             RoundButton {
73-                 id:  baselinePlayButton
74- 
103+             SwiftButton {
75104                visible:  consolePaused
76105                width:  Constants .logPanel .pauseButtonWidth 
77106                height:  Constants .logPanel .pauseButtonWidth 
78-                 radius:  Constants .logPanel .pauseButtonWidth  /  3 
79107                padding:  Constants .logPanel .pauseButtonPadding 
80108                icon .width :  Constants .logPanel .pauseButtonWidth  /  3 
81109                icon .height :  Constants .logPanel .pauseButtonWidth  /  3 
0 commit comments