This file is indexed.

/usr/include/qxrunner/viewcontrollercommon.h is in libqxrunner-dev 0.9.2-0ubuntu3.

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
/*!
 * \file  viewcontrollercommon.h
 *
 * \brief Declares class ViewControllerCommon.
 */

#ifndef VIEWCONTROLLERCOMMON_H
#define VIEWCONTROLLERCOMMON_H

#include <QTreeView>
#include <QHeaderView>
#include <QAbstractItemModel>
#include <QSortFilterProxyModel>

namespace QxRunner {

/*!
 * \brief The ViewControllerCommon class defines a set of common
 *        methods for view controllers.
 *
 * This class should be seen as a 'static decorator' for the view
 * controller classes. It is not intended to be used directly, but
 * must be subclassed.
 *
 * \sa \ref views
 */

class ViewControllerCommon
{
public: // Operations

	/*!
	 * Constructs a view controller common for the given \a view. Sets
	 * view default properties.
	 */
	ViewControllerCommon(QTreeView* view);

	/*!
	 * Destroys this view controller common.
	 */
	virtual ~ViewControllerCommon();

	/*!
	 * Returns the index of column 0 of the highlighted row. The index
	 * isn't necessarily the current view index. If no row is highlighted
	 * the returned index is invalid.
	 */
	QModelIndex highlightedRow() const;
	
	/*!
	 * Highlights the row of the \a index independent of the selection
	 * mode and ensures that it is visible. The given index becomes the
	 * new current index.
	 */
	void setHighlightedRow(const QModelIndex& index) const;

protected: // Operations

	/*!
	 * Returns the view widget.
	 */
	QTreeView* view() const;

	/*!
	 * Returns the header of the view widget.
	 */
	QHeaderView* header() const;

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

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

private: // Operations

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

private: // Attributes

	QTreeView* m_view;
};

} // namespace

#endif // VIEWCONTROLLERCOMMON_H