diff --git a/src/libs/ui/gantt/DateTimeTimeLine.h b/src/libs/ui/gantt/DateTimeTimeLine.h index 87330c96..1e84ddf8 100644 --- a/src/libs/ui/gantt/DateTimeTimeLine.h +++ b/src/libs/ui/gantt/DateTimeTimeLine.h @@ -1,69 +1,69 @@ /* * Copyright (C) 2019 Dag Andersen * * This file is part of the KGantt library. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef KPLATODATETIMETIMELINE_H #define KPLATODATETIMETIMELINE_H #include "kganttglobal.h" #include class QDateTime; namespace KPlato { class DateTimeTimeLine : public QObject { Q_OBJECT public: enum Option { Foreground = 1, /// Display the timeline in the foreground. Background = 2, /// Display the timeline in the background. UseCustomPen = 4, /// Paint the timeline using the pen set with setTimelinePen(). MaxOptions = 0xFFFF }; Q_DECLARE_FLAGS(Options, Option) DateTimeTimeLine(); void setEnabled(bool enable); bool isEnabled() const; DateTimeTimeLine::Options options() const; void setOptions(DateTimeTimeLine::Options options); QDateTime dateTime() const; void setDateTime(const QDateTime &dt); void setInterval(int msec); int interval() const; QPen pen() const; void setPen(const QPen &pen); Q_SIGNALS: void updated(); private: class Private; Private *d; }; -Q_DECLARE_OPERATORS_FOR_FLAGS(DateTimeTimeLine::Options) - } +Q_DECLARE_OPERATORS_FOR_FLAGS(KPlato::DateTimeTimeLine::Options) + #endif /* KPLATODATETIMETIMELINE_H */