Hello community,
here is the log from the commit of package yast2-control-center for
openSUSE:Factory
checked in at Thu Feb 24 09:04:15 CET 2011.
--------
--- yast2-control-center/yast2-control-center.changes 2011-02-22
17:32:02.000000000 +0100
+++
/mounts/work_src_done/STABLE/yast2-control-center/yast2-control-center.changes
2011-02-23 13:08:08.000000000 +0100
@@ -1,0 +2,6 @@
+Wed Feb 23 13:06:01 CET 2011 - [email protected]
+
+- remember panel width (bnc #613352)
+- 2.20.2
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-control-center-2.20.1.tar.bz2
New:
----
yast2-control-center-2.20.2.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-control-center.spec ++++++
--- /var/tmp/diff_new_pack.4v60DU/_old 2011-02-24 09:01:19.000000000 +0100
+++ /var/tmp/diff_new_pack.4v60DU/_new 2011-02-24 09:01:19.000000000 +0100
@@ -18,11 +18,11 @@
Name: yast2-control-center
-Version: 2.20.1
+Version: 2.20.2
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-control-center-2.20.1.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.20.1.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.20.1/VERSION.cmake
new/yast2-control-center-2.20.2/VERSION.cmake
--- old/yast2-control-center-2.20.1/VERSION.cmake 2011-02-22
17:38:26.000000000 +0100
+++ new/yast2-control-center-2.20.2/VERSION.cmake 2011-02-23
13:07:54.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "20")
-SET(VERSION_PATCH "1")
+SET(VERSION_PATCH "2")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-control-center-2.20.1/package/yast2-control-center.changes
new/yast2-control-center-2.20.2/package/yast2-control-center.changes
--- old/yast2-control-center-2.20.1/package/yast2-control-center.changes
2011-02-22 17:38:26.000000000 +0100
+++ new/yast2-control-center-2.20.2/package/yast2-control-center.changes
2011-02-23 13:07:54.000000000 +0100
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Feb 23 13:06:01 CET 2011 - [email protected]
+
+- remember panel width (bnc #613352)
+- 2.20.2
+
+-------------------------------------------------------------------
Tue Feb 22 17:36:58 CET 2011 - [email protected]
- fixed bnc #650907: yast2 shrinks module selector item on search
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-control-center-2.20.1/src/CMakeLists.txt
new/yast2-control-center-2.20.2/src/CMakeLists.txt
--- old/yast2-control-center-2.20.1/src/CMakeLists.txt 2011-02-22
17:38:26.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/CMakeLists.txt 2011-02-23
13:07:54.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.20.1/src/listview.h
new/yast2-control-center-2.20.2/src/listview.h
--- old/yast2-control-center-2.20.1/src/listview.h 1970-01-01
01:00:00.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/listview.h 2011-02-23
13:07:54.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.20.1/src/main_window.cpp
new/yast2-control-center-2.20.2/src/main_window.cpp
--- old/yast2-control-center-2.20.1/src/main_window.cpp 2011-02-22
17:38:26.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/main_window.cpp 2011-02-23
13:07:54.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 )
@@ -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.20.1/src/main_window.h
new/yast2-control-center-2.20.2/src/main_window.h
--- old/yast2-control-center-2.20.1/src/main_window.h 2011-02-22
17:38:26.000000000 +0100
+++ new/yast2-control-center-2.20.2/src/main_window.h 2011-02-23
13:07:54.000000000 +0100
@@ -62,6 +62,9 @@
void writeSettings();
void readSettings();
void setWinTitle();
+ QSize readGroupViewSize();
+
+ QDockWidget *groupdock;
};
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]