You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdenetwork/kppp/newwidget.cpp

18 lines
505 B

/////////////////////////////////////////////////////////////////////////////
//
// functions generating tqlayout-aware widgets
//
/////////////////////////////////////////////////////////////////////////////
#include "newwidget.h"
TQLineEdit *newLineEdit(int visiblewidth, TQWidget *tqparent) {
TQLineEdit *l = new TQLineEdit(tqparent);
if(visiblewidth == 0)
l->setMinimumWidth(l->tqsizeHint().width());
else
l->setFixedWidth(l->fontMetrics().width('H') * visiblewidth);
return l;
}