|
|
|
@ -71,9 +71,9 @@ KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *parent, const char * )
|
|
|
|
|
|
|
|
|
|
TQGridLayout* grid_index = new TQGridLayout( gb_index_layout, 1, 1, KDialog::spacingHint());
|
|
|
|
|
|
|
|
|
|
index_list = new KListView( gb_index );
|
|
|
|
|
index_list = new TDEListView( gb_index );
|
|
|
|
|
index_list->addColumn( i18n( "Name" ) );
|
|
|
|
|
index_list->setResizeMode( KListView::LastColumn );
|
|
|
|
|
index_list->setResizeMode( TDEListView::LastColumn );
|
|
|
|
|
index_list->setFullWidth( true );
|
|
|
|
|
grid_index->addMultiCellWidget( index_list, 0, 2, 0, 0 );
|
|
|
|
|
label_index->setBuddy(index_list);
|
|
|
|
@ -103,10 +103,10 @@ KCMBeagleIndexing::KCMBeagleIndexing(TQWidget *parent, const char * )
|
|
|
|
|
|
|
|
|
|
TQGridLayout* grid_privacy = new TQGridLayout( gb_privacy_layout, 1, 1, KDialog::spacingHint());
|
|
|
|
|
|
|
|
|
|
privacy_list = new KListView( gb_privacy );
|
|
|
|
|
privacy_list = new TDEListView( gb_privacy );
|
|
|
|
|
privacy_list->addColumn( i18n( "Type" ) );
|
|
|
|
|
privacy_list->addColumn( i18n( "Name" ) );
|
|
|
|
|
privacy_list->setResizeMode( KListView::LastColumn );
|
|
|
|
|
privacy_list->setResizeMode( TDEListView::LastColumn );
|
|
|
|
|
privacy_list->setFullWidth( true );
|
|
|
|
|
privacy_list->setAllColumnsShowFocus( true );
|
|
|
|
|
grid_privacy->addMultiCellWidget( privacy_list, 0, 2, 0, 0 );
|
|
|
|
@ -178,14 +178,14 @@ void KCMBeagleIndexing::load( bool useDefaults )
|
|
|
|
|
index_list->clear();
|
|
|
|
|
remove_index->setEnabled(false);
|
|
|
|
|
for ( TQStringList::Iterator it = roots.begin(); it != roots.end(); ++it ) {
|
|
|
|
|
new KListViewItem(index_list,*it);
|
|
|
|
|
new TDEListViewItem(index_list,*it);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
privacy_list->clear();
|
|
|
|
|
remove_privacy->setEnabled(false);
|
|
|
|
|
TQStringList::Iterator it_values = excludeValues.begin();
|
|
|
|
|
for ( TQStringList::Iterator it_types = excludeTypes.begin(); it_types != excludeTypes.end(); ++it_types ) {
|
|
|
|
|
new KListViewItem(privacy_list,*it_types,*it_values);
|
|
|
|
|
new TDEListViewItem(privacy_list,*it_types,*it_values);
|
|
|
|
|
it_values++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -224,7 +224,7 @@ void KCMBeagleIndexing::save()
|
|
|
|
|
void KCMBeagleIndexing::slotAddSearch()
|
|
|
|
|
{
|
|
|
|
|
KURL path = KDirSelectDialog::selectDirectory( TQDir::home().absPath(), true, this, i18n("Select Folder"));
|
|
|
|
|
new KListViewItem(index_list,path.path());
|
|
|
|
|
new TDEListViewItem(index_list,path.path());
|
|
|
|
|
changedValue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -261,11 +261,11 @@ void KCMBeagleIndexing::slotAddPrivacy()
|
|
|
|
|
{
|
|
|
|
|
if ( w.radioButtonFolder->isChecked()) {
|
|
|
|
|
if (!w.folderRequester->lineEdit()->text().isEmpty())
|
|
|
|
|
new KListViewItem(privacy_list,"Path",w.folderRequester->lineEdit()->text());
|
|
|
|
|
new TDEListViewItem(privacy_list,"Path",w.folderRequester->lineEdit()->text());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if (!w.patternEdit->text().isEmpty())
|
|
|
|
|
new KListViewItem(privacy_list,"Pattern",w.patternEdit->text());
|
|
|
|
|
new TDEListViewItem(privacy_list,"Pattern",w.patternEdit->text());
|
|
|
|
|
changedValue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|