#include <line_edit_with_button.h>
Signals | |
void | endPersistence () |
void | startPersistence () |
Public Member Functions | |
QPushButton * | button () |
LineEditWithButton (QWidget *parent=0) | |
Protected Slots | |
virtual void | onButtonClick () |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *event) |
void | simulateReturnPressed () |
Private Attributes | |
QPushButton * | button_ |
A QLineEdit with a square button on the right side that says "...".
Definition at line 42 of file line_edit_with_button.h.
rviz::LineEditWithButton::LineEditWithButton | ( | QWidget * | parent = 0 | ) |
Definition at line 43 of file line_edit_with_button.cpp.
QPushButton* rviz::LineEditWithButton::button | ( | ) | [inline] |
Returns the child button. Use this to connect() something to a button click.
Definition at line 50 of file line_edit_with_button.h.
void rviz::LineEditWithButton::endPersistence | ( | ) | [signal] |
virtual void rviz::LineEditWithButton::onButtonClick | ( | ) | [inline, protected, virtual, slot] |
Override this to do something when the button is clicked.
Reimplemented in rviz::ColorEditor, and rviz::RosTopicEditor.
Definition at line 66 of file line_edit_with_button.h.
void rviz::LineEditWithButton::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Reimplemented in rviz::ColorEditor.
Definition at line 56 of file line_edit_with_button.cpp.
void rviz::LineEditWithButton::simulateReturnPressed | ( | ) | [protected] |
Send key events to mimic the "return" key being pressed and released. Useful ending an edit session and sending the data on out.
Definition at line 79 of file line_edit_with_button.cpp.
void rviz::LineEditWithButton::startPersistence | ( | ) | [signal] |
QPushButton* rviz::LineEditWithButton::button_ [private] |
Definition at line 69 of file line_edit_with_button.h.