Renamed favourite-on.png to favourite-strong.png and favourite-off.png to favourite...
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 20 Jan 2017 22:45:56 +0000 (23:45 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 20 Jan 2017 22:45:56 +0000 (23:45 +0100)
src/gui/eventdialog.cpp
src/gui/eventdialog.ui
src/icons.qrc
src/icons/favourite-no.png [new file with mode: 0644]
src/icons/favourite-off.png [deleted file]
src/icons/favourite-on.png [deleted file]
src/icons/favourite-strong.png [new file with mode: 0644]
src/mvc/delegate.cpp

index dce05bf..7d2cf6c 100644 (file)
@@ -149,9 +149,9 @@ void EventDialog::alarmClicked()
 
 void EventDialog::updateFavouriteButton(const Event& event) {
     switch (event.favourite()) {
-        case Favourite_no: favouriteButton->setIcon(QIcon(":/icons/favourite-off.png")); break;
+        case Favourite_no: favouriteButton->setIcon(QIcon(":/icons/favourite-no.png")); break;
         case Favourite_weak: favouriteButton->setIcon(QIcon(":/icons/favourite-weak.png")); break;
-        case Favourite_strong: favouriteButton->setIcon(QIcon(":/icons/favourite-on.png")); break;
+        case Favourite_strong: favouriteButton->setIcon(QIcon(":/icons/favourite-strong.png")); break;
     }
 }
 
index 73e0f90..b55c879 100644 (file)
@@ -59,7 +59,7 @@
        </property>
        <property name="icon">
         <iconset resource="../icons.qrc">
-         <normaloff>:/icons/favourite-off.png</normaloff>:/icons/favourite-off.png</iconset>
+         <normaloff>:/icons/favourite-no.png</normaloff>:/icons/favourite-no.png</iconset>
        </property>
        <property name="iconSize">
         <size>
index 563300e..dacc91f 100644 (file)
@@ -8,9 +8,9 @@
         <file>icons/dialog-warning.png</file>
         <file>icons/search.png</file>
         <file>icons/today.png</file>
-        <file>icons/favourite-off.png</file>
+        <file>icons/favourite-no.png</file>
         <file>icons/favourite-weak.png</file>
-        <file>icons/favourite-on.png</file>
+        <file>icons/favourite-strong.png</file>
         <file>icons/alarm-on.png</file>
         <file>icons/alarm-off.png</file>
     </qresource>
diff --git a/src/icons/favourite-no.png b/src/icons/favourite-no.png
new file mode 100644 (file)
index 0000000..62ec510
Binary files /dev/null and b/src/icons/favourite-no.png differ
diff --git a/src/icons/favourite-off.png b/src/icons/favourite-off.png
deleted file mode 100644 (file)
index 62ec510..0000000
Binary files a/src/icons/favourite-off.png and /dev/null differ
diff --git a/src/icons/favourite-on.png b/src/icons/favourite-on.png
deleted file mode 100644 (file)
index fed3ffc..0000000
Binary files a/src/icons/favourite-on.png and /dev/null differ
diff --git a/src/icons/favourite-strong.png b/src/icons/favourite-strong.png
new file mode 100644 (file)
index 0000000..fed3ffc
Binary files /dev/null and b/src/icons/favourite-strong.png differ
index c2dd111..66f473f 100644 (file)
@@ -330,11 +330,11 @@ void Delegate::defineControls()
 {
     // FAVOURITE ICONs
     // strong
-    mControls.insert(FavouriteControlStrong, new Control(FavouriteControlStrong, QString(":icons/favourite-on.png"), NULL));
+    mControls.insert(FavouriteControlStrong, new Control(FavouriteControlStrong, QString(":icons/favourite-strong.png"), NULL));
     // weak
     mControls.insert(FavouriteControlWeak, new Control(FavouriteControlWeak, QString(":icons/favourite-weak.png"), NULL));
     // no
-    mControls.insert(FavouriteControlNo, new Control(FavouriteControlNo, QString(":icons/favourite-off.png"), NULL));
+    mControls.insert(FavouriteControlNo, new Control(FavouriteControlNo, QString(":icons/favourite-no.png"), NULL));
 
     // ALARM ICONs
     // on