~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/legend/qgslegendvectorsymbologyitem.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
 
                         qgslegendvectorsymbologyitem.cpp  -  description
3
 
                             -------------------
4
 
    begin                : Juli 2005
5
 
    copyright            : (C) 2005 by Marco Hugentobler
6
 
    email                : marco.hugentobler@autoform.ch
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
#include "qgslegendvectorsymbologyitem.h"
19
 
 
20
 
QgsLegendVectorSymbologyItem::QgsLegendVectorSymbologyItem(QTreeWidgetItem * theItem, QString col1, int pixmapWidth, int pixmapHeight)
21
 
: QgsLegendSymbologyItem(theItem, col1, pixmapWidth, pixmapHeight)
22
 
{
23
 
    mType = LEGEND_VECTOR_SYMBOL_ITEM;
24
 
}
25
 
 
26
 
void QgsLegendVectorSymbologyItem::addSymbol(QgsSymbol* s)
27
 
{
28
 
    mSymbols.push_back(s);
29
 
}
30
 
 
31
 
void QgsLegendVectorSymbologyItem::handleDoubleClickEvent()
32
 
{
33
 
#ifdef QGISDEBUG
34
 
    qWarning("in QgsLegendVectorSymbologyItem::handleDoubleClickEvent");
35
 
#endif
36
 
    //todo: show the dialog
37
 
    //QgsSiSyDialog d(0);
38
 
    //std::list<QgsSymbol*>::iterator iter = mSymbols.begin();
39
 
    //d.set(*iter);
40
 
    //d.exec();
41
 
}