Hello community,
here is the log from the commit of package yast2-qt
checked in at Sat Nov 8 20:41:39 CET 2008.
--------
--- yast2-qt/yast2-qt.changes 2008-10-30 20:40:50.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-qt/yast2-qt.changes 2008-11-07 19:19:58.867210000 +0100
@@ -1,0 +2,6 @@
+Fri Nov 7 19:18:25 CET 2008 - sh@suse.de
+
+- Updated lang_fonts from mfabian for bnc #438855 (inst fonts)
+- V 2.17.18
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-qt-2.17.17.tar.bz2
New:
----
yast2-qt-2.17.18.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.Kn8351/_old 2008-11-08 20:41:17.000000000 +0100
+++ /var/tmp/diff_new_pack.Kn8351/_new 2008-11-08 20:41:17.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-qt (Version 2.17.17)
+# spec file for package yast2-qt (Version 2.17.18)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -18,12 +18,12 @@
Name: yast2-qt
-Version: 2.17.17
+Version: 2.17.18
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.17.17.tar.bz2
+Source0: yast2-qt-2.17.18.tar.bz2
BuildRequires: docbook-xsl-stylesheets
BuildRequires: doxygen
BuildRequires: libdrm-devel
@@ -119,6 +119,9 @@
%_includedir/*
%changelog
+* Fri Nov 07 2008 sh@suse.de
+- Updated lang_fonts from mfabian for bnc #438855 (inst fonts)
+- V 2.17.18
* Thu Oct 30 2008 tgoettlicher@suse.de
- Fixed QPainter warnings in YQBusyIndicator
- V 2.17.17
@@ -1158,7 +1161,7 @@
* Tue Mar 16 2004 sh@suse.de
- Minimal approach fix for bug #33584: Show license agreements
- V 2.9.12
-* Sat Mar 13 2004 sh@suse.de
+* Fri Mar 12 2004 sh@suse.de
- Enabled shortcut checking for wizard buttons
- Integrated wizard buttons in YQDialog default button handling
- Adapted to const ref fix in libyui for all widget constructors
@@ -1687,7 +1690,7 @@
- minimize file list for yast2-ui-qt package
* Fri Mar 23 2001 arvin@suse.de
- moved documentation to packages/yast2-ui-qt
-* Mon Mar 19 2001 ro@suse.de
+* Sun Mar 18 2001 ro@suse.de
- fixed neededforbuild
* Mon Mar 12 2001 arvin@suse.de
- Strip plugin in package.
++++++ yast2-qt-2.17.17.tar.bz2 -> yast2-qt-2.17.18.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/package/yast2-qt.changes new/yast2-qt-2.17.18/package/yast2-qt.changes
--- old/yast2-qt-2.17.17/package/yast2-qt.changes 2008-10-30 20:40:20.000000000 +0100
+++ new/yast2-qt-2.17.18/package/yast2-qt.changes 2008-11-07 19:19:38.000000000 +0100
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Fri Nov 7 19:18:25 CET 2008 - sh@suse.de
+
+- Updated lang_fonts from mfabian for bnc #438855 (inst fonts)
+- V 2.17.18
+
+-------------------------------------------------------------------
Thu Oct 30 11:04:26 CET 2008 - tgoettlicher@suse.de
- Fixed QPainter warnings in YQBusyIndicator
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/src/lang_fonts new/yast2-qt-2.17.18/src/lang_fonts
--- old/yast2-qt-2.17.17/src/lang_fonts 2008-10-30 20:40:20.000000000 +0100
+++ new/yast2-qt-2.17.18/src/lang_fonts 2008-11-07 19:19:38.000000000 +0100
@@ -16,21 +16,21 @@
# font = ???
font="Sans Serif"
-font[zh]="Albany AMT,DejaVu Sans,SUSE Sans,FZSongTi,FZMingTiB,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif"
-font[zh_CN]="Albany AMT,DejaVu Sans,SUSE Sans,FZSongTi,FZMingTiB,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif"
-font[zh_SG]="Albany AMT,DejaVu Sans,SUSE Sans,FZSongTi,FZMingTiB,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif"
-font[zh_TW]="Albany AMT,DejaVu Sans,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif"
-font[zh_HK]="Albany AMT,DejaVu Sans,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif"
-font[ja]="Albany AMT,DejaVu Sans,SUSE Sans,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[ko]="Albany AMT,DejaVu Sans,SUSE Sans,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[hi]="Albany AMT,DejaVu Sans,SUSE Sans,Lohit Hindi,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[gu]="Albany AMT,DejaVu Sans,SUSE Sans,Lohit Gujarati,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[km]="Albany AMT,DejaVu Sans,SUSE Sans,Khmer OS System,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[pa]="Albany AMT,DejaVu Sans,SUSE Sans,Lohit Punjabi,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[ta]="Albany AMT,DejaVu Sans,SUSE Sans,TSCu_Paranar,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[si]="Albany AMT,DejaVu Sans,SUSE Sans,LKLUG,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[bn]="Albany AMT,DejaVu Sans,SUSE Sans,Mukti Narrow,Lohit Bengali,Efont Biwidth,Gnu Unifont,Sans Serif"
-font[mr]="Albany AMT,DejaVu Sans,SUSE Sans,Lohit Hindi,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[zh]="Albany AMT,DejaVu Sans,FZSongTi,FZMingTiB,AR PL ShanHeiSun Uni,AR PL SungtiL GB,AR PL Mingti2L Big5,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Gnu Unifont,Efont Biwidth,Sans Serif"
+font[zh_CN]="Albany AMT,DejaVu Sans,FZSongTi,FZMingTiB,AR PL ShanHeiSun Uni,AR PL SungtiL GB,AR PL Mingti2L Big5,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Gnu Unifont,Efont Biwidth,Sans Serif"
+font[zh_SG]="Albany AMT,DejaVu Sans,FZSongTi,FZMingTiB,AR PL ShanHeiSun Uni,AR PL SungtiL GB,AR PL Mingti2L Big5,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Gnu Unifont,Efont Biwidth,Sans Serif"
+font[zh_TW]="Albany AMT,DejaVu Sans,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Gnu Unifont,Efont Biwidth,Sans Serif"
+font[zh_HK]="Albany AMT,DejaVu Sans,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Gnu Unifont,Efont Biwidth,Sans Serif"
+ font[ja]="Albany AMT,DejaVu Sans,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[ko]="Albany AMT,DejaVu Sans,UnDotum,Baekmuk Gulim,Baekmuk Dotum,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[hi]="Albany AMT,DejaVu Sans,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[gu]="Albany AMT,DejaVu Sans,Lohit Gujarati,Lohit Hindi,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[km]="Albany AMT,DejaVu Sans,Khmer OS System,Lohit Hindi,Lohit Gujarati,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[pa]="Albany AMT,DejaVu Sans,Lohit Punjabi,Lohit Hindi,Lohit Gujarati,Khmer OS System,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[ta]="Albany AMT,DejaVu Sans,TSCu_Paranar,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[si]="Albany AMT,DejaVu Sans,LKLUG,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[bn]="Albany AMT,DejaVu Sans,Mukti Narrow,Lohit Bengali,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
+ font[mr]="Albany AMT,DejaVu Sans,Lohit Hindi,Lohit Gujarati,Khmer OS System,Lohit Punjabi,TSCu_Paranar,LKLUG,Mukti Narrow,Lohit Bengali,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,FZMingTiB,FZSongTi,AR PL ShanHeiSun Uni,AR PL Mingti2L Big5,AR PL SungtiL GB,UnDotum,Baekmuk Gulim,Baekmuk Dotum,Efont Biwidth,Gnu Unifont,Sans Serif"
# For debugging
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/src/QY2ListView.cc.bak new/yast2-qt-2.17.18/src/QY2ListView.cc.bak
--- old/yast2-qt-2.17.17/src/QY2ListView.cc.bak 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-qt-2.17.18/src/QY2ListView.cc.bak 2008-11-07 19:19:38.000000000 +0100
@@ -0,0 +1,534 @@
+/*---------------------------------------------------------------------\
+| |
+| __ __ ____ _____ ____ |
+| \ \ / /_ _/ ___|_ _|___ \ |
+| \ V / _` \___ \ | | __) | |
+| | | (_| |___) || | / __/ |
+| |_|\__,_|____/ |_| |_____| |
+| |
+| core system |
+| (C) SuSE GmbH |
+\----------------------------------------------------------------------/
+
+ File: QY2ListView.cc
+
+ Author: Stefan Hundhammer
+
+ This is a pure Qt widget - it can be used independently of YaST2.
+
+/-*/
+
+
+#include <QPixmap>
+#include <QHeaderView>
+#include <QMouseEvent>
+#include "QY2ListView.h"
+
+#define YUILogComponent "qt-pkg"
+#include "YUILog.h"
+
+QY2ListView::QY2ListView( QWidget * parent )
+ : QTreeWidget( parent )
+ , _mousePressedItem(0)
+ , _mousePressedCol( -1 )
+ , _mousePressedButton( Qt::NoButton )
+ , _sortByInsertionSequence( false )
+ , _nextSerial(0)
+ , _mouseButton1PressedInHeader( false )
+ , _finalSizeChangeExpected( false )
+{
+ //FIXME QTreeWidget::setShowToolTips( false );
+ setRootIsDecorated(false);
+
+#if FIXME_TOOLTIP
+ _toolTip = new QY2ListViewToolTip( this );
+#endif
+
+ if ( header() )
+ header()->installEventFilter( this );
+
+#if FIXME
+ connect( this, SIGNAL( columnResized ( int, int, int ) ),
+ this, SLOT ( columnWidthChanged( int, int, int ) ) );
+#endif
+
+ connect( this, SIGNAL( itemExpanded ( QTreeWidgetItem *) ),
+ this, SLOT ( treeExpanded ( QTreeWidgetItem *) ) );
+
+ connect( this, SIGNAL( itemCollapsed ( QTreeWidgetItem *) ),
+ this, SLOT ( treeCollapsed ( QTreeWidgetItem *) ) );
+
+}
+
+
+QY2ListView::~QY2ListView()
+{
+#if FIXME_TOOLTIP
+ if ( _toolTip )
+ delete _toolTip;
+#endif
+}
+
+
+void
+QY2ListView::selectSomething()
+{
+ QTreeWidgetItemIterator it( this );
+
+ while ( *it )
+ {
+ QY2ListViewItem * item = dynamic_cast (*it);
+
+ if ( item && (item->flags() & Qt::ItemIsSelectable) )
+ {
+ item->setSelected(true); // emits signal, too
+ return;
+ }
+
+ ++it;
+ }
+}
+
+
+void
+QY2ListView::clear()
+{
+ QTreeWidget::clear();
+ restoreColumnWidths();
+}
+
+
+void
+QY2ListView::updateItemStates()
+{
+ QTreeWidgetItemIterator it( this );
+
+ while ( *it )
+ {
+ QY2ListViewItem * item = dynamic_cast (*it);
+
+ if ( item )
+ item->updateStatus();
+
+ ++it;
+ }
+}
+
+
+void
+QY2ListView::updateItemData()
+{
+ QTreeWidgetItemIterator it( this );
+
+ while ( *it )
+ {
+ QY2ListViewItem * item = dynamic_cast (*it);
+
+ if ( item )
+ item->updateData();
+
+ ++it;
+ }
+}
+
+
+QString
+QY2ListView::toolTip( QTreeWidgetItem * listViewItem, int column )
+{
+ if ( ! listViewItem )
+ return QString::null;
+
+ QString text;
+
+#if 0
+ text.sprintf( "Column %d:\n%s", column, (const char *) listViewItem->text( column ) );
+#endif
+
+ // Try known item classes
+
+ QY2ListViewItem * item = dynamic_cast (listViewItem);
+
+ if ( item )
+ return item->toolTip( column );
+
+ QY2CheckListItem * checkListItem = dynamic_cast (listViewItem);
+
+ if ( checkListItem )
+ return checkListItem->toolTip( column );
+
+ return QString::null;
+}
+
+
+void
+QY2ListView::saveColumnWidths()
+{
+ _savedColumnWidth.clear();
+ _savedColumnWidth.reserve( columnCount() );
+
+ for ( int i = 0; i < columnCount(); i++ )
+ {
+ _savedColumnWidth.push_back( columnWidth(i) );
+ }
+}
+
+
+void
+QY2ListView::restoreColumnWidths()
+{
+ if ( _savedColumnWidth.size() != (unsigned) columnCount() ) // never manually resized
+ {
+ for ( int i = 0; i < columnCount(); i++ ) // use optimized column width
+ resizeColumnToContents(i);
+ }
+ else // stored settings after manual resizing
+ {
+ for ( int i = 0; i < columnCount(); i++ )
+ {
+ setColumnWidth( i, _savedColumnWidth[ i ] ); // restore saved column width
+ }
+ }
+}
+
+
+void
+QY2ListView::mousePressEvent( QMouseEvent * ev )
+{
+ //y2internal("POS is %d %d", ev->pos().x(), ev->pos().y() );
+ QTreeWidgetItem * item = itemAt( ev->pos() );
+
+
+ if ( item && ( item->flags() & Qt::ItemIsEnabled ) )
+ {
+ _mousePressedItem = item;
+ _mousePressedCol = header()->logicalIndexAt( ev->pos().x() );
+ _mousePressedButton = ev->button();
+ }
+ else // invalidate last click data
+ {
+ _mousePressedItem = 0;
+ _mousePressedCol = -1;
+ _mousePressedButton = -1;
+ }
+
+ // Call base class method
+ QTreeWidget::mousePressEvent( ev );
+}
+
+
+void
+QY2ListView::mouseReleaseEvent( QMouseEvent * ev )
+{
+ //y2internal("REPOS is %d %d", ev->pos().x(), ev->pos().y() );
+ QTreeWidgetItem * item = itemAt( ev->pos() );
+
+ if ( item && ( item->flags() & Qt::ItemIsEnabled ) && item == _mousePressedItem )
+ {
+ int col = header()->logicalIndexAt( ev->pos().x() );
+ //y2internal("COL %d", col);
+ if ( item == _mousePressedItem &&
+ col == _mousePressedCol &&
+ ev->button() == _mousePressedButton )
+ {
+ emit( columnClicked( ev->button(), item, col, ev->globalPos() ) );
+ }
+
+ }
+
+ // invalidate last click data
+
+ _mousePressedItem = 0;
+ _mousePressedCol = -1;
+ _mousePressedButton = Qt::NoButton;
+
+ // Call base class method
+ QTreeWidget::mouseReleaseEvent( ev );
+}
+
+
+void
+QY2ListView::mouseDoubleClickEvent( QMouseEvent * ev )
+{
+ QTreeWidgetItem * item = itemAt( mapToGlobal( ev->pos() ) );
+
+ if ( item && ( item->flags() & Qt::ItemIsEnabled ) )
+ {
+ int col = header()->logicalIndexAt( ev->pos().x() );
+ emit( columnDoubleClicked( ev->button(), (QY2ListViewItem *) item, col, ev->globalPos() ) );
+ }
+
+ // invalidate last click data
+
+ _mousePressedItem = 0;
+ _mousePressedCol = -1;
+ _mousePressedButton = Qt::NoButton;
+
+ // Call base class method
+ QTreeWidget::mouseDoubleClickEvent( ev );
+}
+
+
+void
+QY2ListView::columnWidthChanged( int, int, int )
+{
+ // Workaround for Qt bug:
+ //
+ // QHeader sends a sizeChange() signal for every size change, not only (as
+ // documented) when the user resizes a header column manually. But we only
+ // want to record the column widths if the user explicitly did that, so
+ // ignore those signals if the mouse isn't pressed. There is also one final
+ // sizeChange() signal immediately after the user releases the mouse button.
+
+ if ( _mouseButton1PressedInHeader || _finalSizeChangeExpected )
+ {
+ saveColumnWidths();
+
+ // Consume that one sizeChange() signal that is sent immediately after
+ // the mouse button is released, but make sure to reset that flag only
+ // when appropriate.
+
+ if ( ! _mouseButton1PressedInHeader )
+ _finalSizeChangeExpected = false;
+ }
+}
+
+
+bool
+QY2ListView::eventFilter( QObject * obj, QEvent * event )
+{
+ if ( event && obj && obj == header() )
+ {
+ if ( event->type() == QEvent::MouseButtonPress )
+ {
+ QMouseEvent * mouseEvent = (QMouseEvent *) event;
+
+ if ( mouseEvent->button() == 1 )
+ {
+ _mouseButton1PressedInHeader = true;
+ _finalSizeChangeExpected = false;
+ }
+ }
+ else if ( event->type() == QEvent::MouseButtonRelease )
+ {
+ QMouseEvent * mouseEvent = (QMouseEvent *) event;
+
+ if ( mouseEvent->button() == 1 )
+ {
+ _finalSizeChangeExpected = true;
+ _mouseButton1PressedInHeader = false;
+ }
+ }
+ }
+
+ return QTreeWidget::eventFilter( obj, event );
+}
+
+
+QSize
+QY2ListView::minimumSizeHint() const
+{
+ return QSize( 0, 0 );
+}
+
+
+void
+QY2ListView::setSortByInsertionSequence( bool sortByInsertionSequence )
+{
+ _sortByInsertionSequence = sortByInsertionSequence;
+ //FIXME sort();
+ header()->setClickable( ! _sortByInsertionSequence );
+
+}
+
+#if 0
+class QY2ListViewItemDelegate : public QItemDelegate
+{
+public:
+ QY2ListViewItemDelegate( QTreeWidget *parent ) : QItemDelegate( parent ) {}
+
+ virtual void paint ( QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index ) const
+ {
+ painter->save();
+
+ QY2ListViewItem *item = dynamic_cast(_view->itemFromIndex(index));
+ if ( item )
+ {
+ }
+ painter->restore();
+ }
+};
+#endif
+
+QY2ListViewItem::QY2ListViewItem( QY2ListView * parentListView,
+ const QString & text )
+ : QTreeWidgetItem( parentListView, QStringList(text), 1)
+{
+ _serial = parentListView->nextSerial();
+}
+
+
+QY2ListViewItem::QY2ListViewItem( QTreeWidgetItem * parentItem,
+ const QString & text )
+ : QTreeWidgetItem( parentItem, QStringList(text), 1 )
+{
+ _serial = 0;
+
+ QY2ListView * parentListView = dynamic_cast ( treeWidget() );
+
+ if ( parentListView )
+ _serial = parentListView->nextSerial();
+}
+
+
+QY2ListViewItem::~QY2ListViewItem()
+{
+ // NOP
+}
+
+bool
+QY2ListViewItem::operator< ( const QTreeWidgetItem & otherListViewItem ) const
+{
+ bool sortByInsertionSequence = false;
+ QY2ListView * parentListView = dynamic_cast (treeWidget());
+
+ if ( parentListView )
+ sortByInsertionSequence = parentListView->sortByInsertionSequence();
+
+ if ( sortByInsertionSequence )
+ {
+ const QY2ListViewItem * other = dynamic_cast (&otherListViewItem);
+
+ if ( other )
+ {
+ return ( this->serial() < other->serial() );
+ }
+
+ // Still here? Try the other version: QY2CheckListItem.
+
+ const QY2CheckListItem * otherCheckListItem = dynamic_cast (&otherListViewItem);
+
+ if ( otherCheckListItem )
+ {
+ return ( this->serial() < otherCheckListItem->serial() );
+ }
+
+ }
+
+ return QTreeWidgetItem::operator<(otherListViewItem);
+}
+
+QY2CheckListItem::QY2CheckListItem( QY2ListView * parentListView,
+ const QString & text )
+ : QY2ListViewItem( parentListView, text)
+{
+ setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
+ setCheckState(0, Qt::Unchecked);
+ _serial = parentListView->nextSerial();
+}
+
+
+QY2CheckListItem::QY2CheckListItem( QTreeWidgetItem * parentItem,
+ const QString & text )
+ : QY2ListViewItem( parentItem, text)
+{
+ _serial = 0;
+ QY2ListView * parentListView = dynamic_cast ( treeWidget() );
+
+ setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
+ setCheckState(0, Qt::Unchecked);
+
+ if ( parentListView )
+ _serial = parentListView->nextSerial();
+}
+
+QY2CheckListItem::~QY2CheckListItem()
+{
+ // NOP
+}
+
+
+
+#if FIXME_ITEM_COLORS
+void
+QY2CheckListItem::paintCell( QPainter * painter,
+ const QColorGroup & colorGroup,
+ int column,
+ int width,
+ int alignment )
+{
+ QColorGroup cg = colorGroup;
+
+ if ( _textColor.isValid() ) cg.setColor( QColorGroup::Text, _textColor );
+ if ( _backgroundColor.isValid() ) cg.setColor( QColorGroup::Base, _backgroundColor );
+
+ QTreeWidgetItem::paintCell( painter, cg, column, width, alignment );
+}
+#endif
+
+
+#if FIXME_TOOLTIP
+void
+QY2ListViewToolTip::maybeTip( const QPoint & pos )
+{
+ Q3Header * header = _listView->header();
+ QTreeWidgetItem * item = _listView->itemAt( pos );
+
+ if ( ! item )
+ return;
+
+ int x = _listView->viewportToContents( pos ).x();
+ int column = header->sectionAt(x);
+ int indent = 0;
+
+ if ( column == 0 )
+ {
+ indent = item->depth() + ( _listView->rootIsDecorated() ? 1 : 0 );
+ indent *= _listView->treeStepSize();
+
+ if ( pos.x() < indent )
+ column = -1;
+ }
+
+ QString text = _listView->toolTip( item, column );
+
+ if ( ! text.isEmpty() )
+ {
+ QRect rect( _listView->itemRect( item ) );
+
+ if ( column < 0 )
+ {
+ rect.setX(0);
+ rect.setWidth( indent );
+ }
+ else
+ {
+ QPoint topLeft( header->sectionPos( column ), 0 );
+ topLeft = _listView->contentsToViewport( topLeft );
+ rect.setX( topLeft.x() );
+ rect.setWidth( header->sectionSize( column ) );
+ }
+
+ tip( rect, text );
+ }
+}
+
+#endif
+
+
+void QY2ListView::treeExpanded( QTreeWidgetItem * listViewItem )
+{
+ if ( columnCount() == 1 && header() && header()->isHidden() )
+ resizeColumnToContents( 0 );
+}
+
+
+void QY2ListView::treeCollapsed( QTreeWidgetItem * listViewItem )
+{
+ if ( columnCount() == 1 && header() && header()->isHidden())
+ resizeColumnToContents( 0 );
+}
+
+
+
+
+#include "QY2ListView.moc"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/src/QY2ListView.cc.diff new/yast2-qt-2.17.18/src/QY2ListView.cc.diff
--- old/yast2-qt-2.17.17/src/QY2ListView.cc.diff 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-qt-2.17.18/src/QY2ListView.cc.diff 2008-11-07 19:19:38.000000000 +0100
@@ -0,0 +1,18 @@
+Index: QY2ListView.cc
+===================================================================
+--- QY2ListView.cc (Revision 52905)
++++ QY2ListView.cc (Arbeitskopie)
+@@ -44,8 +44,11 @@
+ _toolTip = new QY2ListViewToolTip( this );
+ #endif
+
+- if ( header() )
+- header()->installEventFilter( this );
++ if ( header() )
++ {
++ header()->installEventFilter( this );
++ header()->setStretchLastSection( false );
++ }
+
+ #if FIXME
+ connect( this, SIGNAL( columnResized ( int, int, int ) ),
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/VERSION.cmake new/yast2-qt-2.17.18/VERSION.cmake
--- old/yast2-qt-2.17.17/VERSION.cmake 2008-10-30 20:40:20.000000000 +0100
+++ new/yast2-qt-2.17.18/VERSION.cmake 2008-11-07 19:19:38.000000000 +0100
@@ -1,3 +1,3 @@
SET(VERSION_MAJOR "2")
SET(VERSION_MINOR "17")
-SET(VERSION_PATCH "17")
+SET(VERSION_PATCH "18")
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.17.17/yast2-qt.spec.in.bak new/yast2-qt-2.17.18/yast2-qt.spec.in.bak
--- old/yast2-qt-2.17.17/yast2-qt.spec.in.bak 2008-10-30 20:40:20.000000000 +0100
+++ new/yast2-qt-2.17.18/yast2-qt.spec.in.bak 1970-01-01 01:00:00.000000000 +0100
@@ -1,77 +0,0 @@
-@HEADERCOMMENT@
-
-
-@HEADER@
-BuildRequires: docbook-xsl-stylesheets
-BuildRequires: doxygen
-BuildRequires: libdrm-devel
-BuildRequires: libjpeg-devel
-BuildRequires: libxcrypt-devel
-BuildRequires: libxslt
-BuildRequires: perl-XML-Writer
-BuildRequires: libqt4-devel
-BuildRequires: sgml-skel
-BuildRequires: update-desktop-files
-BuildRequires: cmake
-
-Summary: -
-BuildRequires: yast2-devtools >= 2.16.3
-BuildRequires: yast2-libyui-devel >= 2.17.13
-Requires: yast2-libyui >= 2.17.13
-Requires: yast2_theme >= 2.16.1
-Provides: yast2_ui
-Provides: y2base:/usr/lib/YaST2/servers/qt
-Provides: y2base:/usr/lib/YaST2/plugin/libpy2qt.so.2
-Provides: yast2-ui-qt yast2-ui-qt-devel
-Obsoletes: yast2-ui-qt yast2-ui-qt-devel
-Provides: y2qt
-Obsoletes: y2qt
-Recommends: yast2-qt-pkg
-
-%description
--
-
-%package devel
-Summary: -
-Group: Development/Libraries
-Requires: yast2-qt = %{version}
-Requires: yast2-libyui-devel
-
-%description devel
--
-
-%prep
-%setup
-
-%build
-mkdir build
-cd build
-export CFLAGS="$RPM_OPT_FLAGS"
-export CXXFLAGS="$CFLAGS"
-cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DLIB=%{_lib} \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_RPATH=1 \
- ..
-make %{?jobs:-j %jobs} VERBOSE=1
-
-%install
-cd build
-make install DESTDIR=$RPM_BUILD_ROOT
-cd ..
-
-%clean
-rm -rf "$RPM_BUILD_ROOT"
-
-
-%files
-%defattr (-, root, root)
-%dir %_libdir/YaST2
-%_libdir/YaST2/plugin/
-%_prefix/share/YaST2/data/lang_fonts
-
-%files devel
-%defattr (-, root, root)
-%_includedir/*
-
-%changelog
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org