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

List:       kde-commits
Subject:    KDE/kdepim/akregator/src
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2009-12-05 20:07:55
Message-ID: 1260043675.056685.11424.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1059099 by osterfeld:

merge from 4.3 branch
------------------------------------------------------------------------
r1001242 | osterfeld | 2009-07-22 20:23:52 +0200 (Wed, 22 Jul 2009) | 6 lines

Map from visual to logical index, otherwise it's always the date column that is \
resized (which is the last (visible) column in the model), even if the user changed \
the visual column order. In that case, the date column got hidden (resized to 1 \
although not the last visual column).

bad news: this resize hack is still needed as workaround, with current 4.5
 
CCMAIL:jjm@keelhaul.me.uk

------------------------------------------------------------------------


 M  +3 -3      articlelistview.cpp  


--- trunk/KDE/kdepim/akregator/src/articlelistview.cpp #1059098:1059099
@@ -272,7 +272,7 @@
     // initialised when QHeaderViewPrivate::resizeSections() is called,
     // doing the resizeSection() here ensures that it has a sensible value.
     // This may not be necessary with Qt 4.5.
-    header()->resizeSection( header()->count() - 1, 1 );
+    header()->resizeSection( header()->logicalIndex( header()->count() - 1 ), 1 );
 
     if ( model() )
         m_feedHeaderState = header()->saveState();
@@ -286,7 +286,7 @@
     if ( m_columnMode == FeedMode )
         return;
 
-    header()->resizeSection( header()->count() - 1, 1 );
+    header()->resizeSection( header()->logicalIndex( header()->count() - 1 ), 1 );
     if ( model() )
         m_groupHeaderState = header()->saveState();
     header()->restoreState( m_feedHeaderState );
@@ -429,7 +429,7 @@
 
     if ( m )
     {
-        header()->resizeSection( header()->count() - 1, 1 );
+        header()->resizeSection( header()->logicalIndex( header()->count() - 1 ), 1 \
                );
         header()->restoreState( groupMode ? m_groupHeaderState : m_feedHeaderState \
);  
         // Ensure at least one column is visible


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

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