Review Request 114022: Set input box size based on font size
Yichao Yu
yyc1992 at gmail.com
Sat Dec 28 17:24:59 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/114022/
-----------------------------------------------------------
(Updated Dec. 28, 2013, 5:24 p.m.)
Status
------
This change has been marked as submitted.
Review request for Choqok and Mehrdad Momeny.
Bugs: 317690
http://bugs.kde.org/show_bug.cgi?id=317690
Repository: choqok
Description
-------
Choqok's TextEdit uses the minimum length of the scrollbar as it's height (through QAbstractScrollArea::minimumSizeHint) and it also sets a hard limit on the height of the editor. These cause two problem:
1. The height of the TextEdit is theme dependent and for a theme that allows short scrollbar (which is perfectly legal), the text box can be too small.
2. When the use specifies a larger font (e.g. 32-72) the TextEditor will not expand along with it leaving only one (or less) visible lines.
Diffs
-----
libchoqok/ui/choqoktextedit.h 61e7e24
libchoqok/ui/choqoktextedit.cpp bc92384
libchoqok/ui/composerwidget.cpp 16f5538
Diff: https://git.reviewboard.kde.org/r/114022/diff/
Testing
-------
Compiles. TextEdit (inside ComposeWidget) has a height of ~1 line when empty and ~3 lines when not. Tested for
1. When the theme allows short scrollbar (by returning small values in pixelMetric(QStyle::PM_ScrollBarSliderMin) and sizeFromContents(QStyle::CT_ScrollBar))
2. When selecting a big font (32pt)
Thanks,
Yichao Yu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/choqok-devel/attachments/20131228/1b0f3632/attachment.html>
More information about the Choqok-devel
mailing list