Menu

#726 In the playlist do not change the width of the columns "Name" and "Duration".

stable
closed-fixed
nobody
3
2016-06-17
2016-01-20
No

After the transition to Qt5 in the playlist do not change the width of the columns "Name" and "Duration", but an opportunity to change the height of each line in the playlist, which in principle is not necessary.
Most likely it's some bug in the code, where instead of the width changes the height.
Opensuse Tumbleweed x86_64 (Packman).

Discussion

  • Ricardo Villalba

    What version of Qt 5 are you using?

    I've just tested with Qt 5.3 and I can change the width of the column "name" (the width of the "duration" column is fixed in both Qt 4 and 5).

     
    • Илья Индиго

      The latest stable Qt 5.5.1. Most likely repositories Packman openSUSE
      Tumbleweed something broke.

       
  • Илья Индиго

    The latest stable Qt 5.5.1. Most likely repositories Packman openSUSE Tumbleweed something broke.

     
  • Илья Индиго

    No, it is true it is a bug, I just do not properly describe it.
    If the playlist to build into the right side of the SMPlayer, in the Qt4 have the opportunity to change the width of the playlist by moving the mouse on the border between the field of player and the playlist, hold down the mouse button it and moving the border to the left or right to change the width of the column "Name" from the playlist.
    In Qt5 are compiled in such a possibility has not, even when you move the mouse cursor to the border is not changed.
    Details shown in the screenshots.

     
  • Ricardo Villalba

    Ok, now I can reproduce the problem.
    However I couldn't find yet what is causing the problem.

     
  • Илья Индиго

    With the release of MPlayer 16.6.0 to this still added that now Qt5 not work correctly with the color theme QtCurve.

     
  • Ricardo Villalba

    The problem with the playlist is fixed in svn r7975.

     
  • Илья Индиго

    I get the code from svn am making changes and compile the following commands.

    n=smplayer && cd /tmp && svn co https://subversion.assembla.com/svn/$n/$n/trunk $n && cd ./$n && vim Makefile
    2: PREFIX=/usr
    20: QMAKE=qmake-qt5
    21: LRELEASE=lrelease-qt5
    33: KDE_INCLUDE_PATH=`kde4-config --prefix`/include/
    34: KDE_LIB_PATH=`kde4-config --prefix`/lib64/
    n=smplayer && make -j4 && sudo make install && cd .. && rm -rf $n
    

    And compile fails with error error.

    .....
    /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtCore/5.6.0 -isystem /usr/include/qt5/QtCore/5.6.0/QtCore -isystem /usr/include/qt5/QtCore -I.moc -I.ui -I/usr/lib64/qt5/mkspecs/linux-g++ -o .obj/globalshortcuts.o globalshortcuts/globalshortcuts.cpp
    In file included from globalshortcuts/globalshortcuts.cpp:123:0:
    globalshortcuts/globalshortcuts_linux.cpp:21:42: Fatal error: qpa/qplatformnativeinterface.h: No file or directory
    compile fails.
    make[1]: *** [Makefile:3636: .obj/globalshortcuts.o] Error 1
    make[1]: *** Ожидание завершения заданий…
    make[1]: exit from directory «/tmp/smplayer/src»
    make: *** [Makefile:44: src/smplayer] Error 2
    

    zypper se -i *qt*devel

    Загрузка данных о репозиториях...
    Чтение установленных пакетов...
    
    С | Имя                         | Заключение                                     | Тип
    --+-----------------------------+------------------------------------------------+------
    i | libQt5Concurrent-devel      | Qt 5 Concurrent Library - development files    | пакет
    i | libQt5Core-devel            | Qt 5 Core Library - development files          | пакет
    i | libQt5DBus-devel            | Qt 5 DBus Library - development files          | пакет
    i | libQt5Gui-devel             | Qt 5 GUI related libraries - development files | пакет
    i | libQt5Network-devel         | Qt 5 Network Library - development files       | пакет
    i | libQt5OpenGL-devel          | Qt 5 OpenGL Library - development files        | пакет
    i | libQt5PlatformHeaders-devel | Qt 5 PlatformHeaders                           | пакет
    i | libQt5PrintSupport-devel    | Qt 5 Print Support Library - development files | пакет
    i | libQt5Sql-devel             | Qt 5 SQL related libraries - development files | пакет
    i | libQt5Test-devel            | Qt 5 Test Library - development files          | пакет
    i | libQt5Widgets-devel         | Qt 5 Widgets Library - development files       | пакет
    i | libQt5Xml-devel             | Qt 5 Xml Library - development files           | пакет
    i | libQtWebKit-devel           | Файлы разработки для qtwebkit                  | пакет
    i | libqt4-devel                | Набор разработчика Qt                          | пакет
    i | libqt5-linguist-devel       | Qt 5 Linguist Tools - development files        | пакет
    i | libqt5-qtbase-common-devel  | Qt 5 Core Development Binaries                 | пакет
    i | libqt5-qtbase-devel         | Набор разработчика Qt                          | пакет
    i | libqt5-qtdeclarative-devel  | Набор разработчика Qt                          | пакет
    i | libqt5-qtmultimedia-devel   | Набор разработчика Qt                          | пакет
    i | libqt5-qtquick1-devel       | Набор разработчика Qt                          | пакет
    i | libqt5-qtscript-devel       | Набор разработчика Qt                          | пакет
    
     

    Last edit: Илья Индиго 2016-06-16
  • Ricardo Villalba

    You need to install the package that provides the file qpa/qplatformnativeinterface.h. I think in opensuse is the package libQt5Gui-private-headers-devel

     
  • Илья Индиго

    Thank you. Yes, this package would be installed and everything is now successfully compiled and width of the playlist changes.
    This bug can be considered closed, but the bug 756 was still relevant.

     
  • Ricardo Villalba

    • status: open --> closed-fixed
     

Log in to post a comment.