Limo
A simple mod manager
Loading...
Searching...
No Matches
TablePushButton Class Reference

QPushButton derivative for use in a QTableWidget cell. This button knows it's position in the table. More...

#include <tablepushbutton.h>

Inheritance diagram for TablePushButton:
Collaboration diagram for TablePushButton:

Signals

void clickedAt (int row, int col)
 Signals button has been clicked at a specific table position.
 

Public Member Functions

 TablePushButton (int row, int col)
 Constructs a new button for the given row and column.
 

Private Slots

void onClickedAt ()
 Called when the button is clicked. Emits clickedAt.
 

Private Attributes

const int row_
 Row of the QTableWidget which contains this button.
 
const int col_
 Column of the QTableWidget which contains this button.
 

Detailed Description

QPushButton derivative for use in a QTableWidget cell. This button knows it's position in the table.

Constructor & Destructor Documentation

◆ TablePushButton()

TablePushButton::TablePushButton ( int row,
int col )

Constructs a new button for the given row and column.

Parameters
rowTarget row.
colTarget column.

Member Function Documentation

◆ clickedAt

void TablePushButton::clickedAt ( int row,
int col )
signal

Signals button has been clicked at a specific table position.

Parameters
rowTable row.
colTable column.

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