<commit_before>import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import QtQml.Models 2.1
import QuickIOS 0.1
import "./priv"
import "./def"

Rectangle {
  id: navigationBar

  // The tint color to apply to the navigation bar background. It is equivalent to color. It apply the naming convenient of UIKit
  property string tintColor : Constant.tintColor

  property alias barTintColor : navigationBar.color

  // The view objects within NavigationView
  property ListModel views : ListModel{}

  // The top most navigation item in navigationItems
  property NavigationItem navigationItem : dummyNavigationItem

  property ListModel navigationItems : ListModel{}

  property NavigationBarTitleAttributes titleAttributes : NavigationBarTitleAttributes {}

  signal backClicked()

  // The current title
  property string currentTitle : stack.topBarItem.title

  // The current list of left buttons
  property var currentLeftButtonItems : navigationItem.leftBarButtonItems

  // The current list of right buttons
  property var currentRightButtonItems : navigationItem.rightBarButtonItems

  width: parent.width
  height: QIDevice.screenFillStatusBar ? 44 + 20 : 44

  color : "#f8f8f8"

  anchors.top: parent.top
  anchors.topMargin: 0
  anchors.right: parent.right
  anchors.rightMargin: 0
  anchors.left: parent.left
  anchors.leftMargin: 0

  NavigationItem {
    id : dummyNavigationItem
  }

  NavigationBarItem {
      id : dummyNavigationBarItem
  }

  ObjectModel {
      id : dummyItemModel;
  }

  StackView {
      id : stack
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.bottom: parent.bottom
      height : 44
      delegate: NavigationBarTransition {}

      property NavigationBarItem topBarItem : dummyNavigationBarItem

      onDepthChanged: {
          var index = depth -1;
          if (index < 0) {
              currentTitle = "";
              topBarItem = dummyNavigationBarItem;
          } else {
              var barItem = get(index);
              topBarItem = barItem;
          }
      }
  }

  Item {<commit_msg>NavigationBar.qml : Block all the mouse event and don't propagate to upper components<commit_after>import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import QtQml.Models 2.1
import QuickIOS 0.1
import "./priv"
import "./def"

Rectangle {
  id: navigationBar

  // The tint color to apply to the navigation bar background. It is equivalent to color. It apply the naming convenient of UIKit
  property string tintColor : Constant.tintColor

  property alias barTintColor : navigationBar.color

  // The view objects within NavigationView
  property ListModel views : ListModel{}

  // The top most navigation item in navigationItems
  property NavigationItem navigationItem : dummyNavigationItem

  property ListModel navigationItems : ListModel{}

  property NavigationBarTitleAttributes titleAttributes : NavigationBarTitleAttributes {}

  signal backClicked()

  // The current title
  property string currentTitle : stack.topBarItem.title

  // The current list of left buttons
  property var currentLeftButtonItems : navigationItem.leftBarButtonItems

  // The current list of right buttons
  property var currentRightButtonItems : navigationItem.rightBarButtonItems

  width: parent.width
  height: QIDevice.screenFillStatusBar ? 44 + 20 : 44

  color : "#f8f8f8"

  anchors.top: parent.top
  anchors.topMargin: 0
  anchors.right: parent.right
  anchors.rightMargin: 0
  anchors.left: parent.left
  anchors.leftMargin: 0

  NavigationItem {
    id : dummyNavigationItem
  }

  NavigationBarItem {
      id : dummyNavigationBarItem
  }

  ObjectModel {
      id : dummyItemModel;
  }

  MouseArea {
      anchors.fill: parent // block all the mouse event
  }

  StackView {
      id : stack
      anchors.left: parent.left
      anchors.right: parent.right
      anchors.bottom: parent.bottom
      height : 44
      delegate: NavigationBarTransition {}

      property NavigationBarItem topBarItem : dummyNavigationBarItem

      onDepthChanged: {
          var index = depth -1;
          if (index < 0) {
              currentTitle = "";
              topBarItem = dummyNavigationBarItem;
          } else {
              var barItem = get(index);
              topBarItem = barItem;
          }
      }
  }

  Item {
{'fraction_non_alphanumeric': 0.06527177621105298, 'fraction_numerical': 0.012735956333863999, 'mean_word_length': 2.9657348963029757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4771806', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1183, 'n_words': 373}