[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/k3b/src
From:       Michal Malek <michalm () jabster ! pl>
Date:       2010-01-17 12:08:49
Message-ID: 1263730129.695460.7862.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1076051 by mmalek:

Made Welcome Widget RTL-aware

 M  +8 -7      k3bwelcomewidget.cpp  


--- trunk/extragear/multimedia/k3b/src/k3bwelcomewidget.cpp #1076050:1076051
@@ -28,6 +28,7 @@
 #include <QPaintEvent>
 #include <QResizeEvent>
 #include <QShowEvent>
+#include <QStyle>
 #include <QTextDocument>
 
 #include <KActionCollection>
@@ -184,9 +185,9 @@
     {
         K3b::FlatButton* b = m_buttons.at( i );
 
-        b->setGeometry( QRect( QPoint( leftMargin + (col*(m_buttonSize.width()+4) + \
                2 ),
-                                       topOffset + (row*(m_buttonSize.height()+4)) + \
                2 ),
-                               m_buttonSize ) );
+        QRect rect( QPoint( leftMargin + (col*(m_buttonSize.width()+4) + 2 ),
+                            topOffset + (row*(m_buttonSize.height()+4)) + 2 ), \
m_buttonSize ); +        b->setGeometry( QStyle::visualRect( layoutDirection(), \
contentsRect(), rect ) );  b->show();
 
         col++;
@@ -197,10 +198,10 @@
     }
     if( col > 0 )
         ++row;
-
-    m_buttonMore->setGeometry( QRect( QPoint( leftMargin + 2,
-                                              topOffset + \
                (row*(m_buttonSize.height()+4)) + 2 ),
-                                      QSize( m_cols*(m_buttonSize.width()+4) - 4, \
m_buttonMore->height() ) ) ); +    
+    QRect rect( leftMargin + 2, topOffset + (row*(m_buttonSize.height()+4)) + 2,
+                m_cols*(m_buttonSize.width()+4) - 4, m_buttonMore->height() );
+    m_buttonMore->setGeometry( QStyle::visualRect( layoutDirection(), \
contentsRect(), rect ) );  }
 
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic