From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/widgets/qcomboview.h | 84 ++++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'lib/widgets/qcomboview.h') diff --git a/lib/widgets/qcomboview.h b/lib/widgets/qcomboview.h index 8f618f50..b918df1f 100644 --- a/lib/widgets/qcomboview.h +++ b/lib/widgets/qcomboview.h @@ -17,7 +17,7 @@ #define QCOMBOVIEW_H #ifndef QT_H -#include "qwidget.h" +#include "tqwidget.h" #endif // QT_H #ifndef QT_NO_COMBOBOX @@ -36,9 +36,9 @@ class QListViewItem; class QComboViewData; /** -QComboView - a combo with a QListView as a popup widget. +QComboView - a combo with a TQListView as a popup widget. This means that you can have a treeview inside of a combo. Otherwise it works -in the same way as QComboBox and have similar API. +in the same way as TQComboBox and have similar API. */ class Q_EXPORT QComboView : public QWidget { @@ -46,8 +46,8 @@ class Q_EXPORT QComboView : public QWidget Q_ENUMS( Policy ) Q_PROPERTY( bool editable READ editable WRITE setEditable ) // Q_PROPERTY( int count READ count ) - Q_PROPERTY( QString currentText READ currentText WRITE setCurrentText DESIGNABLE false ) -// Q_PROPERTY( QListView *currentItem READ currentItem WRITE setCurrentItem ) + Q_PROPERTY( TQString currentText READ currentText WRITE setCurrentText DESIGNABLE false ) +// Q_PROPERTY( TQListView *currentItem READ currentItem WRITE setCurrentItem ) Q_PROPERTY( bool autoResize READ autoResize WRITE setAutoResize DESIGNABLE false ) Q_PROPERTY( int sizeLimit READ sizeLimit WRITE setSizeLimit ) // Q_PROPERTY( int maxCount READ maxCount WRITE setMaxCount ) @@ -57,22 +57,22 @@ class Q_EXPORT QComboView : public QWidget Q_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) public: -// QComboView( QWidget* parent=0, const char* name=0 ); - QComboView( bool rw, QWidget* parent=0, const char* name=0 ); +// QComboView( TQWidget* parent=0, const char* name=0 ); + QComboView( bool rw, TQWidget* parent=0, const char* name=0 ); ~QComboView(); int childCount() const; - QListViewItem *currentItem() const; - virtual void setCurrentItem( QListViewItem * ); - virtual void setCurrentActiveItem( QListViewItem * ); + TQListViewItem *currentItem() const; + virtual void setCurrentItem( TQListViewItem * ); + virtual void setCurrentActiveItem( TQListViewItem * ); bool autoResize() const; virtual void setAutoResize( bool ); QSize sizeHint() const; - void setPalette( const QPalette & ); - void setFont( const QFont & ); + void setPalette( const TQPalette & ); + void setFont( const TQFont & ); void setEnabled( bool ); virtual void setSizeLimit( int ); @@ -87,19 +87,19 @@ public: virtual void setInsertionPolicy( Policy policy ); Policy insertionPolicy() const; - virtual void setValidator( const QValidator * ); - const QValidator * validator() const; + virtual void setValidator( const TQValidator * ); + const TQValidator * validator() const; - virtual void setListView( QListView * ); - QListView * listView() const; + virtual void setListView( TQListView * ); + TQListView * listView() const; - virtual void setLineEdit( QLineEdit *edit ); - QLineEdit* lineEdit() const; + virtual void setLineEdit( TQLineEdit *edit ); + TQLineEdit* lineEdit() const; virtual void setAutoCompletion( bool ); bool autoCompletion() const; - bool eventFilter( QObject *object, QEvent *event ); + bool eventFilter( TQObject *object, TQEvent *event ); void setDuplicatesEnabled( bool enable ); bool duplicatesEnabled() const; @@ -109,43 +109,43 @@ public: virtual void popup(); - QString currentText() const; - void setCurrentText( const QString& ); + TQString currentText() const; + void setCurrentText( const TQString& ); public slots: virtual void clear(); void clearValidator(); void clearEdit(); - virtual void setEditText( const QString &); + virtual void setEditText( const TQString &); signals: - void activated( QListViewItem * item ); - void highlighted( QListViewItem * item ); - void activated( const QString &); - void highlighted( const QString &); - void textChanged( const QString &); + void activated( TQListViewItem * item ); + void highlighted( TQListViewItem * item ); + void activated( const TQString &); + void highlighted( const TQString &); + void textChanged( const TQString &); void focusGranted(); void focusLost(); private slots: - void internalActivate( QListViewItem * ); - void internalHighlight( QListViewItem * ); + void internalActivate( TQListViewItem * ); + void internalHighlight( TQListViewItem * ); void internalClickTimeout(); void returnPressed(); - void checkState(QListViewItem*); + void checkState(TQListViewItem*); protected: - void paintEvent( QPaintEvent * ); - void resizeEvent( QResizeEvent * ); - void mousePressEvent( QMouseEvent * ); - void mouseMoveEvent( QMouseEvent * ); - void mouseReleaseEvent( QMouseEvent * ); - void mouseDoubleClickEvent( QMouseEvent * ); - void keyPressEvent( QKeyEvent *e ); - void focusInEvent( QFocusEvent *e ); - void focusOutEvent( QFocusEvent *e ); - void wheelEvent( QWheelEvent *e ); - void styleChange( QStyle& ); + void paintEvent( TQPaintEvent * ); + void resizeEvent( TQResizeEvent * ); + void mousePressEvent( TQMouseEvent * ); + void mouseMoveEvent( TQMouseEvent * ); + void mouseReleaseEvent( TQMouseEvent * ); + void mouseDoubleClickEvent( TQMouseEvent * ); + void keyPressEvent( TQKeyEvent *e ); + void focusInEvent( TQFocusEvent *e ); + void focusOutEvent( TQFocusEvent *e ); + void wheelEvent( TQWheelEvent *e ); + void styleChange( TQStyle& ); void updateMask(); @@ -155,7 +155,7 @@ private: void popDownListView(); void reIndex(); void currentChanged(); - QListViewItem *completionIndex( const QString &, QListViewItem * ) const; + TQListViewItem *completionIndex( const TQString &, TQListViewItem * ) const; QComboViewData *d; -- cgit v1.2.1