<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Enrico Ros &#187; amarok</title>
	<atom:link href="http://www.enricoros.com/blog/tag/amarok/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.enricoros.com/blog</link>
	<description>Focused ideas, bleeding edge madness and code recipes.</description>
	<lastBuildDate>Sun, 17 Apr 2011 20:51:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>AddiQted to 4.6</title>
		<link>http://www.enricoros.com/blog/2009/10/addiqted/</link>
		<comments>http://www.enricoros.com/blog/2009/10/addiqted/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 18:15:51 +0000</pubDate>
		<dc:creator>Enrico Ros</dc:creator>
				<category><![CDATA[Computer Graphics]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[amarok]]></category>
		<category><![CDATA[avanguardia]]></category>
		<category><![CDATA[creativity]]></category>
		<category><![CDATA[graphicsview]]></category>
		<category><![CDATA[planetkde]]></category>
		<category><![CDATA[planetqt]]></category>
		<category><![CDATA[qt]]></category>
		<category><![CDATA[qtsoftware]]></category>

		<guid isPermaLink="false">http://www.enricoros.com/blog/?p=354</guid>
		<description><![CDATA[note for planetkde readers: check the original article to see the video! I confess, I&#8217;m addiQted. You obviously think it&#8217;s normal (you&#8217;re not reading this blog by accident, aren&#8217;t you?) but it wasn&#8217;t always like this: I&#8217;ve liked some previous versions, but the upcoming Qt 4.6 really rocks! The Fotowall case As I shown previosly, [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><strong>note for <a href="http://www.planetkde.org">planetkde</a> readers: check the <a href="http://www.enricoros.com/blog/2009/10/addiqted/">original article</a> to see the video!</strong></p>
<p>I confess, I&#8217;m addi<em>Qt</em>ed. You obviously think it&#8217;s normal (you&#8217;re not reading this blog by <em>accident</em>, aren&#8217;t you?) but it wasn&#8217;t always like this: I&#8217;ve liked some previous versions, but the upcoming Qt <strong>4.6</strong> really <a href="http://www.missouri-vacations.com/images/elephant-rocks-body.jpg">rocks</a>!</p>
<h4>The Fotowall case</h4>
<p>As I shown <a href="http://www.enricoros.com/blog/2009/09/cuteness-4-6/">previosly</a>, <a href="http://www.enricoros.com/opensource/fotowall">Fotowall</a> already uses some features of Qt 4.6. How much?<br />
Qt 4.6 is referenced in <em>32 places</em>, for example in snippets like this:</p>
<pre class="brush: cpp; collapse: false; title: ; notranslate">
    // center the path
    QPointF pathCenter = path.boundingRect().center();
    #if QT_VERSION &gt;= 0x040600
        path.translate(-pathCenter);
    #elif QT_VERSION &gt;= 0x040500
        path = QTransform::fromTranslate(-pathCenter.x(), -pathCenter.y()).map(path);
    #else
        QTransform tx;
        tx.translate(-pathCenter.x(), -pathCenter.y());
        path = tx.map(path);
    #endif
</pre>
<p>From simple <a href="http://doc.trolltech.com/4.6-snapshot/qpainterpath.html#translate">path translations</a> to more complex <a href="http://doc.trolltech.com/4.6-snapshot/qmetaproperty.html#notifySignalIndex">property manipulations</a>, everything got better. See this code snipped about extending QGraphicsObject in 4.6 versus 4.5 and 4.4.</p>
<pre class="brush: cpp; collapse: false; title: ; notranslate">
    #if QT_VERSION &gt;= 0x040600
    class AbstractContent : public QGraphicsObject
    #else
    class AbstractContent : public QObject, public QGraphicsItem
    #endif
    {
        Q_OBJECT
    #if QT_VERSION &lt; 0x040600
        Q_PROPERTY(QPointF pos READ pos WRITE setPos)
        Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged)
    #endif
    #if QT_VERSION &lt; 0x040600 &amp;&amp; QT_VERSION &gt;= 0x040500
        Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
    #endif
</pre>
<p><em>Do you feel the pain</em>?</p>
<h4>I Need it</h4>
<p>I need a world with Qt 4.6 only, because:</p>
<ul>
<li>It&#8217;s too much of a <strong>pain to support older versions</strong> in the same codebase</li>
<li>It&#8217;s not even fair, because <strong>non-4.6 users won&#8217;t enjoy the program as it&#8217;s meant to be</strong></li>
<li><strong>I can&#8217;t use A TON of new features</strong> because they&#8217;ll either <strong>simplify too much the code</strong>, or just because they don&#8217;t have a pre-4.6 equivalent</li>
<li>and because I&#8217;d like to finally use
<ul>
<li><a href="http://doc.qt.nokia.com/4.6-snapshot/qgraphicseffect.html">QGraphicsEffect</a> for Fotowall&#8217;s content</li>
<li><a href="http://doc.qt.nokia.com/4.6-snapshot/qvector3d.html">QVector3D</a> to say goodbye to <a href="http://github.com/enricoros/fotowall/raw/master/3rdparty/enricomath.h"><em>enricomath.h</em></a></li>
<li><a href="http://doc.qt.nokia.com/4.6-snapshot/qgesture.html">QGesture</a> for multi-finger interaction</li>
<li><a href="http://doc.qt.nokia.com/4.6-snapshot/qpropertyanimation.html">QPropertyAnimation</a> to its full potential!</li>
</ul>
</li>
</ul>
<h4>More 4.6 TEASING</h4>
<ol>
<li>As <a href="http://www.enricoros.com/blog/2009/09/cuteness-4-6/">you seem to like videos</a>, here is a preview of something we&#8217;re working on for <a href="http://amarok.kde.org">Amarok</a> <img src='http://www.enricoros.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  <span style="text-decoration: underline;">Qt 4.6 only!!</span><br />
<p><a href="http://www.enricoros.com/blog/2009/10/addiqted/"><em>Click here to view the embedded video.</em></a></p></li>
<li>Also, since I&#8217;m <em>soooo much a giver</em>, see the new Fotowall&#8217;s <a href="http://www.enricoros.com/opensource/fotowall/assets/screenshots/teaser-wordcloud-1.png">Word Cloud</a> feature, coming in 0.9 <img src='http://www.enricoros.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
</ol>
<h4>See you  @ Munich</h4>
<p>I&#8217;m packing for the <a href="http://qt.nokia.com/qtdevdays2009">DevDays 2009</a> Munich. See you there <img src='http://www.enricoros.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div class="shr-publisher-354"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.enricoros.com/blog/2009/10/addiqted/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

