X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/900bcf129f5eef4b0dfea93468a0fe7261a9e1c3..e6ab8a2351ae5a228624dd5de074862ad6a3132d:/src/mvc/delegate.cpp diff --git a/src/mvc/delegate.cpp b/src/mvc/delegate.cpp index cb7923d..9d4c8df 100644 --- a/src/mvc/delegate.cpp +++ b/src/mvc/delegate.cpp @@ -1,20 +1,21 @@ /* * Copyright (C) 2010 Ixonos Plc. + * Copyright (C) 2011 Philipp Spitzer, gregor herrmann * - * This file is part of fosdem-schedule. + * This file is part of ConfClerk. * - * fosdem-schedule is free software: you can redistribute it and/or modify it + * ConfClerk 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. * - * fosdem-schedule is distributed in the hope that it will be useful, but + * ConfClerk 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 - * fosdem-schedule. If not, see . + * ConfClerk. If not, see . */ #include "delegate.h" #include "eventmodel.h" @@ -148,8 +149,6 @@ void Delegate::paint(QPainter *painter, const QStyleOptionViewItem &option, cons else mControls[AlarmControlOff]->paint(painter, option.rect); #endif - if (event->room()->hasMap()) - mControls[MapControl]->paint(painter, option.rect); if(event->hasTimeConflict()) mControls[WarningControl]->paint(painter, option.rect); @@ -362,31 +361,23 @@ void Delegate::defineControls() { // FAVOURITE ICONs // on - mControls.insert(FavouriteControlOn, new Control(FavouriteControlOn, QString(":icons/favourite-onBig.png"), NULL)); + mControls.insert(FavouriteControlOn, new Control(FavouriteControlOn, QString(":icons/emblem-new.png"), NULL)); // off - mControls.insert(FavouriteControlOff, new Control(FavouriteControlOff, QString(":icons/favourite-offBig.png"), NULL)); + mControls.insert(FavouriteControlOff, new Control(FavouriteControlOff, QString(":icons/emblem-new-off.png"), NULL)); #ifdef MAEMO // ALARM ICONs // on mControls.insert(AlarmControlOn, - new Control(AlarmControlOn, QString(":icons/alarm-onBig.png"), mControls[FavouriteControlOn])); + new Control(AlarmControlOn, QString(":icons/appointment-soon.png"), mControls[FavouriteControlOn])); // off mControls.insert(AlarmControlOff, - new Control(AlarmControlOff, QString(":icons/alarm-offBig.png"), mControls[FavouriteControlOff])); - - // MAP ICON - mControls.insert(MapControl, - new Control(MapControl, QString(":icons/compassBig.png"), mControls[AlarmControlOn])); -#else - // MAP ICON - mControls.insert(MapControl, - new Control(MapControl, QString(":icons/compassBig.png"), mControls[FavouriteControlOn])); + new Control(AlarmControlOff, QString(":icons/appointment-soon-off.png"), mControls[FavouriteControlOff])); #endif // WARNING ICON mControls.insert(WarningControl, - new Control(WarningControl, QString(":icons/exclamation.png"), mControls[MapControl])); + new Control(WarningControl, QString(":icons/dialog-warning.png"), mControls[FavouriteControlOn])); } bool Delegate::isPointFromRect(const QPoint &aPoint, const QRect &aRect) const