|
|
/*************************************************************************** extcombobox.h - description ------------------- begin : Mon Feb 28 2000 copyright : (C) 2000 by jade email : donoghue@chariot.net.au ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef EXTCOMBOBOX_H #define EXTCOMBOBOX_H #include <qwidget.h> #include <qcombobox.h> /**combo box with a few extra signals attached - in particual returnPressed *@author jade */ class ExtComboBox : public QComboBox { Q_OBJECT int lastchar; signals: void returnPressed(); public slots: void saveText(); // save the curr text to the listbox protected: virtual void keyPressEvent ( QKeyEvent * e ); // virtual void mousePressEvent ( QMouseEvent *e ); public: ExtComboBox(QWidget *parent=0, const char *name=0); ExtComboBox(bool rw,QWidget *parent=0, const char *name=0); virtual ~ExtComboBox(); QStrList history(); // void setHistory(const QString &str); }; #endif
Generated by: jade@lost on Sat Jun 10 14:35:26 2000, using kdoc 2.0a22. |