/*
* Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011 Philipp Spitzer, gregor herrmann
+ * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl
*
* This file is part of ConfClerk.
*
#ifndef DELEGATE_H
#define DELEGATE_H
+#include "qglobal.h"
+#if QT_VERSION >= 0x050000
+#include <QtWidgets>
+#else
#include <QtGui>
+#endif
class Delegate : public QItemDelegate
{
enum ControlId
{
ControlNone = 0,
- FavouriteControlOn,
- FavouriteControlOff,
+ FavouriteControlStrong,
+ FavouriteControlWeak,
+ FavouriteControlNo,
AlarmControlOn,
AlarmControlOff,
WarningControl
void defineControls();
// TODO: the better place for these methods would be 'eventmodel'
// they are used in 'paint' method and so it's better to obtain number of
- // favourities/alarms once when the data has changed and not to call
+ // favourites/alarms once when the data has changed and not to call
// these methods which iterate over all Events in corresponding group
// every time it requires them
- int numberOfFavourities(const QModelIndex &index) const;
+ int numberOfFavourites(const QModelIndex &index) const;
int numberOfAlarms(const QModelIndex &index) const;
private: