Feature/3139 new features for tips (#3152)

* "Tip of the Day" option added to Help menu

* Tip of the Day setting moved

* If no new tips are availabe, don't show tip of the day again

* list storing try #1

* first unseen tip shown first

* lastShownTip removed

* fixed next/previous buttons

* spaces > tab

* "Show this window on startup" is not checked by default
This commit is contained in:
David Szabo 2018-04-01 10:52:26 +02:00 committed by Zach H
parent 6374d157fc
commit e1394bd851
8 changed files with 62 additions and 22 deletions

View file

@ -68,7 +68,7 @@ private:
spoilerDatabasePath, tokenDatabasePath, themeName;
bool notifyAboutUpdates;
bool showTipsOnStartup;
unsigned int lastShownTip;
QList<int> seenTips;
bool mbDownloadSpoilers;
int updateReleaseChannel;
int maxFontSize;
@ -205,9 +205,9 @@ public:
{
return showTipsOnStartup;
}
unsigned int getLastShownTip() const
QList<int> getSeenTips() const
{
return lastShownTip;
return seenTips;
}
ReleaseChannel *getUpdateReleaseChannel() const
{
@ -444,7 +444,7 @@ public slots:
void setTokenDialogGeometry(const QByteArray &_tokenDialog);
void setLang(const QString &_lang);
void setShowTipsOnStartup(bool _showTipsOnStartup);
void setLastShownTip(int _lastShowTip);
void setSeenTips(const QList<int> &_seenTips);
void setDeckPath(const QString &_deckPath);
void setReplaysPath(const QString &_replaysPath);
void setPicsPath(const QString &_picsPath);