Ignore:
Timestamp:
07/28/21 23:41:39 (13 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
e4dcafe
Parents:
280f29b
git-author:
Philipp Spitzer <philipp@…> (07/28/21 23:41:14)
git-committer:
Philipp Spitzer <philipp@…> (07/28/21 23:41:39)
Message:

Adjust shown event time when displayTimeShift is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/conference.h

    r280f29b r5b7fa79  
    5656    bool hasDisplayTimeShift() const {return !value("display_time_shift").isNull();}
    5757    int displayTimeShift() const {return value("display_time_shift").toInt();}
     58    void setDisplayTimeShift(int newValue) {setValue("display_time_shift", newValue); update("display_time_shift");}
     59
    5860    bool isActive() const { return value("active").toBool(); }
    5961    QString url() const { return stringFromNullable(value("url")); }
     
    6466        update("url");
    6567    }
     68
     69    /// Returns a QTime that is shifted by displayTimeShift minutes
     70    QTime shiftTime(const QTime& value) const;
    6671
    6772private:
Note: See TracChangeset for help on using the changeset viewer.