[PyKDE] more fixes needed for pyuic - 2.0pre2

Arno Paehler paehler at gol.com
Tue Sep 12 15:32:47 BST 2000


These, found in PyQt 2.0-pre2/pyuic, need fixing:

uic.cpp:868:     out << indent << parent << ".setColumnLayout(0,Qt.Orientation.Vertical)" << endl;
uic.cpp:872:     out << indent << objName << ".setAlignment(Qt.AlignmentFlags.AlignTop)" << endl;

should be

uic.cpp:868:     out << indent << parent << ".setColumnLayout(0,Qt.Vertical)" << endl;
uic.cpp:872:     out << indent << objName << ".setAlignment(Qt.AlignTop)" << endl;

occurs e.g in:

        self.ButtonGroup1 = QButtonGroup(self,'ButtonGroup1')
        self.ButtonGroup1.setColumnLayout(0,Qt.Orientation.Vertical)
        vbox.setAlignment(Qt.AlignmentFlags.AlignTop)

This needs fixing too:

	(what works: self.TextLabel1.setFont(QFont('adobe-helvetica', 18) )

        QFont TextLabel1_font(  TextLabel1->font() )
        TextLabel1_font.setFamily( "adobe-helvetica" )
        TextLabel1_font.setPointSize( 18 )
        TextLabel1->setFont( TextLabel1_font )

/*  
 *  Main event handler. Reimplemented to handle application
 *  font changes
 */
bool Form1::event( QEvent* ev )
{
    bool ret = QWidget::event( ev ); 
    if ( ev->type() == QEvent::ApplicationFontChange ) {
	QFont TextLabel1_font(  TextLabel1->font() )
	TextLabel1_font.setFamily( "adobe-helvetica" )
	TextLabel1_font.setPointSize( 18 )
	TextLabel1->setFont( TextLabel1_font )
    }
    return ret;
}




More information about the PyQt mailing list