diff options
author | Christian Klinger | 2016-04-22 17:07:24 +0200 |
---|---|---|
committer | Christian Klinger | 2016-04-22 17:07:24 +0200 |
commit | 75ffb4d9c7a7a22ddf472735073815f68c763cd4 (patch) | |
tree | 721ff202482efd068c15e2019f6492bc4a0f1bcb /src/server/mainwindow/mainwindow.h | |
parent | add missing separators between the buttons on the left side of the main window (diff) | |
download | pvs2-75ffb4d9c7a7a22ddf472735073815f68c763cd4.tar.gz pvs2-75ffb4d9c7a7a22ddf472735073815f68c763cd4.tar.xz pvs2-75ffb4d9c7a7a22ddf472735073815f68c763cd4.zip |
determine grid size based on the loaded room config.
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index a4c73a2..9cbec70 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -40,9 +40,8 @@ private: QLabel *_sessionNameLabel; int _tbIconSize; Qt::ToolBarArea _tbArea; - int _tileWidth, _tileHeight; - static const int _tilesX = 9; - static const int _tilesY = 7; + int _tilesX; + int _tilesY; // Button block stuff QTimer *_buttonLockTimer; @@ -84,6 +83,8 @@ private: void resizeEvent(QResizeEvent *e); void mouseReleaseEvent(QMouseEvent* e); + int getTileWidthPx() const; + int getTileHeightPx() const; protected slots: void onTutorListDownloaded(QByteArray& tutorList); |