FU Logo
  • Startseite
  • Kontakt
  • Impressum
  • Home
  • Listenauswahl
  • Anleitungen

Re: [linux-minidisc] Qt5 compatibility

<-- thread -->
<-- date -->
  • From: Thomas Arp <manner.moe@gmx.de>
  • To: "linux-minidisc@lists.fu-berlin.de" <linux-minidisc@lists.fu-berlin.de>
  • Date: Sun, 15 Dec 2013 22:16:24 +0100
  • Subject: Re: [linux-minidisc] Qt5 compatibility

Hi,

there is one more incompatibility with Qt5 in the QTime class. A QTime object must be initialized before using it, else it will be invalid.
So current source code will not display track length if compiled with Qt5.
I made a small patch fixing this.

Regards

Thomas
>From 554363f46ea51e36694765429271ebb1566cd9a3 Mon Sep 17 00:00:00 2001
From: Thomas Arp <manner.moe@gmx.de>
Date: Sun, 15 Dec 2013 22:03:39 +0100
Subject: [PATCH] for Qt5 support: QTime object must be initialized, else it
 will be invalid and not usable

---
 qhimdtransfer/qhimdmodel.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qhimdtransfer/qhimdmodel.cpp b/qhimdtransfer/qhimdmodel.cpp
index 9d8f4ed..d0d303d 100644
--- a/qhimdtransfer/qhimdmodel.cpp
+++ b/qhimdtransfer/qhimdmodel.cpp
@@ -64,11 +64,11 @@ QString QHiMDTrack::codecname() const
 
 QTime QHiMDTrack::duration() const
 {
-    QTime t;
+    QTime t(0,0,0);
     if(trackslot != 0)
         return t.addSecs(ti.seconds);
     else
-        return t;
+        return QTime();
 }
 
 bool QHiMDTrack::copyprotected() const
-- 
1.8.4.msysgit.0

<-- thread -->
<-- date -->
  • Follow-Ups:
    • Re: [linux-minidisc] Qt5 compatibility
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    • Re: [linux-minidisc] Qt5 compatibility
      • From: Michael Karcher <Michael.Karcher@fu-berlin.de>
  • References:
    • [linux-minidisc] Qt5 compatibility
      • From: Thomas Arp <manner.moe@gmx.de>
    • Re: [linux-minidisc] Qt5 compatibility
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    • Re: [linux-minidisc] Qt5 compatibility
      • From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
  • linux-minidisc - December 2013 - Archives indexes sorted by:
    [ thread ] [ subject ] [ author ] [ date ]
  • Complete archive of the linux-minidisc mailing list
  • More info on this list...

Hilfe

  • FAQ
  • Dienstbeschreibung
  • ZEDAT Beratung
  • postmaster@lists.fu-berlin.de

Service-Navigation

  • Startseite
  • Listenauswahl

Einrichtung Mailingliste

  • ZEDAT-Portal
  • Mailinglisten Portal