Skip to content

Commit

Permalink
Merged r6738 from 0.8 to trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6739 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Mar 1, 2007
1 parent d1d5598 commit d160508
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/plugins/copyright_label/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ email : tim@linfiniti.com
#include <Q3SimpleRichText>
#include <QPainter>
#include <QMenu>
#include <QDate>

//non qt includes
#include <iostream>
Expand Down Expand Up @@ -103,10 +104,15 @@ void QgsCopyrightLabelPlugin::projectRead()
std::cout << "+++++++++ Copyright plugin - project read slot called...." << std::endl;
#endif //default text to start with - try to fetch it from qgsproject

QDate now;
QString defString;

mQFont.setFamily(QgsProject::instance()->readEntry("CopyrightLabel","/FontName","Arial"));
mQFont.setPointSize(QgsProject::instance()->readNumEntry("CopyrightLabel","/FontSize",14));
mLabelQString = QgsProject::instance()->readEntry("CopyrightLabel","/Label","&copy; QGIS 2006");
now = QDate::currentDate();
defString = "&copy QGIS " + now.toString("yyyy");

mQFont.setFamily(QgsProject::instance()->readEntry("CopyrightLabel","/FontName","Sans Serif"));
mQFont.setPointSize(QgsProject::instance()->readNumEntry("CopyrightLabel","/FontSize",9));
mLabelQString = QgsProject::instance()->readEntry("CopyrightLabel","/Label", defString);
mPlacementIndex = QgsProject::instance()->readNumEntry("CopyrightLabel","/Placement",3);
mEnable = QgsProject::instance()->readBoolEntry("CopyrightLabel","/Enabled",true);
// todo - read & store state of font color
Expand Down

0 comments on commit d160508

Please sign in to comment.