kde application framework template

Thomas Nagy tnagy at 4c.ucc.ie
Sat Jun 21 17:47:04 UTC 2003


There is a (small) problem in the configuration dialog of the kde
application framework template : the label "add something here" is cut
and so are the new widgets added by
myprojectPrefPageOne::myprojectPrefPageOne

Here is the solution (spent some time to figure out where the problem
came from)
http://developer.kde.org/documentation/library/3.0-api/classref/kdeui/KDialogBase.html#ref15

In the generated file pref.cpp :    
replace :
     QFrame *frame;
     frame = addPage(i18n("First Page"), i18n("Page One Options"));
     m_pageOne = new linpackerPrefPageOne(frame);
by :
     QFrame *frame;
     frame = addPage(i18n("First Page"), i18n("Page One Options"));
     QVBoxLayout *topLayout = new QVBoxLayout( frame, 0, 1 );
     m_pageOne = new linpackerPrefPageOne(frame);
     topLayout->addWidget(m_pageOne);

(two times)
you'll see that the label will appear correcly after the change (new
QLabel(i18n("Add something here"), this); )


--
TN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20030621/fe91e5b4/attachment.sig>


More information about the KDevelop-devel mailing list