Limo
A simple mod manager
Loading...
Searching...
No Matches
tablepushbutton.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QPushButton>
9
10
15class TablePushButton : public QPushButton
16{
17 Q_OBJECT
18public:
24 TablePushButton(int row, int col);
25
26private:
28 const int row_;
30 const int col_;
31
32private slots:
34 void onClickedAt();
35
36signals:
42 void clickedAt(int row, int col);
43};
const int row_
Row of the QTableWidget which contains this button.
Definition tablepushbutton.h:28
void clickedAt(int row, int col)
Signals button has been clicked at a specific table position.
TablePushButton(int row, int col)
Constructs a new button for the given row and column.
Definition tablepushbutton.cpp:3
const int col_
Column of the QTableWidget which contains this button.
Definition tablepushbutton.h:30
void onClickedAt()
Called when the button is clicked. Emits clickedAt.
Definition tablepushbutton.cpp:8