some mac hints
This commit is contained in:
@@ -53,6 +53,8 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent)
|
||||
{
|
||||
int i;
|
||||
|
||||
this->setStyle(new QPlastiqueStyle);
|
||||
|
||||
//for statistic development
|
||||
for(i=0; i<15; i++) {
|
||||
statisticArray[i] = 0;
|
||||
@@ -475,8 +477,13 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent)
|
||||
|
||||
//Statusbar
|
||||
if(myConfig->readConfigInt("ShowStatusbarMessages")) {
|
||||
statusBar()->showMessage(tr("Ctrl+N to start a new game"));
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
statusBar()->showMessage(tr("Cmd+N to start a new game"));
|
||||
#else
|
||||
statusBar()->showMessage(tr("Ctrl+N to start a new game"));
|
||||
#endif
|
||||
}
|
||||
|
||||
//Dialoge
|
||||
myJoinNetworkGameDialog = new joinNetworkGameDialogImpl(this);
|
||||
@@ -2112,11 +2119,18 @@ void mainWindowImpl::breakButtonClicked() {
|
||||
void mainWindowImpl::paintStartSplash() {
|
||||
|
||||
StartSplash *mySplash = new StartSplash(this);
|
||||
mySplash->setGeometry(this->pos().x()+237,this->pos().y()+210,400,250);
|
||||
// mySplash->setWindowFlags(Qt::SplashScreen);
|
||||
mySplash->show();
|
||||
|
||||
#ifdef __APPLE__
|
||||
int offset = 305;
|
||||
#else
|
||||
int offset = 237;
|
||||
#endif
|
||||
mySplash->setGeometry(this->pos().x()+offset,this->pos().y()+210,400,250);
|
||||
// mySplash->setWindowFlags(Qt::SplashScreen);
|
||||
mySplash->show();
|
||||
}
|
||||
|
||||
|
||||
void mainWindowImpl::networkError(int errorID, int osErrorID) {
|
||||
|
||||
switch (errorID) {
|
||||
|
||||
@@ -49,6 +49,32 @@ void StartSplash::paintEvent(QPaintEvent * event) {
|
||||
|
||||
QPainter painter(this);
|
||||
|
||||
#ifdef _WIN32
|
||||
QFont welcomeFont;
|
||||
welcomeFont.setFamily("Times New Roman");
|
||||
welcomeFont.setPixelSize(42);
|
||||
#else
|
||||
#ifdef __APPLE__
|
||||
QFont welcomeFont;
|
||||
welcomeFont.setFamily("Andy MT Bold");
|
||||
welcomeFont.setPixelSize(42);
|
||||
#else
|
||||
QFont welcomeFont;
|
||||
welcomeFont.setFamily("Century Schoolbook L");
|
||||
welcomeFont.setPixelSize(35);
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
QFont haveFont;
|
||||
haveFont.setFamily("Andy MT Bold");
|
||||
haveFont.setPixelSize(36);
|
||||
#else
|
||||
QFont haveFont;
|
||||
haveFont.setFamily("Andy MT");
|
||||
haveFont.setPixelSize(36);
|
||||
#endif
|
||||
/*
|
||||
|
||||
#ifdef _WIN32
|
||||
QFont welcomeFont;
|
||||
welcomeFont.setFamily("Times New Roman");
|
||||
@@ -60,7 +86,7 @@ void StartSplash::paintEvent(QPaintEvent * event) {
|
||||
#endif
|
||||
QFont haveFont;
|
||||
haveFont.setFamily("Andy MT");
|
||||
haveFont.setPixelSize(36);
|
||||
haveFont.setPixelSize(36);*/
|
||||
|
||||
QPixmap logo(":/graphics/resources/graphics/logoChip3D.png");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user