Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
rviz::LineEditWithButton Class Reference

#include <line_edit_with_button.h>

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

Public Member Functions

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

Protected Slots

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

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 
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. More...
 

Private Attributes

QPushButton * button_
 

Detailed Description

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

Definition at line 41 of file line_edit_with_button.h.

Constructor & Destructor Documentation

◆ LineEditWithButton()

rviz::LineEditWithButton::LineEditWithButton ( QWidget *  parent = nullptr)

Definition at line 40 of file line_edit_with_button.cpp.

Member Function Documentation

◆ button()

QPushButton* rviz::LineEditWithButton::button ( )
inline

Returns the child button. Use this to connect() something to a button click.

Definition at line 49 of file line_edit_with_button.h.

◆ onButtonClick

virtual void rviz::LineEditWithButton::onButtonClick ( )
inlineprotectedvirtualslot

Override this to do something when the button is clicked.

Definition at line 64 of file line_edit_with_button.h.

◆ resizeEvent()

void rviz::LineEditWithButton::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 52 of file line_edit_with_button.cpp.

◆ simulateReturnPressed()

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

Member Data Documentation

◆ button_

QPushButton* rviz::LineEditWithButton::button_
private

Definition at line 69 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 Mon Aug 15 2022 02:05:18