Next steps on Android port
This commit is contained in:
@@ -76,7 +76,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
||||
setupUi(this);
|
||||
|
||||
#ifdef ANDROID
|
||||
this->setAttribute(Qt::WA_LockLandscapeOrientation);
|
||||
// this->setAttribute(Qt::WA_LockLandscapeOrientation);
|
||||
this->showFullScreen();
|
||||
#endif
|
||||
|
||||
@@ -4239,8 +4239,8 @@ void gameTableImpl::restoreGameTableGeometry()
|
||||
{
|
||||
#ifdef ANDROID
|
||||
this->showFullScreen();
|
||||
refreshGameTableStyle();
|
||||
this->showFullScreen();
|
||||
// refreshGameTableStyle();
|
||||
// this->showFullScreen();
|
||||
#else
|
||||
if(myConfig->readConfigInt("GameTableFullScreenSave")) {
|
||||
#ifndef GUI_800x480
|
||||
|
||||
@@ -419,5 +419,7 @@
|
||||
<file>android-data/gfx/gui/misc/welcomepokerth_old.png</file>
|
||||
<file>android-data/gfx/gui/misc/welcomepokerth.png</file>
|
||||
<file>android-data/gfx/gui/misc/windowicon.png</file>
|
||||
<file>android-data/fonts/DejaVuSans-Bold.ttf</file>
|
||||
<file>android-data/fonts/n019003l.pfb</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -530,7 +530,9 @@ void settingsDialogImpl::exec(bool in_game)
|
||||
calledIngame = in_game;
|
||||
prepareDialog();
|
||||
QDialog::exec();
|
||||
|
||||
#ifdef ANDROID
|
||||
this->showFullScreen();
|
||||
#endif
|
||||
}
|
||||
|
||||
void settingsDialogImpl::isAccepted()
|
||||
|
||||
@@ -74,12 +74,13 @@ startWindowImpl::startWindowImpl(ConfigFile *c, Log *l)
|
||||
this->setStatusBar(0);
|
||||
|
||||
#ifdef GUI_800x480
|
||||
this->menubar->setStyleSheet("QMenuBar { background-color: #4B4B4B; font-size:20px; border-width: 0px;} QMenuBar::item { color: #F0F0F0; }");
|
||||
#ifdef ANDROID
|
||||
this->menubar->setStyleSheet("QMenuBar { background-color: #4B4B4B; font-size:20px; border-width: 0px;} QMenuBar::item { font-size:30px; color: #F0F0F0; }");
|
||||
centralwidget->setStyleSheet(".QWidget { background-image: url(:/android/android-data/gfx/gui/misc/startwindowbg_800x480.png); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
||||
this->setAttribute(Qt::WA_LockLandscapeOrientation);
|
||||
// this->setAttribute(Qt::WA_LockLandscapeOrientation);
|
||||
this->showFullScreen();
|
||||
#else
|
||||
this->menubar->setStyleSheet("QMenuBar { background-color: #4B4B4B; font-size:20px; border-width: 0px;} QMenuBar::item { color: #F0F0F0; }");
|
||||
centralwidget->setStyleSheet(".QWidget { background-image: url(\""+myAppDataPath+"gfx/gui/misc/startwindowbg_800x480.png\"); background-position: bottom center; background-origin: content; background-repeat: no-repeat;}");
|
||||
#endif
|
||||
pushButtonStart_Local_Game->setStyleSheet("QPushButton { text-align:left; font-weight:bold; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px; background-color: #4B4B4B; color: #F0F0F0; font-size:20px; border-width: 0px;}");
|
||||
|
||||
Reference in New Issue
Block a user