~ubuntu-branches/ubuntu/maverick/qgis/maverick

« back to all changes in this revision

Viewing changes to src/app/legend/qgslegendpropertygroup.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2005 by Tim Sutton   *
 
3
 *   aps02ts@macbuntu   *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
 
20
#include "qgsapplication.h"
 
21
#include "qgisapp.h"
 
22
#include "qgslegendpropertygroup.h"
 
23
#include <QCoreApplication>
 
24
#include <QIcon>
 
25
 
 
26
QgsLegendPropertyGroup::QgsLegendPropertyGroup( QTreeWidgetItem* theLegendItem, QString theString )
 
27
    : QgsLegendItem( theLegendItem, theString )
 
28
{
 
29
  mType = LEGEND_PROPERTY_GROUP;
 
30
  QIcon myIcon = QgisApp::getThemeIcon( "/mIconProperties.png" );
 
31
  setText( 0, theString );
 
32
  setIcon( 0, myIcon );
 
33
}
 
34
 
 
35
 
 
36
QgsLegendPropertyGroup::~QgsLegendPropertyGroup()
 
37
{
 
38
 
 
39
}
 
40
 
 
41
QgsLegendItem::DRAG_ACTION QgsLegendPropertyGroup::accept( LEGEND_ITEM_TYPE type )
 
42
{
 
43
  return NO_ACTION;
 
44
}
 
45
 
 
46
QgsLegendItem::DRAG_ACTION QgsLegendPropertyGroup::accept( const QgsLegendItem* li ) const
 
47
{
 
48
  return NO_ACTION;
 
49
}
 
50