summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets/qcommandlinkbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/qcommandlinkbutton.cpp')
-rw-r--r--src/gui/widgets/qcommandlinkbutton.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qcommandlinkbutton.cpp b/src/gui/widgets/qcommandlinkbutton.cpp
index 6919bc0..e8fe299 100644
--- a/src/gui/widgets/qcommandlinkbutton.cpp
+++ b/src/gui/widgets/qcommandlinkbutton.cpp
@@ -46,6 +46,7 @@
#include "qtextlayout.h"
#include "qcolor.h"
#include "qfont.h"
+#include <qmath.h>
#include "private/qpushbutton_p.h"
@@ -242,7 +243,7 @@ int QCommandLinkButtonPrivate::descriptionHeight(int widgetWidth) const
}
layout.endLayout();
}
- return qRound(descriptionheight);
+ return qCeil(descriptionheight);
}
/*!