#ifndef PATHHISTORY_H #define PATHHISTORY_H #include class PathHistory : public QObject { Q_OBJECT public: explicit PathHistory(QObject *parent = nullptr); void append(const QUrl &path); QUrl posteriorPath(); QUrl previousPath(); private: QVector m_prevHistory; QVector m_postHistory; }; #endif // PATHHISTORY_H