/usr/include/qgis/qgsdetaileditemdata.h is in libqgis-dev 2.8.6+dfsg-1build1.
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 | /***************************************************************************
qgsdetaileditemdata.h - A data represenation for a rich QItemData subclass
-------------------
begin : Sat May 17 2008
copyright : (C) 2008 Tim Sutton
email : tim@linfiniti.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSDETAILEDITEMDATA_H
#define QGSDETAILEDITEMDATA_H
#include <QMetaType>
#include <QString>
#include <QPixmap>
/** \ingroup gui
* This class is the data only representation of a
* QgsDetailedItemWidget, designed to be used in custom views.
*/
class GUI_EXPORT QgsDetailedItemData
{
public:
QgsDetailedItemData();
~QgsDetailedItemData();
void setTitle( const QString theTitle );
void setDetail( const QString theDetail );
void setCategory( const QString theCategory );
void setIcon( const QPixmap theIcon );
void setCheckable( const bool theFlag );
void setChecked( const bool theFlag );
void setEnabled( bool theFlag );
/** This is a hint to the delegate to render using
* a widget rather than manually painting every
* part of the list item.
* @note the delegate may completely ignore this
* depending on the delegate implementation.
*/
void setRenderAsWidget( bool theFlag );
QString title() const;
QString detail() const;
QString category() const;
QPixmap icon() const;
bool isCheckable() const;
bool isChecked() const;
bool isEnabled() const;
bool isRenderedAsWidget() const;
private:
QString mTitle;
QString mDetail;
QString mCategory;
QString mLibraryName;
QPixmap mPixmap;
bool mCheckableFlag;
bool mCheckedFlag;
bool mEnabledFlag;
bool mRenderAsWidgetFlag;
};
// Make QVariant aware of this data type (see qtdocs star
// rating delegate example for more details)
Q_DECLARE_METATYPE( QgsDetailedItemData )
#endif //QGSDETAILEDITEMDATA_H
|