@ -22,11 +22,11 @@
# include "indexing.h"
# include "select_privacy_resource.h"
# include < qdom.h>
# include < qgroupbox.h>
# include < qlabel.h>
# include < qlayout.h>
# include < qradiobutton.h>
# include < t qdom.h>
# include < t qgroupbox.h>
# include < t qlabel.h>
# include < t qlayout.h>
# include < t qradiobutton.h>
# include <kconfig.h>
# include <kdialog.h>
# include <kdirselectdialog.h>
@ -38,38 +38,38 @@
# include <kurl.h>
# include <kurlrequester.h>
KCMBeagleIndexing : : KCMBeagleIndexing ( QWidget * parent, const char * )
: KCModule ( parent, " kcmbeagleindexing " )
KCMBeagleIndexing : : KCMBeagleIndexing ( T QWidget * tq parent, const char * )
: KCModule ( tq parent, " kcmbeagleindexing " )
{
QVBoxLayout* top_layout = new QVBoxLayout( this , KDialog : : spacingHint ( ) ) ;
T QVBoxLayout* top_layout = new T QVBoxLayout( this , KDialog : : spacingHint ( ) ) ;
// General
QGroupBox* gb_general = new QGroupBox( 0 , Qt : : Vertical , i18n ( " General " ) , this ) ;
T QGroupBox* gb_general = new T QGroupBox( 0 , Qt : : Vertical , i18n ( " General " ) , this ) ;
top_layout - > addWidget ( gb_general ) ;
gb_general - > setFlat ( true ) ;
QVBoxLayout* gb_general_layout = new QVBoxLayout( gb_general - > layout( ) , KDialog : : spacingHint ( ) ) ;
T QVBoxLayout* gb_general_layout = new T QVBoxLayout( gb_general - > tq layout( ) , KDialog : : spacingHint ( ) ) ;
startBeagle = new QCheckBox( i18n ( " Start Beagle indexing service automatically " ) , gb_general ) ;
startBeagle = new T QCheckBox( i18n ( " Start Beagle indexing service automatically " ) , gb_general ) ;
gb_general_layout - > addWidget ( startBeagle ) ;
indexOnBattery = new QCheckBox( i18n ( " Index data while on battery power " ) , gb_general ) ;
indexOnBattery = new T QCheckBox( i18n ( " Index data while on battery power " ) , gb_general ) ;
gb_general_layout - > addWidget ( indexOnBattery ) ;
// Index
QGroupBox* gb_index = new QGroupBox( 0 , Qt : : Vertical , i18n ( " Index " ) , this ) ;
T QGroupBox* gb_index = new T QGroupBox( 0 , Qt : : Vertical , i18n ( " Index " ) , this ) ;
top_layout - > addWidget ( gb_index ) ;
gb_index - > setFlat ( true ) ;
QVBoxLayout* gb_index_layout = new QVBoxLayout( gb_index - > layout( ) , KDialog : : spacingHint ( ) ) ;
T QVBoxLayout* gb_index_layout = new T QVBoxLayout( gb_index - > tq layout( ) , KDialog : : spacingHint ( ) ) ;
QHBoxLayout* qh_index = new QHBoxLayout( gb_index_layout ) ;
indexHome = new QCheckBox( i18n ( " Index my home folder " ) , gb_index ) ;
T QHBoxLayout* qh_index = new T QHBoxLayout( gb_index_layout ) ;
indexHome = new T QCheckBox( i18n ( " Index my home folder " ) , gb_index ) ;
qh_index - > addWidget ( indexHome ) ;
qh_index - > addStretch ( 1 ) ;
QLabel* label_index = new QLabel( i18n ( " Add any additional folder to be included for indexing. " ) , gb_index ) ;
T QLabel* label_index = new T QLabel( i18n ( " Add any additional folder to be included for indexing. " ) , gb_index ) ;
gb_index_layout - > addWidget ( label_index ) ;
QGridLayout* grid_index = new QGridLayout( gb_index_layout , 1 , 1 , KDialog : : spacingHint ( ) ) ;
T QGridLayout* grid_index = new T QGridLayout( gb_index_layout , 1 , 1 , KDialog : : spacingHint ( ) ) ;
index_list = new KListView ( gb_index ) ;
index_list - > addColumn ( i18n ( " Name " ) ) ;
@ -78,30 +78,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_index - > addMultiCellWidget ( index_list , 0 , 2 , 0 , 0 ) ;
label_index - > setBuddy ( index_list ) ;
QPushButton* add_index = new QPushButton( i18n ( " Add... " ) , gb_index ) ;
T QPushButton* add_index = new T QPushButton( i18n ( " Add... " ) , gb_index ) ;
grid_index - > addWidget ( add_index , 0 , 1 ) ;
remove_index = new QPushButton( i18n ( " Remove " ) , gb_index ) ;
remove_index = new T QPushButton( i18n ( " Remove " ) , gb_index ) ;
remove_index - > setEnabled ( false ) ;
grid_index - > addWidget ( remove_index , 1 , 1 ) ;
QSpacerItem* index_spacer = new QSpacerItem( 20 , 30 , QSizePolicy: : Minimum , QSizePolicy: : Preferred ) ;
T QSpacerItem* index_spacer = new T QSpacerItem( 20 , 30 , T QSizePolicy: : Minimum , T QSizePolicy: : Preferred ) ;
grid_index - > addItem ( index_spacer , 2 , 1 ) ;
connect ( add_index , SIGNAL( clicked ( ) ) , this , SLOT( slotAddSearch ( ) ) ) ;
connect ( remove_index , SIGNAL( clicked ( ) ) , this , SLOT( slotRemoveSearch ( ) ) ) ;
connect ( index_list , SIGNAL( selectionChanged ( QListViewItem* ) ) , this , SLOT( slotSearchSelectionChanged ( QListViewItem* ) ) ) ;
connect ( add_index , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( slotAddSearch ( ) ) ) ;
connect ( remove_index , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( slotRemoveSearch ( ) ) ) ;
connect ( index_list , TQT_ SIGNAL( selectionChanged ( T QListViewItem* ) ) , this , TQT_ SLOT( slotSearchSelectionChanged ( T QListViewItem* ) ) ) ;
// Privacy
QGroupBox* gb_privacy = new QGroupBox( 0 , Qt : : Vertical , i18n ( " Privacy " ) , this ) ;
T QGroupBox* gb_privacy = new T QGroupBox( 0 , Qt : : Vertical , i18n ( " Privacy " ) , this ) ;
top_layout - > addWidget ( gb_privacy ) ;
gb_privacy - > setFlat ( true ) ;
QVBoxLayout* gb_privacy_layout = new QVBoxLayout( gb_privacy - > layout( ) , KDialog : : spacingHint ( ) ) ;
T QVBoxLayout* gb_privacy_layout = new T QVBoxLayout( gb_privacy - > tq layout( ) , KDialog : : spacingHint ( ) ) ;
QLabel* label_privacy = new QLabel( i18n ( " Specify any resource, such as folder or pattern, you wish to exclude from indexing. " ) , gb_privacy ) ;
T QLabel* label_privacy = new T QLabel( i18n ( " Specify any resource, such as folder or pattern, you wish to exclude from indexing. " ) , gb_privacy ) ;
gb_privacy_layout - > addWidget ( label_privacy ) ;
QGridLayout* grid_privacy = new QGridLayout( gb_privacy_layout , 1 , 1 , KDialog : : spacingHint ( ) ) ;
T QGridLayout* grid_privacy = new T QGridLayout( gb_privacy_layout , 1 , 1 , KDialog : : spacingHint ( ) ) ;
privacy_list = new KListView ( gb_privacy ) ;
privacy_list - > addColumn ( i18n ( " Type " ) ) ;
@ -112,30 +112,30 @@ KCMBeagleIndexing::KCMBeagleIndexing(QWidget *parent, const char * )
grid_privacy - > addMultiCellWidget ( privacy_list , 0 , 2 , 0 , 0 ) ;
label_privacy - > setBuddy ( privacy_list ) ;
QPushButton* add_privacy = new QPushButton( i18n ( " Add... " ) , gb_privacy ) ;
T QPushButton* add_privacy = new T QPushButton( i18n ( " Add... " ) , gb_privacy ) ;
grid_privacy - > addWidget ( add_privacy , 0 , 1 ) ;
remove_privacy = new QPushButton( i18n ( " Remove " ) , gb_privacy ) ;
remove_privacy = new T QPushButton( i18n ( " Remove " ) , gb_privacy ) ;
remove_privacy - > setEnabled ( false ) ;
grid_privacy - > addWidget ( remove_privacy , 1 , 1 ) ;
QSpacerItem* privacy_spacer = new QSpacerItem( 20 , 30 , QSizePolicy: : Minimum , QSizePolicy: : Preferred ) ;
T QSpacerItem* privacy_spacer = new T QSpacerItem( 20 , 30 , T QSizePolicy: : Minimum , T QSizePolicy: : Preferred ) ;
grid_privacy - > addItem ( privacy_spacer , 2 , 1 ) ;
connect ( add_privacy , SIGNAL( clicked ( ) ) , this , SLOT( slotAddPrivacy ( ) ) ) ;
connect ( remove_privacy , SIGNAL( clicked ( ) ) , this , SLOT( slotRemovePrivacy ( ) ) ) ;
connect ( privacy_list , SIGNAL( selectionChanged ( QListViewItem* ) ) , this , SLOT( slotPrivacySelectionChanged ( QListViewItem* ) ) ) ;
connect ( add_privacy , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( slotAddPrivacy ( ) ) ) ;
connect ( remove_privacy , TQT_ SIGNAL( clicked ( ) ) , this , TQT_ SLOT( slotRemovePrivacy ( ) ) ) ;
connect ( privacy_list , TQT_ SIGNAL( selectionChanged ( T QListViewItem* ) ) , this , TQT_ SLOT( slotPrivacySelectionChanged ( T QListViewItem* ) ) ) ;
// Add some spacing at the end
QWidget * dummy = new QWidget( this ) ;
T QWidget * dummy = new T QWidget( this ) ;
top_layout - > addWidget ( dummy ) ;
top_layout - > setStretchFactor ( dummy , 1 ) ;
load ( ) ;
connect ( indexOnBattery , SIGNAL( clicked ( ) ) , SLOT( changedValue ( ) ) ) ;
connect ( startBeagle , SIGNAL( clicked ( ) ) , SLOT( changedValue ( ) ) ) ;
connect ( indexHome , SIGNAL( clicked ( ) ) , SLOT( changedValue ( ) ) ) ;
connect ( indexOnBattery , TQT_ SIGNAL( clicked ( ) ) , TQT_ SLOT( changedValue ( ) ) ) ;
connect ( startBeagle , TQT_ SIGNAL( clicked ( ) ) , TQT_ SLOT( changedValue ( ) ) ) ;
connect ( indexHome , TQT_ SIGNAL( clicked ( ) ) , TQT_ SLOT( changedValue ( ) ) ) ;
}
KCMBeagleIndexing : : ~ KCMBeagleIndexing ( )
@ -155,7 +155,7 @@ void KCMBeagleIndexing::load()
void KCMBeagleIndexing : : load ( bool useDefaults )
{
bool _indexHomeDir , _indexOnBattery , _startBeagle ;
QStringList roots , excludeTypes , excludeValues ;
T QStringList roots , excludeTypes , excludeValues ;
if ( useDefaults ) {
_indexHomeDir = true ;
@ -177,14 +177,14 @@ void KCMBeagleIndexing::load( bool useDefaults )
index_list - > clear ( ) ;
remove_index - > setEnabled ( false ) ;
for ( QStringList: : Iterator it = roots . begin ( ) ; it ! = roots . end ( ) ; + + it ) {
for ( T QStringList: : Iterator it = roots . begin ( ) ; it ! = roots . end ( ) ; + + it ) {
new KListViewItem ( index_list , * it ) ;
}
privacy_list - > clear ( ) ;
remove_privacy - > setEnabled ( false ) ;
QStringList: : Iterator it_values = excludeValues . begin ( ) ;
for ( QStringList: : Iterator it_types = excludeTypes . begin ( ) ; it_types ! = excludeTypes . end ( ) ; + + it_types ) {
T QStringList: : Iterator it_values = excludeValues . begin ( ) ;
for ( T QStringList: : Iterator it_types = excludeTypes . begin ( ) ; it_types ! = excludeTypes . end ( ) ; + + it_types ) {
new KListViewItem ( privacy_list , * it_types , * it_values ) ;
it_values + + ;
}
@ -206,15 +206,15 @@ void KCMBeagleIndexing::save()
delete config ;
QStringList roots ;
T QStringList roots ;
for ( int i = 0 ; i < index_list - > childCount ( ) ; i + + )
roots < < index_list - > itemAtIndex ( i ) - > text ( 0 ) ;
QStringList excludeTypes ;
T QStringList excludeTypes ;
for ( int i = 0 ; i < privacy_list - > childCount ( ) ; i + + )
excludeTypes < < privacy_list - > itemAtIndex ( i ) - > text ( 0 ) ;
QStringList excludeValues ;
T QStringList excludeValues ;
for ( int i = 0 ; i < privacy_list - > childCount ( ) ; i + + )
excludeValues < < privacy_list - > itemAtIndex ( i ) - > text ( 1 ) ;
@ -223,19 +223,19 @@ void KCMBeagleIndexing::save()
void KCMBeagleIndexing : : slotAddSearch ( )
{
KURL path = KDirSelectDialog : : selectDirectory ( QDir: : home ( ) . absPath ( ) , true , this , i18n ( " Select Folder " ) ) ;
KURL path = KDirSelectDialog : : selectDirectory ( T QDir: : home ( ) . absPath ( ) , true , this , i18n ( " Select Folder " ) ) ;
new KListViewItem ( index_list , path . path ( ) ) ;
changedValue ( ) ;
}
void KCMBeagleIndexing : : slotSearchSelectionChanged ( QListViewItem* item )
void KCMBeagleIndexing : : slotSearchSelectionChanged ( T QListViewItem* item )
{
remove_index - > setEnabled ( item ) ;
}
void KCMBeagleIndexing : : slotRemoveSearch ( )
{
QListViewItem * item = index_list - > currentItem ( ) ;
T QListViewItem * item = index_list - > currentItem ( ) ;
if ( item & &
KMessageBox : : warningContinueCancel ( this , i18n ( " <qt>Do you really want to remove this folder from the list of folders to be included for indexing?</qt> " ) , i18n ( " Remove Folder " ) , KStdGuiItem : : del ( ) ) = = KMessageBox : : Continue )
{
@ -250,10 +250,10 @@ void KCMBeagleIndexing::slotAddPrivacy()
KDialogBase dlg ( this , 0 , true , i18n ( " Add Resource " ) , KDialogBase : : Ok | KDialogBase : : Cancel ) ;
AddPrivacyResource w ( & dlg ) ;
dlg . setMainWidget ( & w ) ;
connect ( w . radioButtonFolder , SIGNAL( toggled ( bool ) ) , w . folderRequester , SLOT( setEnabled ( bool ) ) ) ;
connect ( w . radioButtonFolder , SIGNAL( toggled ( bool ) ) , w . patternEdit , SLOT( setDisabled ( bool ) ) ) ;
connect ( w . radioButtonPattern , SIGNAL( toggled ( bool ) ) , w . patternEdit , SLOT( setEnabled ( bool ) ) ) ;
connect ( w . radioButtonPattern , SIGNAL( toggled ( bool ) ) , w . folderRequester , SLOT( setDisabled ( bool ) ) ) ;
connect ( w . radioButtonFolder , TQT_ SIGNAL( toggled ( bool ) ) , w . folderRequester , TQT_ SLOT( setEnabled ( bool ) ) ) ;
connect ( w . radioButtonFolder , TQT_ SIGNAL( toggled ( bool ) ) , w . patternEdit , TQT_ SLOT( setDisabled ( bool ) ) ) ;
connect ( w . radioButtonPattern , TQT_ SIGNAL( toggled ( bool ) ) , w . patternEdit , TQT_ SLOT( setEnabled ( bool ) ) ) ;
connect ( w . radioButtonPattern , TQT_ SIGNAL( toggled ( bool ) ) , w . folderRequester , TQT_ SLOT( setDisabled ( bool ) ) ) ;
w . folderRequester - > setCaption ( i18n ( " Select Folder " ) ) ;
w . radioButtonFolder - > setChecked ( true ) ;
w . folderRequester - > setMode ( KFile : : Directory | KFile : : LocalOnly ) ;
@ -272,7 +272,7 @@ void KCMBeagleIndexing::slotAddPrivacy()
void KCMBeagleIndexing : : slotRemovePrivacy ( )
{
QListViewItem * item = privacy_list - > currentItem ( ) ;
T QListViewItem * item = privacy_list - > currentItem ( ) ;
if ( item & &
KMessageBox : : warningContinueCancel ( this , i18n ( " <qt>Do you really want to remove this item from the list of data to be excluded from indexing?</qt> " ) , i18n ( " Remove Item " ) , KStdGuiItem : : del ( ) ) = = KMessageBox : : Continue )
{
@ -282,12 +282,12 @@ void KCMBeagleIndexing::slotRemovePrivacy()
}
}
void KCMBeagleIndexing : : slotPrivacySelectionChanged ( QListViewItem* item )
void KCMBeagleIndexing : : slotPrivacySelectionChanged ( T QListViewItem* item )
{
remove_privacy - > setEnabled ( item ) ;
}
void KCMBeagleIndexing : : readIndexConfig ( bool & indexHomeDir , bool & indexOnBattery , QStringList & roots , QStringList & excludeTypes , QStringList & excludeValues )
void KCMBeagleIndexing : : readIndexConfig ( bool & indexHomeDir , bool & indexOnBattery , T QStringList & roots , T QStringList & excludeTypes , T QStringList & excludeValues )
{
indexHomeDir = true ;
indexOnBattery = true ;
@ -295,40 +295,40 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
excludeTypes . clear ( ) ;
excludeValues . clear ( ) ;
QFile file ( QDir: : home ( ) . absPath ( ) + " /.beagle/config/indexing.xml " ) ;
T QFile file ( T QDir: : home ( ) . absPath ( ) + " /.beagle/config/indexing.xml " ) ;
if ( ! file . open ( IO_ReadOnly ) )
return ;
QDomDocument doc ( " mydocument " ) ;
T QDomDocument doc ( " mydocument " ) ;
if ( ! doc . setContent ( & file ) ) {
file . close ( ) ;
return ;
}
file . close ( ) ;
QDomElement docElem = doc . documentElement ( ) ;
T QDomElement docElem = doc . documentElement ( ) ;
QDomNode n = docElem . firstChild ( ) ;
T QDomNode n = docElem . firstChild ( ) ;
while ( ! n . isNull ( ) ) {
QDomElement e = n . toElement ( ) ;
T QDomElement e = n . toElement ( ) ;
if ( ! e . isNull ( ) ) {
if ( e . tagName ( ) = = " IndexHomeDir " )
indexHomeDir = e . text ( ) = = " true " ;
if ( e . tagName ( ) = = " IndexOnBattery " )
indexOnBattery = e . text ( ) = = " true " ;
else if ( e . tagName ( ) = = " Roots " ) {
QDomNode ro = n . firstChild ( ) ;
T QDomNode ro = n . firstChild ( ) ;
while ( ! ro . isNull ( ) ) {
QDomElement exel = ro . toElement ( ) ;
T QDomElement exel = ro . toElement ( ) ;
if ( ! exel . isNull ( ) )
roots < < exel . text ( ) ;
ro = ro . nextSibling ( ) ;
}
}
else if ( e . tagName ( ) = = " Excludes " ) {
QDomNode ex = n . firstChild ( ) ;
T QDomNode ex = n . firstChild ( ) ;
while ( ! ex . isNull ( ) ) {
QDomElement exel = ex . toElement ( ) ;
T QDomElement exel = ex . toElement ( ) ;
if ( ! exel . isNull ( ) ) {
excludeTypes < < exel . attribute ( " Type " ) ;
excludeValues < < exel . attribute ( " Value " ) ;
@ -341,44 +341,44 @@ void KCMBeagleIndexing::readIndexConfig(bool &indexHomeDir, bool &indexOnBattery
}
}
bool KCMBeagleIndexing : : saveIndexConfig ( bool indexHomeDir , bool indexOnBattery , QStringList roots , QStringList excludeTypes , QStringList excludeValues )
bool KCMBeagleIndexing : : saveIndexConfig ( bool indexHomeDir , bool indexOnBattery , T QStringList roots , T QStringList excludeTypes , T QStringList excludeValues )
{
QDir beagleDir ( QDir: : home ( ) . absPath ( ) + " /.beagle " ) ;
T QDir beagleDir ( T QDir: : home ( ) . absPath ( ) + " /.beagle " ) ;
if ( ! beagleDir . exists ( ) )
beagleDir . mkdir ( QDir: : home ( ) . absPath ( ) + " /.beagle " ) ;
beagleDir . mkdir ( T QDir: : home ( ) . absPath ( ) + " /.beagle " ) ;
QDir beagleConfigDir ( QDir: : home ( ) . absPath ( ) + " /.beagle/config " ) ;
T QDir beagleConfigDir ( T QDir: : home ( ) . absPath ( ) + " /.beagle/config " ) ;
if ( ! beagleConfigDir . exists ( ) )
beagleConfigDir . mkdir ( QDir: : home ( ) . absPath ( ) + " /.beagle/config " ) ;
beagleConfigDir . mkdir ( T QDir: : home ( ) . absPath ( ) + " /.beagle/config " ) ;
QFile configFile ( QDir: : home ( ) . absPath ( ) + " /.beagle/config/indexing.xml " ) ;
T QFile configFile ( T QDir: : home ( ) . absPath ( ) + " /.beagle/config/indexing.xml " ) ;
if ( ! configFile . open ( IO_WriteOnly ) )
return false ;
QDomDocument doc ( QString: : null ) ;
T QDomDocument doc ( T QString: : null ) ;
doc . appendChild ( doc . createProcessingInstruction (
" xml " , " version= \" 1.0 \" encoding= \" UTF-8 \" " ) ) ;
QDomElement root = doc . createElement ( " IndexingConfig " ) ;
T QDomElement root = doc . createElement ( " IndexingConfig " ) ;
root . setAttribute ( " xmlns:xsd " , " http://www.w3.org/2001/XMLSchema " ) ;
root . setAttribute ( " xmlns:xsi " , " http://www.w3.org/2001/XMLSchema-instance " ) ;
doc . appendChild ( root ) ;
QDomElement rootselement = doc . createElement ( " Roots " ) ;
T QDomElement rootselement = doc . createElement ( " Roots " ) ;
root . appendChild ( rootselement ) ;
for ( QStringList: : Iterator it = roots . begin ( ) ; it ! = roots . end ( ) ; + + it ) {
QDomElement tag = doc . createElement ( " Root " ) ;
for ( T QStringList: : Iterator it = roots . begin ( ) ; it ! = roots . end ( ) ; + + it ) {
T QDomElement tag = doc . createElement ( " Root " ) ;
rootselement . appendChild ( tag ) ;
QDomText t = doc . createTextNode ( * it ) ;
T QDomText t = doc . createTextNode ( * it ) ;
tag . appendChild ( t ) ;
}
QDomElement tag = doc . createElement ( " IndexHomeDir " ) ;
T QDomElement tag = doc . createElement ( " IndexHomeDir " ) ;
root . appendChild ( tag ) ;
QDomText t = doc . createTextNode ( indexHomeDir ? " true " : " false " ) ;
T QDomText t = doc . createTextNode ( indexHomeDir ? " true " : " false " ) ;
tag . appendChild ( t ) ;
tag = doc . createElement ( " IndexOnBattery " ) ;
@ -387,12 +387,12 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
t = doc . createTextNode ( indexOnBattery ? " true " : " false " ) ;
tag . appendChild ( t ) ;
QDomElement excludeselement = doc . createElement ( " Excludes " ) ;
T QDomElement excludeselement = doc . createElement ( " Excludes " ) ;
root . appendChild ( excludeselement ) ;
QStringList: : Iterator it_types = excludeTypes . begin ( ) ;
for ( QStringList: : Iterator it = excludeValues . begin ( ) ; it ! = excludeValues . end ( ) ; + + it ) {
QDomElement t = doc . createElement ( " ExcludeItem " ) ;
T QStringList: : Iterator it_types = excludeTypes . begin ( ) ;
for ( T QStringList: : Iterator it = excludeValues . begin ( ) ; it ! = excludeValues . end ( ) ; + + it ) {
T QDomElement t = doc . createElement ( " ExcludeItem " ) ;
t . setAttribute ( " Type " , * it_types ) ;
t . setAttribute ( " Value " , * it ) ;
excludeselement . appendChild ( t ) ;
@ -400,7 +400,7 @@ bool KCMBeagleIndexing::saveIndexConfig(bool indexHomeDir, bool indexOnBattery,
+ + it_types ;
}
QTextStream stream ( & configFile ) ;
T QTextStream stream ( & configFile ) ;
stream < < doc . toString ( ) ;
configFile . close ( ) ;