Do no allow resizing of window.
Some small documenting. Removed old street bets files.
This commit is contained in:
parent
982212806f
commit
810ca0d9f5
6 changed files with 10 additions and 23 deletions
|
@ -11,7 +11,7 @@ MainWindow::MainWindow(QWindow *parent)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* MainWindow is a QQmlApplicationEngine, so a .show() isn't needed
|
* MainWindow is a QQmlApplicationEngine, so a .show() isn't needed
|
||||||
* it will load a Window or ApplicationWindow that will set its own
|
* It will load a Window or ApplicationWindow that will set its own
|
||||||
* visibility status
|
* visibility status
|
||||||
*/
|
*/
|
||||||
load(QUrl("qrc:///Root.qml"));
|
load(QUrl("qrc:///Root.qml"));
|
||||||
|
|
|
@ -45,6 +45,10 @@ void PlayerAreaModel::bet(BetType b, int n, int bet)
|
||||||
player->bet1.betType = b;
|
player->bet1.betType = b;
|
||||||
player->bet1.betValue = bet;
|
player->bet1.betValue = bet;
|
||||||
player->bet1.betSpot = n;
|
player->bet1.betSpot = n;
|
||||||
|
/*
|
||||||
|
* This is needed because the visual roulette board is inverted from the actual QML grid we use to represent it.
|
||||||
|
* Here we use 35 because the grid is 0-indexed, but later we use 36 for convinience
|
||||||
|
*/
|
||||||
if (b == SINGLE && n <= 35) {
|
if (b == SINGLE && n <= 35) {
|
||||||
n = 35 - n;
|
n = 35 - n;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,7 @@ private:
|
||||||
|
|
||||||
int focusedPlayer_;
|
int focusedPlayer_;
|
||||||
|
|
||||||
|
/* bitmaps */
|
||||||
int64_t redNumbers = 45857548629;
|
int64_t redNumbers = 45857548629;
|
||||||
int64_t column3 = 9817068105;
|
int64_t column3 = 9817068105;
|
||||||
int64_t column2 = 19634136210;
|
int64_t column2 = 19634136210;
|
||||||
|
|
6
Root.qml
6
Root.qml
|
@ -4,8 +4,10 @@ import QtQuick.Controls
|
||||||
import roulette /* this is importing the target "roulette-payout" defined in CMakeLists.txt */
|
import roulette /* this is importing the target "roulette-payout" defined in CMakeLists.txt */
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
height: 500
|
maximumHeight: 500
|
||||||
width: 1000
|
maximumWidth: 1000
|
||||||
|
minimumHeight: 500
|
||||||
|
minimumWidth: 1000
|
||||||
title: "Roulette Payout"
|
title: "Roulette Payout"
|
||||||
visible: true
|
visible: true
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#include "StreetBetsModel.h"
|
|
||||||
|
|
||||||
StreetBetsModel::StreetBetsModel(QObject *parent)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <QQuickView>
|
|
||||||
#include <qqmlintegration.h>
|
|
||||||
#include <qtmetamacros.h>
|
|
||||||
#include <qobject.h>
|
|
||||||
|
|
||||||
class StreetBetsModel : public QObject {
|
|
||||||
Q_OBJECT
|
|
||||||
QML_ELEMENT
|
|
||||||
|
|
||||||
public:
|
|
||||||
explicit StreetBetsModel(QObject *parent = nullptr);
|
|
||||||
};
|
|
Loading…
Reference in a new issue