Hi!

Ralph Glasstetter wrote:

> I already complained yesterday, that with 50% (and 25%) video screen (and 
> appropriate smaller window size) the timestamp&framenumber line will no more 
> fit to the window (also on my 1680x1050 display) and we should think about a 
> much smaller font for the additional output timestamp&framenumber or move it 
> to a second line! 
> 
> OK, this has nothin to do with the "device independence" you mentioned, but 
> maybe the solution is the same... ;-)

I suppose it's a different problem - and needs a different solution.

> Changing just the font size in dvbcutbase.ui to 14 or 12 did not help
> (and looked awfull, BTW)... unfortunately this cannot be configured
> at runtime but only in the designer prior build... or am I mistaken?

It seems that Qt Designer only allows you to set the device independent
size. You can set the font's size in pixels at runtime, however (see the
patch below).

That doesn't solve the problem at 50% or 25%, though. Maybe we should
add two more labels below the current ones (or use multi-line text if
QLabel supports it). But that will blow up the window in the vertical
direction again.

-- 
Michael "Tired" Riepe <[EMAIL PROTECTED]>
X-Tired: Each morning I get up I die a little
Index: src/dvbcut.cpp
===================================================================
--- src/dvbcut.cpp      (revision 82)
+++ src/dvbcut.cpp      (working copy)
@@ -150,6 +150,12 @@
 
   // set caption
   setCaption(QString(VERSION_STRING));
+
+  // change label sizes
+  QFont font = pictimelabel->font();
+  font.setPixelSize(22);
+  pictimelabel->setFont(font);
+  picnrlabel->setFont(font);
 }
 
 // **************************************************************************
Index: src/dvbcutbase.ui
===================================================================
--- src/dvbcutbase.ui   (revision 82)
+++ src/dvbcutbase.ui   (working copy)
@@ -132,7 +132,6 @@
                                 <property name="font">
                                     <font>
                                         <family>Monospace</family>
-                                        <pointsize>16</pointsize>
                                     </font>
                                 </property>
                                 <property name="text">
@@ -175,7 +174,6 @@
                                 <property name="font">
                                     <font>
                                         <family>Monospace</family>
-                                        <pointsize>16</pointsize>
                                     </font>
                                 </property>
                                 <property name="text">
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to