This file is indexed.

/usr/include/qxrunner/runnerviewcontroller.h is in libqxrunner-dev 0.9.2-0ubuntu4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*!
 * \file  runnerviewcontroller.h
 *
 * \brief Declares class RunnerViewController.
 */

#ifndef RUNNERVIEWCONTROLLER_H
#define RUNNERVIEWCONTROLLER_H

#include "viewcontrollercommon.h"

#include <QObject>

namespace QxRunner {

class RunnerModel;
class RunnerProxyModel;

/*!
 * \brief The RunnerViewController class provides functionality for
 *        the runner view.
 *
 * This helper class is introduced to avoid bloating the main window
 * class with code specific for views representing data from RunnerModel.
 * 
 * Most methods of the class facilitate user interaction with the view.
 * Sorting of data by clicking on a column header isn't supported.
 *
 * \sa \ref views and \ref selected_item
 */

class RunnerViewController : public QObject,
                             public ViewControllerCommon
{
	Q_OBJECT

public: // Operations

	/*!
	 * Constructs a runner view controller with the given \a parent
	 * and \a view.
	 */
    RunnerViewController(QObject* parent, QTreeView* view);

	/*!
	 * Destroys this runner view controller.
	 */
    ~RunnerViewController();

	/*!
	 * Returns the model that contains the data that is available
	 * through the proxy model.
	 */
	RunnerModel* runnerModel() const;

	/*!
	 * Returns the proxy model that the view is presenting.
	 */
	RunnerProxyModel* runnerProxyModel() const;

public slots:

	/*!
	 * Selects all items in the view.
	 */
	void selectAll() const;

	/*!
	 * Unselects all items in the view.
	 */
	void unselectAll() const;

	/*!
	 * Expands all branches in the view.
	 */
	void expandAll() const;

	/*!
	 * Collapses all branches in the view.
	 */
	void collapseAll() const;

private: // Operations

	/*!
	 * Helper method to recursively expand all branches. Starts with
	 * the item referred to by \a index.
	 */
	void expand(const QModelIndex& index) const;

	/*!
	 * Helper method to recursively collapse all branches. Starts with
	 * the item referred to by \a index.
	 */
	void collapse(const QModelIndex& index) const;

	/*!
	 * If \a select is true then all items in the view selected,
	 * otherwise unselected.
	 */
	void selectAllItems(bool select) const;

	/*!
	 * Handles key press events for the view. A space mimicks a mouse
	 * click. +/- expand/collapse branches.
	 */
	bool eventFilter(QObject* obj, QEvent* event);

	// Copy and assignment not supported.
	RunnerViewController(const RunnerViewController&);
	RunnerViewController& operator=(const RunnerViewController&);
};

} // namespace

#endif // RUNNERVIEWCONTROLLER_H