Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
rviz::LineEditWithButton Class Reference

#include <line_edit_with_button.h>

Inheritance diagram for rviz::LineEditWithButton:
Inheritance graph
[legend]

List of all members.

Public Member Functions

QPushButton * button ()
 LineEditWithButton (QWidget *parent=0)

Protected Slots

virtual void onButtonClick ()
 Override this to do something when the button is clicked.

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
void simulateReturnPressed ()
 Send key events to mimic the "return" key being pressed and released. Useful ending an edit session and sending the data on out.

Private Attributes

QPushButton * button_

Detailed Description

A QLineEdit with a square button on the right side that says "...".

Definition at line 42 of file line_edit_with_button.h.


Constructor & Destructor Documentation

Definition at line 41 of file line_edit_with_button.cpp.


Member Function Documentation

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.

virtual void rviz::LineEditWithButton::onButtonClick ( ) [inline, protected, virtual, slot]

Override this to do something when the button is clicked.

Reimplemented in rviz::ColorEditor.

Definition at line 62 of file line_edit_with_button.h.

void rviz::LineEditWithButton::resizeEvent ( QResizeEvent *  event) [protected, virtual]

Reimplemented in rviz::ColorEditor.

Definition at line 54 of file line_edit_with_button.cpp.

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 77 of file line_edit_with_button.cpp.


Member Data Documentation

QPushButton* rviz::LineEditWithButton::button_ [private]

Definition at line 65 of file line_edit_with_button.h.


The documentation for this class was generated from the following files:


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Thu Aug 27 2015 15:02:29