Hello community, here is the log from the commit of package yast2-control-center for openSUSE:Factory checked in at Wed Sep 2 18:43:53 CEST 2009. -------- --- yast2-control-center/yast2-control-center.changes 2009-08-24 15:57:28.000000000 +0200 +++ yast2-control-center/yast2-control-center.changes 2009-09-02 10:44:52.000000000 +0200 @@ -1,0 +2,8 @@ +Tue Sep 1 17:56:45 CEST 2009 - kmachalkova@suse.cz + +- Use more contrast colours for highlighted items in icon view + (bnc#531528) +- Pre-select 1st module category (partly bnc#531529) +- 2.18.11 + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- yast2-control-center-2.18.10.tar.bz2 New: ---- yast2-control-center-2.18.11.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-control-center.spec ++++++ --- /var/tmp/diff_new_pack.JD43I2/_old 2009-09-02 18:43:23.000000000 +0200 +++ /var/tmp/diff_new_pack.JD43I2/_new 2009-09-02 18:43:23.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package yast2-control-center (Version 2.18.10) +# spec file for package yast2-control-center (Version 2.18.11) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,10 +18,10 @@ Name: yast2-control-center -Version: 2.18.10 +Version: 2.18.11 Release: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-control-center-2.18.10.tar.bz2 +Source0: yast2-control-center-2.18.11.tar.bz2 Group: System/YaST License: GPL v2 or later BuildRequires: libdrm-devel libjpeg-devel libqt4-devel pkgconfig update-desktop-files yast2-devtools ++++++ yast2-control-center-2.18.10.tar.bz2 -> yast2-control-center-2.18.11.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.18.10/VERSION new/yast2-control-center-2.18.11/VERSION --- old/yast2-control-center-2.18.10/VERSION 2009-08-24 18:02:21.000000000 +0200 +++ new/yast2-control-center-2.18.11/VERSION 2009-09-02 10:42:30.000000000 +0200 @@ -1 +1 @@ -2.18.10 +2.18.11 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.18.10/VERSION.cmake new/yast2-control-center-2.18.11/VERSION.cmake --- old/yast2-control-center-2.18.10/VERSION.cmake 2009-08-24 18:02:21.000000000 +0200 +++ new/yast2-control-center-2.18.11/VERSION.cmake 2009-09-02 10:42:30.000000000 +0200 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "18") -SET(VERSION_PATCH "10") +SET(VERSION_PATCH "11") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.18.10/package/yast2-control-center.changes new/yast2-control-center-2.18.11/package/yast2-control-center.changes --- old/yast2-control-center-2.18.10/package/yast2-control-center.changes 2009-08-24 18:02:21.000000000 +0200 +++ new/yast2-control-center-2.18.11/package/yast2-control-center.changes 2009-09-02 10:42:30.000000000 +0200 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Sep 1 17:56:45 CEST 2009 - kmachalkova@suse.cz + +- Use more contrast colours for highlighted items in icon view + (bnc#531528) +- Pre-select 1st module category (partly bnc#531529) +- 2.18.11 + +------------------------------------------------------------------- Mon Aug 24 15:51:45 CEST 2009 - kmachalkova@suse.cz - Scroll icon view so that category header is in the topmost diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.18.10/src/main_window.cpp new/yast2-control-center-2.18.11/src/main_window.cpp --- old/yast2-control-center-2.18.10/src/main_window.cpp 2009-08-24 18:02:21.000000000 +0200 +++ new/yast2-control-center-2.18.11/src/main_window.cpp 2009-09-02 10:42:30.000000000 +0200 @@ -147,13 +147,19 @@ d->groupview = new QListView( ); d->groupview->setModel(d->gcsfpm); d->groupview->setIconSize( QSize(32,32) ); + + //now pre-select something + d->groupview->setSelectionMode( QAbstractItemView::SingleSelection ); + QModelIndex selection = d->groupview->model()->index(0,0); + d->groupview->setCurrentIndex( selection ); + d->modview->selectCategory( d->modmodel->groupsModel()->data(selection).toString() ); + leftPanelLayout->addWidget( d->groupview ); groupdock->setWidget( leftPanel ); addDockWidget(Qt::LeftDockWidgetArea, groupdock); - readSettings(); //initActions(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-control-center-2.18.10/src/moduleiconitem.cpp new/yast2-control-center-2.18.11/src/moduleiconitem.cpp --- old/yast2-control-center-2.18.10/src/moduleiconitem.cpp 2009-08-24 18:02:21.000000000 +0200 +++ new/yast2-control-center-2.18.11/src/moduleiconitem.cpp 2009-09-02 10:42:30.000000000 +0200 @@ -59,8 +59,7 @@ style = QApplication::style(); } - - QPen p = painter->pen(); + QFont f = painter->font(); if (selected || mouseover) { if (selected) @@ -73,20 +72,22 @@ QColor hover = option.palette.color(QPalette::Highlight); hover.setAlpha(88); painter->fillPath(roundedRectangle(option.rect, 10), hover); - - QColor inv = option.palette.color( QPalette::WindowText ); - inv.setAlpha(100); - painter->setPen( inv ); + painter->setPen( option.palette.color( QPalette::WindowText ) ); } + QFont newFont = option.font; + newFont.setPointSize( option.font.pointSize() - 2); + QFontMetrics newFm = QFontMetrics( newFont ); - QString descr = option.fontMetrics.elidedText( index.data( YQModulesModel::GenericNameRole ).toString(), Qt::ElideRight, option.rect.width() ); + QString descr = newFm.elidedText( index.data( YQModulesModel::GenericNameRole ).toString(), Qt::ElideRight, option.rect.width() ); QRect tr = option.rect; tr.setTop( tr.top() + decorationSize.height() + 2*style->pixelMetric( QStyle::PM_FocusFrameVMargin) ); + tr.setLeft( tr.left() + 2*style->pixelMetric( QStyle::PM_FocusFrameHMargin )); + + painter->setFont( newFont); painter->drawText( tr, Qt::AlignLeft | Qt::TextSingleLine, descr ); } - painter->setPen( p ); - + painter->setFont( f ); // if( index.data( Qt::UserRole ).toInt() == KIconLoader::DisabledState ) { // painter->setPen( option.palette.color( QPalette::Disabled, QPalette::Text ) ); // } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org