mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-01 05:05:57 -08:00
Compilation error fix.
This commit is contained in:
@@ -63,6 +63,9 @@ public:
|
||||
const QColor GetColorToolbarMainTextWebsiteURL() const {return colorToolbarMainTextWebsiteURL;}
|
||||
const QColor GetColorToolbarMainTextVisitWebsite() const {return colorToolbarMainTextVisitWebsite;}
|
||||
|
||||
const QColor GetColorWindowBackground() const {return colorWindowBackground;}
|
||||
const QColor GetColorFrameBackground() const {return colorFrameBackground;}
|
||||
|
||||
const QColor GetColorButtonTopGradient() const {return colorButtonTopGradient;}
|
||||
const QColor GetColorButtonBottomGradient() const {return colorButtonBottomGradient;}
|
||||
const QColor GetColorButtonMid() const {return colorButtonMid;}
|
||||
|
||||
@@ -46,21 +46,21 @@ void GUIBannerWidget::registerCustomQmlTypes()
|
||||
QWidget* GUIBannerWidget::dockQmlToWidget()
|
||||
{
|
||||
QQuickView* pBannerWindow = new QQuickView;
|
||||
QQmlContext* pContext = pBannerWindow->rootContext();
|
||||
QWidget* pPlaceHolder = 0;
|
||||
if ( pBannerWindow )
|
||||
{
|
||||
pBannerWindow->setSource( QUrl( QStringLiteral( "qrc:/qml/qtquick_controls/qml/QmlGUIBannerWindow.qml" ) ) );
|
||||
QQmlContext* pContext = pBannerWindow->rootContext();
|
||||
if ( pContext )
|
||||
{
|
||||
pContext->setContextProperty( "GUI20Skin", &GUI20Skin::Instance() );
|
||||
}
|
||||
QQmlEngine* pEngine = pBannerWindow->engine();
|
||||
if ( pEngine )
|
||||
{
|
||||
m_pQmlImageProvider = new QmlImageProvider();
|
||||
pEngine->addImageProvider( "advertImages", m_pQmlImageProvider );
|
||||
}
|
||||
pPlaceHolder = QWidget::createWindowContainer( pBannerWindow, this );
|
||||
if ( pPlaceHolder )
|
||||
{
|
||||
pPlaceHolder->setMinimumSize( 445, 115 );
|
||||
pPlaceHolder->setMaximumSize( 445, 115 );
|
||||
}
|
||||
pBannerWindow->setSource( QUrl( QStringLiteral( "qrc:/qml/qtquick_controls/qml/QmlGUIBannerWindow.qml" ) ) );
|
||||
QQuickItem* pRootObject = pBannerWindow->rootObject();
|
||||
if ( pRootObject )
|
||||
{
|
||||
@@ -71,6 +71,12 @@ QWidget* GUIBannerWidget::dockQmlToWidget()
|
||||
m_pBannerControl->setHeight( 115 );
|
||||
}
|
||||
}
|
||||
pPlaceHolder = QWidget::createWindowContainer( pBannerWindow, this );
|
||||
if ( pPlaceHolder )
|
||||
{
|
||||
pPlaceHolder->setMinimumSize( 445, 115 );
|
||||
pPlaceHolder->setMaximumSize( 445, 115 );
|
||||
}
|
||||
}
|
||||
|
||||
return pPlaceHolder;
|
||||
|
||||
@@ -52,7 +52,6 @@ void GUIMenuToolbarWidget::slotCurrentItemChanged()
|
||||
|
||||
void GUIMenuToolbarWidget::slotOurWebsiteURLClicked()
|
||||
{
|
||||
qDebug() << "clicked";
|
||||
if ( m_pToolbarControl )
|
||||
{
|
||||
QString strUrl = m_pToolbarControl->GetWebsiteURL();
|
||||
|
||||
@@ -5,7 +5,7 @@ GUIBannerControl
|
||||
{
|
||||
id: id_bannerControl
|
||||
|
||||
property color colorBackgroundInWidget: GUI20Skin.colorWindowBackground
|
||||
property color colorBackgroundInWidget: GUI20Skin.colorFrameBackground
|
||||
Rectangle
|
||||
{
|
||||
id: id_leftArrow
|
||||
|
||||
@@ -7,7 +7,7 @@ Rectangle
|
||||
{
|
||||
id: id_bannerControlMain
|
||||
}
|
||||
color: "transparent"
|
||||
color: GUI20Skin.colorFrameBackground
|
||||
width: id_bannerControlMain.width
|
||||
height: id_bannerControlMain.height
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ Rectangle
|
||||
id: id_toolbarRoot
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
color: "transparent"
|
||||
color: GUI20Skin.colorWindowBackground
|
||||
QmlGUIMenuToolbarControl
|
||||
{
|
||||
id: id_toolbarControlMain
|
||||
|
||||
Reference in New Issue
Block a user