From: Karai C. <ck...@us...> - 2004-04-18 19:26:09
|
Update of /cvsroot/krusader/krusader_kde3/krusader/Panel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15329/krusader_kde3/krusader/Panel Modified Files: krdetailedview.cpp krdetailedview.h listpanel.cpp listpanel.h Log Message: FIXED: panel swapping corrupts ctrl+arrow and alt+arrow Index: listpanel.h =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/listpanel.h,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** listpanel.h 4 Mar 2004 07:27:02 -0000 1.17 --- listpanel.h 18 Apr 2004 19:26:00 -0000 1.18 *************** *** 74,78 **** // constructor create the panel, but DOESN'T fill it with data, use start() ! ListPanel(QWidget *parent, bool left, const char *name=0); ~ListPanel(); void start(QString path = QString::null); --- 74,78 ---- // constructor create the panel, but DOESN'T fill it with data, use start() ! ListPanel(QWidget *parent, bool &left, const char *name=0); ~ListPanel(); void start(QString path = QString::null); *************** *** 143,147 **** private: ! bool _left; }; --- 143,147 ---- private: ! bool &_left; }; Index: krdetailedview.h =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/krdetailedview.h,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** krdetailedview.h 29 Mar 2004 21:00:45 -0000 1.24 --- krdetailedview.h 18 Apr 2004 19:25:59 -0000 1.25 *************** *** 57,61 **** Permissions = 0x5, KrPermissions = 0x6, Owner = 0x7, Group = 0x8, Unused = 0x9 }; ! KrDetailedView( QWidget *parent, bool left, KConfig *cfg = krConfig, const char *name = 0 ); virtual ~KrDetailedView(); virtual int column( ColumnType type ); --- 57,61 ---- Permissions = 0x5, KrPermissions = 0x6, Owner = 0x7, Group = 0x8, Unused = 0x9 }; ! KrDetailedView( QWidget *parent, bool &left, KConfig *cfg = krConfig, const char *name = 0 ); virtual ~KrDetailedView(); virtual int column( ColumnType type ); *************** *** 131,135 **** KrViewItem *_currDragItem; QString _nameInKConfig; ! bool _left; QKeyEvent * delayedQuickSearchEvent; }; --- 131,135 ---- KrViewItem *_currDragItem; QString _nameInKConfig; ! bool &_left; QKeyEvent * delayedQuickSearchEvent; }; Index: listpanel.cpp =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/listpanel.cpp,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** listpanel.cpp 18 Apr 2004 11:47:23 -0000 1.59 --- listpanel.cpp 18 Apr 2004 19:25:59 -0000 1.60 *************** *** 89,93 **** // The list panel constructor // ///////////////////////////////////////////////////// ! ListPanel::ListPanel( QWidget *parent, bool left, const char *name ) : QWidget( parent, name ), colorMask( 255 ), compareMode( false ), currDragItem( 0 ), statsAgent( 0 ), _left( left ), quickSearch(0), cdRootButton( 0 ),cdUpButton( 0 ) --- 89,93 ---- // The list panel constructor // ///////////////////////////////////////////////////// ! ListPanel::ListPanel( QWidget *parent, bool &left, const char *name ) : QWidget( parent, name ), colorMask( 255 ), compareMode( false ), currDragItem( 0 ), statsAgent( 0 ), _left( left ), quickSearch(0), cdRootButton( 0 ),cdUpButton( 0 ) Index: krdetailedview.cpp =================================================================== RCS file: /cvsroot/krusader/krusader_kde3/krusader/Panel/krdetailedview.cpp,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -d -r1.71 -r1.72 *** krdetailedview.cpp 14 Apr 2004 12:18:43 -0000 1.71 --- krdetailedview.cpp 18 Apr 2004 19:25:55 -0000 1.72 *************** *** 77,81 **** QString KrDetailedView::ColumnName[ MAX_COLUMNS ]; ! KrDetailedView::KrDetailedView( QWidget *parent, bool left, KConfig *cfg, const char *name ) : KListView( parent, name ), KrView( cfg ), _focused( false ), _currDragItem( 0L ), _nameInKConfig( QString( "KrDetailedView" ) + QString( ( left ? "Left" : "Right" ) ) ), _left( left ), delayedQuickSearchEvent( 0 ) { --- 77,81 ---- QString KrDetailedView::ColumnName[ MAX_COLUMNS ]; ! KrDetailedView::KrDetailedView( QWidget *parent, bool &left, KConfig *cfg, const char *name ) : KListView( parent, name ), KrView( cfg ), _focused( false ), _currDragItem( 0L ), _nameInKConfig( QString( "KrDetailedView" ) + QString( ( left ? "Left" : "Right" ) ) ), _left( left ), delayedQuickSearchEvent( 0 ) { |