fix build

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841013
This commit is contained in:
Marco Martin 2008-08-02 12:51:50 +00:00
parent e4cde1dab5
commit 886d5c7124

View File

@ -23,6 +23,7 @@
#include <QPainter>
#include <QGraphicsSceneResizeEvent>
#include <QWidget>
#include <QDir>
#include <QApplication>
//KDE
@ -71,10 +72,10 @@ void FramePrivate::syncBorders()
qreal left, top, right, bottom;
svg->getMargins(left, top, right, bottom);
kWarning()<<top;
if (!text.isNull()) {
QFontMetricsF fm(QApplication::font());
top += fm.height();
top += fm.height();kWarning()<<top;
}
q->setContentsMargins(left, top, right, bottom);