initial port for Cevo game in C++ (libs)
This commit is contained in:
commit
8436242032
375 files changed
+46282
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <QTableWidget>
|
||||
|
||||
namespace Dpi {
|
||||
|
||||
// TStringGrid equivalent.
|
||||
class StringGrid : public QTableWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit StringGrid(QWidget *parent = nullptr);
|
||||
|
||||
QString cell(int col, int row) const;
|
||||
void setCell(int col, int row, const QString &value);
|
||||
|
||||
int fixedRows() const { return m_fixedRows; }
|
||||
void setFixedRows(int value);
|
||||
int fixedCols() const { return m_fixedCols; }
|
||||
void setFixedCols(int value) { m_fixedCols = value; }
|
||||
|
||||
QRect cellRect(int col, int row) const;
|
||||
|
||||
private:
|
||||
int m_fixedRows = 0;
|
||||
int m_fixedCols = 0;
|
||||
};
|
||||
|
||||
} // namespace Dpi
|
||||
Reference in new issue
Block a user