[mythtv] Description field height in UI
Ben Bucksch
linux.news at bucksch.org
Fri Apr 2 11:11:33 EST 2004
With the grabber I use, the program descriptions are luckily quite long.
Unfortunately, MythTV doesn't seem to restrict the size of the label(s)
in the UI which display(s) the description. As a result, many of the
dialogs about programs, for recording etc., are broken: the main widgets
are off the window/screen.
I attached a hackish patch which works for me (800x600), restricting the
desc label to 75 pixels, but it's not the right fix. I think Qt offers
ways to specify how the layout should adapt to window sizes and which
widgets should get the superfluous space - it should be quite trivial
for somebody with more Qt/MythTV knowledge to set the right flags so
that the description field uses as much space as possible, but only so
much that all other widgets are still visible.
Greetings,
Ben
-------------- next part --------------
Index: libs/libmythtv/programinfo.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/programinfo.cpp,v
retrieving revision 1.106
diff -u -r1.106 programinfo.cpp
--- libs/libmythtv/programinfo.cpp 5 Feb 2004 22:50:40 -0000 1.106
+++ libs/libmythtv/programinfo.cpp 2 Apr 2004 15:38:46 -0000
@@ -1905,6 +1905,8 @@
descriptionfield->setMinimumWidth(descwidth);
descriptionfield->setMaximumWidth(descwidth);
+ descriptionfield->setMaximumHeight(screenheight - 550);
+
grid->addMultiCellWidget(titlefield, row, 0, 0, 1, Qt::AlignLeft);
row++;
grid->addWidget(airDateLabel, row, 0, Qt::AlignLeft | Qt::AlignTop);
More information about the mythtv-dev
mailing list