Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] r58470 - /trunk/control-center/src/main_window.cpp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Tue, 01 Sep 2009 15:55:27 -0000
  • Message-id: <E1MiVhf-0000LH-W2@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Tue Sep 1 17:55:27 2009
New Revision: 58470

URL: http://svn.opensuse.org/viewcvs/yast?rev=58470&view=rev
Log:
preselect 1st category

Modified:
trunk/control-center/src/main_window.cpp

Modified: trunk/control-center/src/main_window.cpp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/control-center/src/main_window.cpp?rev=58470&r1=58469&r2=58470&view=diff
==============================================================================
--- trunk/control-center/src/main_window.cpp (original)
+++ trunk/control-center/src/main_window.cpp Tue Sep 1 17:55:27 2009
@@ -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();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages