summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-09-02 20:13:50 (UTC)
committer mickeyl <mickeyl>2004-09-02 20:13:50 (UTC)
commit502637b6727d3f1426ae1ccbed3a6ce7f49ff8f4 (patch) (side-by-side diff)
treef4efb13dc7760ef43685521cc9883231371ebc08
parentee5d578ea25ffdbda6b647e6dea93af77eb66d5f (diff)
downloadopie-502637b6727d3f1426ae1ccbed3a6ce7f49ff8f4.zip
opie-502637b6727d3f1426ae1ccbed3a6ce7f49ff8f4.tar.gz
opie-502637b6727d3f1426ae1ccbed3a6ce7f49ff8f4.tar.bz2
show first usage display - we may reenable tr() later again
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/firstuse.cpp6
-rw-r--r--pics/launcher/firstuse.jpgbin0 -> 12739 bytes
2 files changed, 2 insertions, 4 deletions
diff --git a/core/launcher/firstuse.cpp b/core/launcher/firstuse.cpp
index e9e2d83..acddeea 100644
--- a/core/launcher/firstuse.cpp
+++ b/core/launcher/firstuse.cpp
@@ -441,28 +441,26 @@ void FirstUse::paintEvent( QPaintEvent * )
if ( currApp < 0 ) {
drawText(p, tr( "Tap anywhere on the screen to continue." ));
} else if ( settingsTable[currApp].app ) {
if ( waitingForLaunch )
drawText(p, tr("Please wait, loading %1 settings.").arg(tr(settingsTable[currApp].desc)) );
} else {
drawText(p, tr("Please wait..."));
}
}
void FirstUse::loadPixmaps()
{
- /* create background, tr so can change image with language.
- images will likely contain text. */
- splash.convertFromImage( Resource::loadImage(tr("FirstUseBackground"))
- .smoothScale( width(), height() ) );
+ splash.convertFromImage( Resource::loadImage("launcher/firstuse")
+ .smoothScale( width(), height() ) );
setBackgroundPixmap(splash);
}
void FirstUse::drawText(QPainter &p, const QString &text)
{
QString altered = "<CENTER>" + text + "</CENTER>";
QSimpleRichText rt(altered, p.font());
rt.setWidth(width() - 20);
int h = (height() * 3) / 10; // start at 30%
diff --git a/pics/launcher/firstuse.jpg b/pics/launcher/firstuse.jpg
new file mode 100644
index 0000000..92fb044
--- a/dev/null
+++ b/pics/launcher/firstuse.jpg
Binary files differ