diff options
author | Ken Moore <ken@ixsystems.com> | 2016-12-08 16:00:54 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-12-08 16:00:54 -0500 |
commit | 192606e238eb5022975de61e7db6f46eb8172325 (patch) | |
tree | cc7be3407a9ee10291428b1dee8face707eb8a49 /src-qt5/core/lumina-desktop/BootSplash.cpp | |
parent | Fix up the selection highlighting *during* the mouse movement. (diff) | |
download | lumina-192606e238eb5022975de61e7db6f46eb8172325.tar.gz lumina-192606e238eb5022975de61e7db6f46eb8172325.tar.bz2 lumina-192606e238eb5022975de61e7db6f46eb8172325.zip |
Add a couple more options for the tip of the day.
Diffstat (limited to 'src-qt5/core/lumina-desktop/BootSplash.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop/BootSplash.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src-qt5/core/lumina-desktop/BootSplash.cpp b/src-qt5/core/lumina-desktop/BootSplash.cpp index f6c4c5fa..5674eaff 100644 --- a/src-qt5/core/lumina-desktop/BootSplash.cpp +++ b/src-qt5/core/lumina-desktop/BootSplash.cpp @@ -16,8 +16,8 @@ BootSplash::BootSplash() : QWidget(0, Qt::SplashScreen | Qt::X11BypassWindowMana } void BootSplash::generateTipOfTheDay(){ - int index = qrand()%5; //Make sure this number matches the length of the case below (max value +1) - QString tip = "This desktop is generously sponsored by iXsystems\nwww.ixsystems.com"; //fallback message (just in case) + int index = qrand()%7; //Make sure this number matches the length of the case below (max value +1) + QString tip; switch(index){ case 0: tip = tr("This desktop is powered by coffee, coffee, and more coffee."); break; @@ -30,11 +30,11 @@ void BootSplash::generateTipOfTheDay(){ case 4: tip = tr("Lumina can easily reproduce the interface from most other desktop environments."); break; case 5: - tip = tr(""); break; + tip = tr("This desktop is generously sponsored by iXsystems")+"\n\nwww.ixsystems.com"; break; case 6: - tip = tr(""); break; + tip = "\""+tr("I have never been hurt by what I have not said")+"\"\n\n- Calvin Coolidge -"; break; } - ui->label_welcome->setText( "\""+tip+"\"" ); + ui->label_welcome->setText( tip); } void BootSplash::showScreen(QString loading){ //update icon, text, and progress |