/usr/include/qxrunner/proxymodelcommon.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 | /*!
* \file proxymodelcommon.h
*
* \brief Declares class ProxyModelCommon.
*/
#ifndef PROXYMODELCOMMON_H
#define PROXYMODELCOMMON_H
#include <QBitArray>
namespace QxRunner {
/*!
* \brief The ProxyModelCommon class defines a set of common methods
* for sorting filter proxy models.
*
* This class should be seen as a 'static decorator' for the proxy
* model classes. It is not intended to be used directly, but must
* be subclassed.
*
* \sa \ref views
*/
class ProxyModelCommon
{
public: // Operations
/*!
* Constructs a proxy model common. The active flag is set to true.
*/
ProxyModelCommon();
/*!
* Destroys this proxy model common.
*/
virtual ~ProxyModelCommon();
/*!
* Returns the active flag.
*/
bool isActive() const;
/*!
* Sets the \a active flag.
*/
void setActive(bool active);
/*!
* Returns the array with the flags for columns.
*/
QBitArray enabledColumns() const;
/*!
* Sets the enabled flags for columns. True at the corresponding
* column position in \a enabledColumns enables, false disables
* that column.
*/
void setEnabledColumns(const QBitArray& enabledColumns);
/*!
* Returns the enabled flag for \a column.
*/
bool isColumnEnabled(int column) const;
private: // Operations
// Copy and assignment not supported.
ProxyModelCommon(const ProxyModelCommon&);
ProxyModelCommon& operator=(const ProxyModelCommon&);
private: // Attributes
bool m_active;
QBitArray m_enabledColumns;
};
} // namespace
#endif // PROXYMODELCOMMON_H
|