Bug 378477

Summary: Can't see the star icon in the column view and in the entry editor
Product: [Applications] tellico Reporter: fcremonese7
Component: generalAssignee: Robby Stephenson <robby>
Status: RESOLVED FIXED    
Severity: minor CC: bugs-kde.akki42, goupilcom
Priority: NOR    
Version: 3.0.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 3.1
Attachments: screen of the editor and the entries
A sreenshot of the interface. See the stars on the xml preview AND NOT on the interface
A screenshot of the same database with Tellico downgraded to 2.3.9
Checkmark icon not present in the column view

Description fcremonese7 2017-04-05 19:42:14 UTC
Created attachment 104895 [details]
screen of the editor and the entries

I don't know why, but when I upgraded tellico at the 3.0.1 version the rating star disappeared, even from the editor. Before the upgrade i used the 2.3.9 version and everything was ok. At the moment i'm working the Xubuntu 16.04 release.
Comment 1 fcremonese7 2017-04-05 19:46:55 UTC
i've see that the current of the screen is italian, sorry. Anyway i think that you can guess that "rating" is translated in "valutazione personale"
Comment 2 Robby Stephenson 2017-04-09 00:46:30 UTC
I can't confirm at the moment - everything shows up properly for me. I wonder if there's a problem with the Ubuntu packaging possibly? I'm not sure where the default installation on Ubuntu is. Can you check to see if there's a /usr/share/tellico/pics/star_on.png file, for example?

