* connects to https://www.sourcetrail.com/api/v1/versions/latest * sends information about OS, platform, license type, current version and a unique user token * Automatic update check is enabled via Startscreen and performed once every 24 hours on window focus * Update check can be forced by clicking on "check for new version" on start screen * renamed TimePoint to TimeStamp fortune cookie message = In Träumen und im Leben ist nichts unmöglich.
38 lines
756 B
C++
38 lines
756 B
C++
#ifndef QT_CODE_FILE_TITLE_BUTTON_H
|
|
#define QT_CODE_FILE_TITLE_BUTTON_H
|
|
|
|
#include <QPushButton>
|
|
|
|
#include "utility/file/FilePath.h"
|
|
#include "utility/TimeStamp.h"
|
|
|
|
class QtCodeFileTitleButton
|
|
: public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtCodeFileTitleButton(QWidget* parent = nullptr);
|
|
virtual ~QtCodeFileTitleButton();
|
|
|
|
void setFilePath(const FilePath& filePath);
|
|
void setModificationTime(const TimeStamp modificationTime);
|
|
void setIsComplete(bool isComplete);
|
|
void setProject(const std::string& name);
|
|
|
|
void updateTexts();
|
|
|
|
protected:
|
|
void contextMenuEvent(QContextMenuEvent* event);
|
|
|
|
private slots:
|
|
void clickedTitle();
|
|
|
|
private:
|
|
FilePath m_filePath;
|
|
TimeStamp m_modificationTime;
|
|
bool m_isComplete;
|
|
};
|
|
|
|
#endif // QT_CODE_FILE_TITLE_BUTTON_H
|