commit yast2-qt for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package yast2-qt for openSUSE:Factory
checked in at Fri Feb 11 01:39:41 CET 2011.
--------
--- yast2-qt/yast2-qt.changes 2011-02-03 17:09:44.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-qt/yast2-qt.changes 2011-02-08 12:19:03.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Feb 8 12:20:04 CET 2011 - tgoettlicher@suse.de
+
+- Added support for currentItem to tree widget
+- V 2.20.1
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-qt-2.20.0.tar.bz2
New:
----
yast2-qt-2.20.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.kCH0mt/_old 2011-02-11 01:39:32.000000000 +0100
+++ /var/tmp/diff_new_pack.kCH0mt/_new 2011-02-11 01:39:32.000000000 +0100
@@ -18,11 +18,11 @@
Name: yast2-qt
-Version: 2.20.0
+Version: 2.20.1
Release: 1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.20.0.tar.bz2
+Source0: yast2-qt-2.20.1.tar.bz2
Group: System/YaST
License: GPLv2+
BuildRequires: docbook-xsl-stylesheets
@@ -41,8 +41,8 @@
Summary: YaST2 - Graphical User Interface
BuildRequires: yast2-devtools >= 2.16.3
#YIconLoader
-BuildRequires: yast2-libyui-devel >= 2.20.0
-Requires: yast2-libyui >= 2.20.0
+BuildRequires: yast2-libyui-devel >= 2.20.1
+Requires: yast2-libyui >= 2.20.1
Requires: yast2_theme >= 2.16.1
Provides: yast2_ui
Provides: y2base:/usr/lib/YaST2/servers/qt
++++++ yast2-qt-2.20.0.tar.bz2 -> yast2-qt-2.20.1.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-qt-2.20.0/VERSION.cmake new/yast2-qt-2.20.1/VERSION.cmake
--- old/yast2-qt-2.20.0/VERSION.cmake 2011-02-03 17:10:51.000000000 +0100
+++ new/yast2-qt-2.20.1/VERSION.cmake 2011-02-08 12:21:25.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "20")
-SET(VERSION_PATCH "0")
+SET(VERSION_PATCH "1")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-qt-2.20.0/package/yast2-qt.changes new/yast2-qt-2.20.1/package/yast2-qt.changes
--- old/yast2-qt-2.20.0/package/yast2-qt.changes 2011-02-03 17:10:51.000000000 +0100
+++ new/yast2-qt-2.20.1/package/yast2-qt.changes 2011-02-08 12:21:25.000000000 +0100
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Tue Feb 8 12:20:04 CET 2011 - tgoettlicher@suse.de
+
+- Added support for currentItem to tree widget
+- V 2.20.1
+
+-------------------------------------------------------------------
Thu Feb 3 17:09:08 CET 2011 - tgoettlicher@suse.de
- Added ValueChanged event to TreeWidget
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-qt-2.20.0/src/YQTree.cc new/yast2-qt-2.20.1/src/YQTree.cc
--- old/yast2-qt-2.20.0/src/YQTree.cc 2011-02-03 17:10:51.000000000 +0100
+++ new/yast2-qt-2.20.1/src/YQTree.cc 2011-02-08 12:21:25.000000000 +0100
@@ -98,6 +98,9 @@
connect( _qt_treeWidget, SIGNAL( itemSelectionChanged () ),
this, SLOT ( slotSelectionChanged () ) );
+ connect( _qt_treeWidget, SIGNAL( itemClicked ( QTreeWidgetItem *, int ) ),
+ this, SLOT ( slotItemClicked ( QTreeWidgetItem *, int ) ) );
+
connect( _qt_treeWidget, SIGNAL( itemChanged ( QTreeWidgetItem *, int ) ),
this, SLOT ( slotItemChanged () ) );
@@ -193,7 +196,7 @@
item->setSelected( true );
if ( hasMultiSelection() )
- item->setCheckState( 0, Qt::Checked );
+ item->setCheckState( 0, Qt::Checked );
if ( item->parent() )
openBranch( (YQTreeItem *) item->parent() );
@@ -259,9 +262,20 @@
{
if ( notify() && ! YQUI::ui()->eventPendingFor( this ) )
YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ValueChanged ) );
+
}
+void YQTree::slotItemClicked( QTreeWidgetItem * item, int column )
+{
+ _qt_treeWidget->setCurrentItem( item );
+
+ if ( notify() && ! YQUI::ui()->eventPendingFor( this ) )
+ YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::SelectionChanged ) );
+}
+
+
+
void YQTree::slotSelectionChanged( )
{
@@ -279,7 +293,7 @@
else
treeItem->origItem()->setSelected( false );
}
- ++it;
+ ++it;
}
}
else
@@ -358,6 +372,26 @@
YQUI::ui()->sendEvent( new YWidgetEvent( this, YEvent::ContextMenuActivated ) );
}
+
+YTreeItem *
+YQTree::currentItem()
+{
+
+ QTreeWidgetItem * currentQItem = _qt_treeWidget->currentItem();
+
+ if ( currentQItem )
+ {
+ YQTreeItem * item = dynamic_cast
participants (1)
-
root@hilbert.suse.de