Hello community,
here is the log from the commit of package yast2-control-center for openSUSE:11.4
checked in at Wed Mar 23 01:11:38 CET 2011.
--------
--- old-versions/11.4/all/yast2-control-center/yast2-control-center.changes 2010-10-11 11:19:47.000000000 +0200
+++ 11.4/yast2-control-center/yast2-control-center.changes 2011-02-23 13:08:08.000000000 +0100
@@ -1,0 +2,18 @@
+Wed Feb 23 13:06:01 CET 2011 - tgoettlicher@suse.de
+
+- remember panel width (bnc #613352)
+- 2.20.2
+
+-------------------------------------------------------------------
+Tue Feb 22 17:36:58 CET 2011 - tgoettlicher@suse.de
+
+- fixed bnc #650907: yast2 shrinks module selector item on search
+- 2.20.1
+
+-------------------------------------------------------------------
+Tue Feb 22 14:20:36 CET 2011 - tgoettlicher@suse.de
+
+- bnc #661109: Layout of icons gets mixed after using search
+- 2.20.0
+
+-------------------------------------------------------------------
Package does not exist at destination yet. Using Fallback old-versions/11.4/all/yast2-control-center
Destination is old-versions/11.4/UPDATES/all/yast2-control-center
calling whatdependson for 11.4-i586
Old:
----
yast2-control-center-2.19.3.tar.bz2
New:
----
yast2-control-center-2.20.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-control-center.spec ++++++
--- /var/tmp/diff_new_pack.drfjiG/_old 2011-03-23 01:11:20.000000000 +0100
+++ /var/tmp/diff_new_pack.drfjiG/_new 2011-03-23 01:11:20.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package yast2-control-center (Version 2.19.3)
+# spec file for package yast2-control-center
#
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,11 +18,11 @@
Name: yast2-control-center
-Version: 2.19.3
-Release: 1
+Version: 2.20.2
+Release: 1.<RELEASE2>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-control-center-2.19.3.tar.bz2
+Source0: yast2-control-center-2.20.2.tar.bz2
Group: System/YaST
License: GPLv2+
BuildRequires: libdrm-devel libjpeg-devel libqt4-devel pkgconfig update-desktop-files yast2-devtools
++++++ yast2-control-center-2.19.3.tar.bz2 -> yast2-control-center-2.20.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/VERSION.cmake new/yast2-control-center-2.20.2/VERSION.cmake
--- old/yast2-control-center-2.19.3/VERSION.cmake 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/VERSION.cmake 2011-03-18 10:47:14.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "2")
-SET(VERSION_MINOR "19")
-SET(VERSION_PATCH "3")
+SET(VERSION_MINOR "20")
+SET(VERSION_PATCH "2")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/package/yast2-control-center.changes new/yast2-control-center-2.20.2/package/yast2-control-center.changes
--- old/yast2-control-center-2.19.3/package/yast2-control-center.changes 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/package/yast2-control-center.changes 2011-03-18 10:47:14.000000000 +0100
@@ -1,4 +1,22 @@
-------------------------------------------------------------------
+Wed Feb 23 13:06:01 CET 2011 - tgoettlicher@suse.de
+
+- remember panel width (bnc #613352)
+- 2.20.2
+
+-------------------------------------------------------------------
+Tue Feb 22 17:36:58 CET 2011 - tgoettlicher@suse.de
+
+- fixed bnc #650907: yast2 shrinks module selector item on search
+- 2.20.1
+
+-------------------------------------------------------------------
+Tue Feb 22 14:20:36 CET 2011 - tgoettlicher@suse.de
+
+- bnc #661109: Layout of icons gets mixed after using search
+- 2.20.0
+
+-------------------------------------------------------------------
Mon Oct 11 11:17:55 CEST 2010 - tgoettlicher@suse.de
- Adapted license format
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/CMakeLists.txt new/yast2-control-center-2.20.2/src/CMakeLists.txt
--- old/yast2-control-center-2.19.3/src/CMakeLists.txt 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/CMakeLists.txt 2011-03-18 10:47:14.000000000 +0100
@@ -17,22 +17,15 @@
main.cpp
main_window.cpp
kcategorizedview.cpp
- # menuitem.cpp
kcategorydrawer.cpp
kcategorizedsortfilterproxymodel.cpp
- # kcmodulemodel.cpp
moduleiconitem.cpp
- # kcmoduleinfo.cpp
-
yccmoduleinfoprovider.cpp
-
yqdesktopfilesmodel.cpp
yqmodulegroupsmodel.cpp
yqmodulesmodel.cpp
yqmodulesproxymodel.cpp
-
yqsavelogs.cpp
-
i18n.cpp
)
@@ -43,23 +36,17 @@
SET(yast2-control-center_HDRS
main_window.h
kcategorizedview.h
- # menuitem.h
- # kcmodulemodel.h
kcategorydrawer.h
kcategorizedsortfilterproxymodel.h
moduleiconitem.h
- # kcmoduleinfo.h
kcategorizedview_p.h
-
yccmoduleinfoprovider.h
-
yqdesktopfilesmodel.h
yqmodulegroupsmodel.h
yqmodulesmodel.h
yqmodulesproxymodel.h
-
+ listview.h
yqsavelogs.h
-
i18n.h
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kcategorizedsortfilterproxymodel.cpp new/yast2-control-center-2.20.2/src/kcategorizedsortfilterproxymodel.cpp
--- old/yast2-control-center-2.19.3/src/kcategorizedsortfilterproxymodel.cpp 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/kcategorizedsortfilterproxymodel.cpp 2011-03-18 10:47:14.000000000 +0100
@@ -323,11 +323,13 @@
return ( nameMatches || keywordMatches );
}
-void KCategorizedSortFilterProxyModel::bublisFilterFunction( const QString &s )
+void KCategorizedSortFilterProxyModel::customFilterFunction( const QString &s )
{
d->filterGroups.clear();
setFilterFixedString( s );
d->filterString = s;
+ invalidateFilter();
+ invalidate();
}
QString KCategorizedSortFilterProxyModel::matchingGroupFilterRegexp()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kcategorizedsortfilterproxymodel.h new/yast2-control-center-2.20.2/src/kcategorizedsortfilterproxymodel.h
--- old/yast2-control-center-2.19.3/src/kcategorizedsortfilterproxymodel.h 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/kcategorizedsortfilterproxymodel.h 2011-03-18 10:47:14.000000000 +0100
@@ -116,7 +116,7 @@
*/
static int naturalCompare(const QString &a, const QString &b);
- void bublisFilterFunction( const QString &s );
+ void customFilterFunction( const QString &s );
QString matchingGroupFilterRegexp();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kcategorizedview.cpp new/yast2-control-center-2.20.2/src/kcategorizedview.cpp
--- old/yast2-control-center-2.19.3/src/kcategorizedview.cpp 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/kcategorizedview.cpp 2011-03-18 10:47:14.000000000 +0100
@@ -27,6 +27,7 @@
#include <QScrollBar>
#include <QPaintEvent>
#include <QDebug>
+#include <iostream>
#include "kcategorydrawer.h"
@@ -174,10 +175,12 @@
int itemWidthPlusSeparation = listView->spacing() + itemWidth;
if (!itemWidthPlusSeparation)
itemWidthPlusSeparation++;
+
int elementsPerRow = viewportWidth / itemWidthPlusSeparation;
if (!elementsPerRow)
elementsPerRow++;
+
int column;
int row;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kde/CMakeLists.txt new/yast2-control-center-2.20.2/src/kde/CMakeLists.txt
--- old/yast2-control-center-2.19.3/src/kde/CMakeLists.txt 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/kde/CMakeLists.txt 2011-03-18 10:47:14.000000000 +0100
@@ -10,4 +10,4 @@
########### install files ###############
install( FILES kcmyast.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
-install( FILES emoticons.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
+#install( FILES emoticons.knsrc DESTINATION ${CONFIG_INSTALL_DIR} )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kde/kcmyast.desktop new/yast2-control-center-2.20.2/src/kde/kcmyast.desktop
--- old/yast2-control-center-2.19.3/src/kde/kcmyast.desktop 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/kde/kcmyast.desktop 2011-03-18 10:47:14.000000000 +0100
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Exec=kcmshell4 kcm_yast
+Icon=yast
+Type=Service
+X-DocPath=kcontrol/emoticons/index.html
+
+X-KDE-ServiceTypes=KCModule,KCModuleInit
+X-KDE-Library=kcm_yast
+X-KDE-ParentApp=kcontrol
+X-KDE-System-Settings-Parent-Category=computer-administration
+X-KDE-Weight=110
+
+Name=Advanced Administration (YaST)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/kde/kcmyast.destop new/yast2-control-center-2.20.2/src/kde/kcmyast.destop
--- old/yast2-control-center-2.19.3/src/kde/kcmyast.destop 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/kde/kcmyast.destop 1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Exec=kcmshell4 kcm_yast
-Icon=yast
-Type=Service
-X-DocPath=kcontrol/emoticons/index.html
-
-X-KDE-ServiceTypes=KCModule,KCModuleInit
-X-KDE-Library=kcm_yast
-X-KDE-ParentApp=kcontrol
-X-KDE-System-Settings-Parent-Category=computer-administration
-X-KDE-Weight=110
-
-Name=Advanced Administration (YaST)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/listview.h new/yast2-control-center-2.20.2/src/listview.h
--- old/yast2-control-center-2.19.3/src/listview.h 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/listview.h 2011-03-18 10:47:14.000000000 +0100
@@ -0,0 +1,13 @@
+#include <QtGui>
+
+class ListView : public QListView
+{
+public:
+ ListView() : QListView() { mySize = QSize(42,42); }
+
+ QSize sizeHint() const { return mySize; }
+ void setSizeHint( QSize s ) { mySize = s; }
+
+private:
+ QSize mySize;
+};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/main_window.cpp new/yast2-control-center-2.20.2/src/main_window.cpp
--- old/yast2-control-center-2.19.3/src/main_window.cpp 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/main_window.cpp 2011-03-18 10:47:14.000000000 +0100
@@ -38,12 +38,15 @@
#include "yqmodulesmodel.h"
#include "yqmodulegroupsmodel.h"
+#include "listview.h"
//#include "moduleiconitem.h"
#define ORG_NAME "YaST2"
#define APP_NAME "y2controlcenter-qt"
#define USED_QUEUE_SIZE 5
+#define GROUPSIZE QSize(200,350)
+
/*
Textdomain "control-center"
@@ -67,7 +70,7 @@
}
YQModulesModel *modmodel;
- QListView *groupview;
+ ListView *groupview;
KCategorizedView * modview;
// category proxy model
KCategorizedSortFilterProxyModel * kcsfpm;
@@ -144,9 +147,11 @@
d->gcsfpm->setFilterKeyColumn( 2 );
d->gcsfpm->setFilterRole( Qt::UserRole );
- d->groupview = new QListView( );
+ d->groupview = new ListView( );
+
d->groupview->setModel(d->gcsfpm);
d->groupview->setIconSize( QSize(32,32) );
+ d->groupview->setSizeHint( readGroupViewSize() );
//now pre-select something
d->groupview->setSelectionMode( QAbstractItemView::SingleSelection );
@@ -192,6 +197,8 @@
connect( logSaver, SIGNAL( statusMsg( const QString &)), statusBar(),
SLOT( showMessage( const QString &) ));
+
+// d->groupview->setSizeHint(500,500);
}
void MainWindow::setFullScreen( bool fs )
@@ -309,7 +316,7 @@
void MainWindow::slotFilterChanged()
{
QString stext = d->searchField->text();
- d->kcsfpm->bublisFilterFunction( stext );
+ d->kcsfpm->customFilterFunction( stext );
QString gr_filter = d->kcsfpm->matchingGroupFilterRegexp();
d->gcsfpm->setFilterRegExp ( gr_filter );
@@ -348,6 +355,19 @@
}
+QSize MainWindow::readGroupViewSize()
+{
+ QSettings settings(ORG_NAME, APP_NAME);
+ QSize size;
+
+ settings.beginGroup("GroupView");
+ size = settings.value("Size", GROUPSIZE).toSize();
+ settings.endGroup();
+
+ return size;
+}
+
+
void MainWindow::writeSettings()
{
QSettings settings(ORG_NAME, APP_NAME);
@@ -361,6 +381,11 @@
QStringList used_list( d->recentlyUsed );
settings.setValue( "RecentlyUsed", used_list.join(",") );
settings.endGroup();
+
+ settings.beginGroup("GroupView");
+ settings.setValue("Size", d->groupview->size());
+ settings.endGroup();
+
}
void MainWindow::setWinTitle()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/main_window.h new/yast2-control-center-2.20.2/src/main_window.h
--- old/yast2-control-center-2.19.3/src/main_window.h 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/main_window.h 2011-03-18 10:47:14.000000000 +0100
@@ -62,6 +62,9 @@
void writeSettings();
void readSettings();
void setWinTitle();
+ QSize readGroupViewSize();
+
+ QDockWidget *groupdock;
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.19.3/src/moduleiconitem.cpp new/yast2-control-center-2.20.2/src/moduleiconitem.cpp
--- old/yast2-control-center-2.19.3/src/moduleiconitem.cpp 2010-10-11 11:19:35.000000000 +0200
+++ new/yast2-control-center-2.20.2/src/moduleiconitem.cpp 2011-03-18 10:47:14.000000000 +0100
@@ -20,8 +20,6 @@
*/
#include "moduleiconitem.h"
-//#include