This commit is contained in:
@@ -49,7 +49,7 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent, const char *name)
|
|||||||
: QMainWindow(parent, name), actualGame(0), actualHand(0), mySession(0), maxQuantityPlayers(maxQuantityPlayersConst), gameSpeed(0), debugMode(0), breakAfterActualHand(FALSE)
|
: QMainWindow(parent, name), actualGame(0), actualHand(0), mySession(0), maxQuantityPlayers(maxQuantityPlayersConst), gameSpeed(0), debugMode(0), breakAfterActualHand(FALSE)
|
||||||
{
|
{
|
||||||
// Schriftart laden
|
// Schriftart laden
|
||||||
QFontDatabase::addApplicationFont ("src/gui/qt/n019003l.pfb");
|
QFontDatabase::addApplicationFont ("src/gui/qt/fonts/n019003l.pfb");
|
||||||
QFont tmpFont("Nimbus Sans L",9);
|
QFont tmpFont("Nimbus Sans L",9);
|
||||||
QApplication::setFont(tmpFont);
|
QApplication::setFont(tmpFont);
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,29 @@
|
|||||||
//
|
/***************************************************************************
|
||||||
// C++ Implementation: startsplash
|
* Copyright (C) 2006 by FThauer FHammer *
|
||||||
//
|
* f.thauer@web.de *
|
||||||
// Description:
|
* *
|
||||||
//
|
* This program is free software; you can redistribute it and/or modify *
|
||||||
//
|
* it under the terms of the GNU General Public License as published by *
|
||||||
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
//
|
* (at your option) any later version. *
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
* *
|
||||||
//
|
* This program is distributed in the hope that it will be useful, *
|
||||||
//
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
#include "startsplash.h"
|
#include "startsplash.h"
|
||||||
|
|
||||||
StartSplash::StartSplash()
|
StartSplash::StartSplash()
|
||||||
: QWidget()
|
: QWidget()
|
||||||
{
|
{
|
||||||
|
QFontDatabase::addApplicationFont ("src/gui/qt/fonts/c059013l.pfb");
|
||||||
|
|
||||||
|
|
||||||
frameNo = 0;
|
frameNo = 0;
|
||||||
|
|
||||||
@@ -37,17 +47,30 @@ void StartSplash::paintEvent(QPaintEvent * event) {
|
|||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
|
||||||
if(frameNo < 51) {
|
if(frameNo < 40) {
|
||||||
|
|
||||||
painter.setBrush(QColor(0+frameNo,40+frameNo,6+frameNo));
|
painter.setBrush(QColor(0+frameNo,40+frameNo,6+frameNo));
|
||||||
painter.drawRect(0,0,299,199);
|
painter.drawRect(0,0,299,199);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(frameNo >= 51) {
|
if(frameNo >= 40 && frameNo < 65) {
|
||||||
|
|
||||||
painter.setBrush(QColor(51,91,57));
|
painter.setBrush(QColor(40,80,46));
|
||||||
painter.drawRect(0,0,299,199);
|
painter.drawRect(0,0,299,199);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(frameNo >= 65 && frameNo < 90) {
|
||||||
|
|
||||||
|
painter.setBrush(QColor(40,80,46));
|
||||||
|
painter.drawRect(0,0,299,199);
|
||||||
|
|
||||||
|
QFont font1("Century Schoolbook L",20);
|
||||||
|
painter.setFont(font1);
|
||||||
|
painter.setPen(QColor(255,255,255));
|
||||||
|
painter.drawText(20,20,140,40,1,"Welcome");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user