21 #include <tqlineedit.h> 22 #include "combobox.moc" 26 : TQComboBox(parent, name), 31 : TQComboBox(rw, parent, name), 37 if (( int)ro != ( int)mReadOnly) 41 lineEdit()->setReadOnly(ro); 45 void ComboBox::mousePressEvent(TQMouseEvent* e) 50 if (e->button() == TQt::LeftButton) 53 TQComboBox::mousePressEvent(e); 56 void ComboBox::mouseReleaseEvent(TQMouseEvent* e) 59 TQComboBox::mouseReleaseEvent(e); 62 void ComboBox::mouseMoveEvent(TQMouseEvent* e) 65 TQComboBox::mouseMoveEvent(e); 68 void ComboBox::keyPressEvent(TQKeyEvent* e) 70 if (!mReadOnly || e->key() == TQt::Key_Escape) 71 TQComboBox::keyPressEvent(e); 74 void ComboBox::keyReleaseEvent(TQKeyEvent* e) 77 TQComboBox::keyReleaseEvent(e); virtual void setReadOnly(bool readOnly) Sets whether the combo box is read-only for the user.
ComboBox(TQWidget *parent=0, const char *name=0) Constructor.
|