mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
update better
git-svn-id: http://svn.osgeo.org/qgis/trunk@3083 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
8b7f03f652
commit
ef2ce6e4d6
@ -55,7 +55,8 @@ QgsComposerLabel::QgsComposerLabel ( QgsComposition *composition, int id,
|
||||
mComposition = composition;
|
||||
mId = id;
|
||||
|
||||
mText = text;
|
||||
//mText = text;
|
||||
mText = "Quantum GIS";
|
||||
|
||||
// Font and pen
|
||||
mFont.setPointSize ( fontSize );
|
||||
@ -167,9 +168,13 @@ void QgsComposerLabel::changeFont ( void )
|
||||
{
|
||||
bool result;
|
||||
|
||||
QRect r = boundingRect();
|
||||
|
||||
mFont = QFontDialog::getFont(&result, mFont, this );
|
||||
|
||||
if ( result ) {
|
||||
QCanvasPolygonalItem::invalidate();
|
||||
QCanvasPolygonalItem::canvas()->setChanged(r);
|
||||
QCanvasPolygonalItem::update();
|
||||
QCanvasPolygonalItem::canvas()->update();
|
||||
}
|
||||
@ -223,7 +228,10 @@ void QgsComposerLabel::setOptions ( void )
|
||||
|
||||
void QgsComposerLabel::textChanged ( void )
|
||||
{
|
||||
QRect r = boundingRect();
|
||||
mText = mTextLineEdit->text();
|
||||
QCanvasPolygonalItem::invalidate();
|
||||
QCanvasPolygonalItem::canvas()->setChanged(r);
|
||||
QCanvasPolygonalItem::update();
|
||||
QCanvasPolygonalItem::canvas()->update();
|
||||
writeSettings();
|
||||
|
Loading…
x
Reference in New Issue
Block a user