Updates to accommodate tdelibs PR 163 commit 7cd3caffa5.

Signed-off-by: Vincent Reher <tde@4reher.org>
issue/270/tdebase
Vincent Reher 2 years ago
parent f9729e80f5
commit 1ecedf73b2

@ -273,8 +273,7 @@ KonqListView::KonqListView( TQWidget *parentWidget, TQObject *parent, const char
m_sortColumnIndexPrimary = 0; m_sortColumnIndexPrimary = 0;
m_sortColumnIndexAlternate = 1; m_sortColumnIndexAlternate = 1;
TDEIO::HiddenFileMatcher* matcher = TDEIO::HiddenFileMatcher::getInstance(); m_pListView->m_dirLister->matcher->setCriteria( m_pProps->hiddenFileSpec() );
matcher->setCriteria( m_pProps->hiddenFileSpec() );
setupActions(); setupActions();
@ -485,14 +484,27 @@ void KonqListView::slotChangeHiddenFileMatcher()
/* /*
Since the user might be providing *updated* hidden file match properties, Since the user might be providing *updated* hidden file match properties,
we first need to make sure that we are showing (not hiding) "hidden" files we first need to make sure that we are showing (not hiding) "hidden" files
as defined by the *current*. Otherwise there can be a lot of confusion! as defined by the *current* match properties. Otherwise there can be
a lot of confusion!
*/ */
m_paShowDot->setChecked( TRUE ); m_paShowDot->setChecked( TRUE );
slotShowDot(); slotShowDot();
TDEIO::HiddenFileMatcher* matcher = TDEIO::HiddenFileMatcher::getInstance(); int result = m_pListView->m_dirLister->matcher->getMatchPropertiesFromUser() ;
if ( matcher->getMatchPropertiesFromUser() ) {
m_pProps->setHiddenFileSpec ( matcher->getCriteria() ); switch ( result ) {
case TDEIO::HiddenFileMatcher::criteriaUnchanged:
return;
break;
case TDEIO::HiddenFileMatcher::criteriaApplied:
return;
break;
case TDEIO::HiddenFileMatcher::saveCriteria:
m_pProps->setHiddenFileSpec( m_pListView->m_dirLister->matcher->getCriteria() );
break;
case TDEIO::HiddenFileMatcher::reloadCriteria:
m_pListView->m_dirLister->matcher->setCriteria( m_pProps->hiddenFileSpec() );
break;
} }
} }

@ -27,6 +27,7 @@
#include <tqpainter.h> #include <tqpainter.h>
#include <tqheader.h> #include <tqheader.h>
#include <kiconloader.h> #include <kiconloader.h>
#include <kdirlister.h>
static TQString retrieveExtraEntry( KFileItem* fileitem, int numExtra ) static TQString retrieveExtraEntry( KFileItem* fileitem, int numExtra )
{ {
@ -95,13 +96,10 @@ void KonqListViewItem::updateContents()
sortChar = S_ISDIR( m_fileitem->mode() ) ? 1 : 3; sortChar = S_ISDIR( m_fileitem->mode() ) ? 1 : 3;
else else
sortChar = 3; sortChar = 3;
if ( m_groupHiddenFirst && m_pListViewWidget->m_dirLister->matcher->match( m_fileitem->text() ) )
/* Temporarily
*/
TDEIO::HiddenFileMatcher* matcher = TDEIO::HiddenFileMatcher::getInstance();
if ( m_groupHiddenFirst && matcher->match(m_fileitem->text()) )
--sortChar; --sortChar;
//now we have the first column, so let's do the rest //now we have the first column, so let's do the rest
int numExtra = 1; int numExtra = 1;

@ -76,11 +76,12 @@ public:
class KonqBaseListViewWidget : public TDEListView class KonqBaseListViewWidget : public TDEListView
{ {
friend class KonqBaseListViewItem; friend class KonqBaseListViewItem;
friend class KonqListViewItem;
friend class KonqListView; friend class KonqListView;
friend class ListViewBrowserExtension; friend class ListViewBrowserExtension;
Q_OBJECT Q_OBJECT
public: public:
KonqBaseListViewWidget( KonqListView *parent, TQWidget *parentWidget ); KonqBaseListViewWidget( KonqListView *parent, TQWidget *parentWidget );
virtual ~KonqBaseListViewWidget(); virtual ~KonqBaseListViewWidget();

Loading…
Cancel
Save