pLineEdit.sip 897 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. class pLineEdit : QLineEdit
  2. {
  3. %TypeHeaderCode
  4. #include <gui/pLineEdit.h>
  5. %End
  6. public:
  7. pLineEdit( QWidget* parent = 0 );
  8. pLineEdit( const QString& contents, QWidget* parent = 0 );
  9. QMenu* menu() const;
  10. void setMenu( QMenu* menu );
  11. bool isSearchButtonVisible() const;
  12. QString promptText() const;
  13. public slots:
  14. void setSearchButtonVisible( bool visible );
  15. void setPromptText( const QString& prompt );
  16. void clickSearchButton();
  17. void clickClearButton();
  18. protected:
  19. virtual void paintEvent( QPaintEvent* event );
  20. virtual void resizeEvent( QResizeEvent* event );
  21. void init();
  22. void setClearButtonVisible( bool visible );
  23. protected slots:
  24. void _q_textChanged( const QString& text );
  25. void timer_timeout();
  26. signals:
  27. void searchButtonClicked();
  28. void searchButtonActionTriggered( QAction* action );
  29. void clearButtonClicked();
  30. void searchTextChanged( const QString& text );
  31. };