If you run from the command line, is there any output that might seem to be relevant?
Comment 3 Christoph Feck 2017-04-21 00:56:57 UTC
If you can provide the information requested in comment #2, please add it.
Comment 4 fcremonese7 2017-04-22 12:20:08 UTC
Sorry if I reply this late, by the way yeah, the star_on.png file is present, and i noticed later that is present even in the entry view. About the packages I don't know honestly, I remember that I tried twice to repair them and nothing changed,then, regarding what you wrote about run it from the command line, at the moment I'm using the 2.3.9 version to adjust some of the record I made, when i finish that I'll upgrade to 3.0.1 and I'll try that.
Comment 5 goupilcom@gmail.com 2017-06-04 15:45:01 UTC
(In reply to Robby Stephenson from comment #2)
> I can't confirm at the moment - everything shows up properly for me. I
> wonder if there's a problem with the Ubuntu packaging possibly? I'm not sure
> where the default installation on Ubuntu is. Can you check to see if there's
> a /usr/share/tellico/pics/star_on.png file, for example?
> 
> If you run from the command line, is there any output that might seem to be
> relevant?

I'm on Debian Sid. I have had the same problem with Tellico v.3.0.2, and the graphics files (star_on.png, stars1.png, ...) were present in /usr/share/tellico/pics/. The stars appears in the XML file rendering but not on the interface. Finaly i downgrade to Tellico 2.3.9 because Tellico v.3.0.2 can't write without crashing.
Comment 6 goupilcom@gmail.com 2017-06-04 17:45:44 UTC
Created attachment 105915 [details]
A sreenshot of the interface. See the stars on the xml preview AND NOT on the interface

On the xml preview you can see "Quality (record)" and "Quality (game)" with 5 stars, and on the interface in the same entry field no star is displayed.
Comment 7 Robby Stephenson 2017-06-15 02:00:56 UTC
Thanks for the screenshots. Looking at them, there are other missing icons in the UI., too, it appears. The Filters tab should have an icon, the Nouveau button should have one, etc...checkmark icons probably don't shown in the column view, either, right?

That symptom gives me a few pointers to go check...
Comment 8 goupilcom@gmail.com 2017-06-17 07:57:14 UTC
Created attachment 106134 [details]
A screenshot of the same database with Tellico downgraded to 2.3.9

A screenshot of the same database (under the same MATE window manager) with Tellico downgraded to 2.3.9.
I only change the pixmap by others i had found on internet (for the stars & checkmark.png, in /usr/share/kde4/apps/tellico/pics), and in the appearance of the windows manager for the scroll bars.
Comment 9 goupilcom@gmail.com 2017-06-17 10:28:41 UTC
Created attachment 106136 [details]
Checkmark icon not present in the column view

Checkmark icon not present in the column view : See the "Daedalus - No Escape" entry ("Commercial" is checked, and the "Check" icon isn't displayed in the column view above.
Comment 10 goupilcom@gmail.com 2017-06-17 10:39:58 UTC
(In reply to Robby Stephenson from comment #7)
> Thanks for the screenshots. Looking at them, there are other missing icons
> in the UI., too, it appears. The Filters tab should have an icon, the
> Nouveau button should have one, etc...checkmark icons probably don't shown
> in the column view, either, right?
> 
> That symptom gives me a few pointers to go check...

Thanks for you attention. I confirm your observations (see the screenshots above) : checkmark icons don't shown in the column view.

To avoid a possible packaging problem, i compile Tellico 3.0.2 myself and install it (# make install). I have the same problem : no icons on its interface, the icons are present on /usr/share/tellico/pics, and Tellico crash when i save the database.
Comment 11 Robby Stephenson 2017-06-22 02:18:25 UTC
Git commit 94376ac3c82942a26c2cf748a5072278c57e6405 by Robby Stephenson.
Committed on 22/06/2017 at 02:16.
Pushed by rstephenson into branch 'master'.

Add a QRC file for the internal icons

Use the internal resources icons when appropriate. Otherwise, check for
icons from the theme and fall back to internal ones when needed.

I can't verify this, but I expect it to fix Bug 378477.

Also scrub icons from several data sources.
FIXED-IN: 3.1

A  +51   -0    icons/icons.qrc
M  +4    -0    src/CMakeLists.txt
M  +2    -1    src/borrowerdialog.cpp
M  +1    -1    src/configdialog.cpp
M  +2    -2    src/entryeditdialog.cpp
M  +1    -1    src/fetch/amazonfetcher.cpp
M  +1    -1    src/fetch/bibliosharefetcher.cpp
M  +1    -1    src/fetch/bibsonomyfetcher.cpp
M  +1    -1    src/fetch/boardgamegeekfetcher.cpp
M  +1    -1    src/fetch/hathitrustfetcher.cpp
M  +1    -1    src/fetch/ibsfetcher.cpp
M  +1    -1    src/fetch/imdbfetcher.cpp
M  +1    -1    src/fetch/moviemeterfetcher.cpp
M  +1    -1    src/fetch/musicbrainzfetcher.cpp
M  +1    -1    src/fetch/openlibraryfetcher.cpp
M  +1    -1    src/fetch/videogamegeekfetcher.cpp
M  +1    -1    src/fetch/z3950fetcher.cpp
M  +4    -3    src/fetchdialog.cpp
M  +4    -4    src/groupview.cpp
M  +2    -2    src/gui/collectiontypecombo.cpp
M  +2    -2    src/gui/ratingwidget.cpp
M  +1    -1    src/gui/starrating.cpp
M  +3    -1    src/loandialog.cpp
M  +3    -1    src/main.cpp
M  +34   -22   src/mainwindow.cpp
M  +1    -1    src/models/borrowermodel.cpp
M  +2    -2    src/models/entrygroupmodel.cpp
M  +3    -3    src/models/entrymodel.cpp
M  +1    -1    src/models/filtermodel.cpp
M  +2    -2    src/utils/tellico_utils.cpp

https://commits.kde.org/tellico/94376ac3c82942a26c2cf748a5072278c57e6405
Comment 12 goupilcom@gmail.com 2017-06-23 19:37:28 UTC
(In reply to Robby Stephenson from comment #11)
> Git commit 94376ac3c82942a26c2cf748a5072278c57e6405 by Robby Stephenson.
> Committed on 22/06/2017 at 02:16.
> Pushed by rstephenson into branch 'master'.
> 
> Add a QRC file for the internal icons
> 
> Use the internal resources icons when appropriate. Otherwise, check for
> icons from the theme and fall back to internal ones when needed.
> 
> I can't verify this, but I expect it to fix Bug 378477.
> 
> Also scrub icons from several data sources.
> FIXED-IN: 3.1
> 
> A  +51   -0    icons/icons.qrc
> M  +4    -0    src/CMakeLists.txt
> M  +2    -1    src/borrowerdialog.cpp
> M  +1    -1    src/configdialog.cpp
> M  +2    -2    src/entryeditdialog.cpp
> M  +1    -1    src/fetch/amazonfetcher.cpp
> M  +1    -1    src/fetch/bibliosharefetcher.cpp
> M  +1    -1    src/fetch/bibsonomyfetcher.cpp
> M  +1    -1    src/fetch/boardgamegeekfetcher.cpp
> M  +1    -1    src/fetch/hathitrustfetcher.cpp
> M  +1    -1    src/fetch/ibsfetcher.cpp
> M  +1    -1    src/fetch/imdbfetcher.cpp
> M  +1    -1    src/fetch/moviemeterfetcher.cpp
> M  +1    -1    src/fetch/musicbrainzfetcher.cpp
> M  +1    -1    src/fetch/openlibraryfetcher.cpp
> M  +1    -1    src/fetch/videogamegeekfetcher.cpp
> M  +1    -1    src/fetch/z3950fetcher.cpp
> M  +4    -3    src/fetchdialog.cpp
> M  +4    -4    src/groupview.cpp
> M  +2    -2    src/gui/collectiontypecombo.cpp
> M  +2    -2    src/gui/ratingwidget.cpp
> M  +1    -1    src/gui/starrating.cpp
> M  +3    -1    src/loandialog.cpp
> M  +3    -1    src/main.cpp
> M  +34   -22   src/mainwindow.cpp
> M  +1    -1    src/models/borrowermodel.cpp
> M  +2    -2    src/models/entrygroupmodel.cpp
> M  +3    -3    src/models/entrymodel.cpp
> M  +1    -1    src/models/filtermodel.cpp
> M  +2    -2    src/utils/tellico_utils.cpp
> 
> https://commits.kde.org/tellico/94376ac3c82942a26c2cf748a5072278c57e6405

Thank you for your great job. I will test this new version.
Comment 13 Christoph Feck 2017-06-26 15:27:51 UTC
Instead of adding code to all applications, we rely on platform tools to set correct paths for icon themes.

For Plasma, this is part of the plasma-integration and frameworks-integration plugins.

If you use KDE applications outside of the Plasma environment, please use "qt5ct". This comes with both a platform plugin, as well as a configuration tool to change Qt5 fonts, icons, and other UI settings.
Comment 14 Christoph Feck 2017-06-26 15:32:24 UTC
You are of course free to use hardcoded icons from QRC resources, but users of KDE applications usually expect that these follow the locale icon theme configuration.

For more information about "qt5ct", please see https://wiki.archlinux.org/index.php/qt#Configuration_of_Qt5_apps_under_environments_other_than_KDE_Plasma and https://sourceforge.net/projects/qt5ct/
Comment 15 Robby Stephenson 2017-06-27 01:34:05 UTC
If I understand you correctly, I think I'm following the spirit of what you're saying. For icons which could be expected to be in the icon theme, I use QIcon::fromTheme() with the method call that falls back to a resource icon. For example, QIcon::fromTheme("checkmark", QIcon(":/icons/checkmark")).

For icons which I specifically don't want to be themed, then I just use the resource call. An example there would be wine.png which represents a wine bottle in Tellico. Many themes could reasonably be expected to have an application icon for WINE instead so I wouldn't want to use the theme icon in that case.

For whatever reason, the two users who reported the bug did not see the icons as installed. I could not reproduce the problem since they showed up just fine for me. I don't know if it is a Debian/Ubuntu issue or something else. If indeed this fixes the problem for those users, seems like a win/win to me.
Comment 16 Robby Stephenson 2017-09-09 19:27:40 UTC
*** Bug 384528 has been marked as a duplicate of this bug. ***