update better

git-svn-id: http://svn.osgeo.org/qgis/trunk@3083 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rabla 2005-04-05 11:16:08 +00:00
parent 8b7f03f652
commit ef2ce6e4d6

View File

@ -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();