summaryrefslogtreecommitdiffstats
path: root/kcontrol/samba
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/samba')
-rw-r--r--kcontrol/samba/kcmsambalog.cpp18
-rw-r--r--kcontrol/samba/kcmsambastatistics.cpp14
-rw-r--r--kcontrol/samba/kcmsambastatistics.h4
3 files changed, 18 insertions, 18 deletions
diff --git a/kcontrol/samba/kcmsambalog.cpp b/kcontrol/samba/kcmsambalog.cpp
index a2a03fed3..fdb21bb1e 100644
--- a/kcontrol/samba/kcmsambalog.cpp
+++ b/kcontrol/samba/kcmsambalog.cpp
@@ -90,7 +90,7 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
logFileName.setURL("/var/log/samba.log");
- viewHistory.setAllColumnsShowFocus(TRUE);
+ viewHistory.setAllColumnsShowFocus(true);
viewHistory.setFocusPolicy(TQWidget::ClickFocus);
viewHistory.setShowSortIndicator(true);
@@ -108,10 +108,10 @@ LogView::LogView(TQWidget *parent,TDEConfig *config, const char *name)
" If the list is empty, try clicking the \"Update\" button. The samba"
" log file will be read and the list refreshed.") );
- showConnOpen.setChecked(TRUE);
- showConnClose.setChecked(TRUE);
- showFileOpen.setChecked(FALSE);
- showFileClose.setChecked(FALSE);
+ showConnOpen.setChecked(true);
+ showConnClose.setChecked(true);
+ showFileOpen.setChecked(false);
+ showFileClose.setChecked(false);
connect(&updateButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(updateList()));
emit contentsChanged(&viewHistory,0,0);
@@ -132,10 +132,10 @@ void LogView::loadSettings()
configFile->setGroup(LOGGROUPNAME);
logFileName.setURL(configFile->readPathEntry( "SambaLogFile", "/var/log/samba.log"));
- showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", TRUE));
- showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", FALSE));
- showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", TRUE));
- showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", FALSE));
+ showConnOpen.setChecked(configFile->readBoolEntry( "ShowConnectionOpen", true));
+ showConnClose.setChecked(configFile->readBoolEntry( "ShowConnectionClose", false));
+ showFileOpen.setChecked(configFile->readBoolEntry( "ShowFileOpen", true));
+ showFileClose.setChecked(configFile->readBoolEntry( "ShowFileClose", false));
}
void LogView::saveSettings()
diff --git a/kcontrol/samba/kcmsambastatistics.cpp b/kcontrol/samba/kcmsambastatistics.cpp
index faeb54702..650c43a05 100644
--- a/kcontrol/samba/kcmsambastatistics.cpp
+++ b/kcontrol/samba/kcmsambastatistics.cpp
@@ -59,7 +59,7 @@ StatisticsView::StatisticsView(TQWidget *parent,TDEConfig *config, const char *n
expandedInfoCb = new TQCheckBox( i18n( "Show expanded service info" ), this );
expandedUserCb = new TQCheckBox( i18n( "Show expanded host info" ), this );
- viewStatistics->setAllColumnsShowFocus(TRUE);
+ viewStatistics->setAllColumnsShowFocus(true);
viewStatistics->setFocusPolicy(TQWidget::ClickFocus);
viewStatistics->setShowSortIndicator(true);
@@ -73,8 +73,8 @@ StatisticsView::StatisticsView(TQWidget *parent,TDEConfig *config, const char *n
eventCb->insertItem(i18n("Connection"));
eventCb->insertItem(i18n("File Access"));
- expandedInfoCb->setChecked(FALSE);
- expandedUserCb->setChecked(FALSE);
+ expandedInfoCb->setChecked(false);
+ expandedUserCb->setChecked(false);
clearStatistics();
serviceLe->setText("*");
hostLe->setText("*");
@@ -142,8 +142,8 @@ void StatisticsView::calculate()
if ((expandedInfoCb->isChecked()) || (expandedUserCb->isChecked()))
{
SambaLog sLog;
- TQRegExp rService(serviceLe->text(),FALSE,TRUE);
- TQRegExp rHost(hostLe->text(),FALSE,TRUE);
+ TQRegExp rService(serviceLe->text(),false,true);
+ TQRegExp rHost(hostLe->text(),false,true);
TQString item2, item3;
TQListViewItem* item=dataList->firstChild();
while (item!=0)
@@ -194,8 +194,8 @@ void StatisticsView::calculate()
{
calcCount++;
int count(0);
- TQRegExp rService(serviceLe->text(),FALSE,TRUE);
- TQRegExp rHost(hostLe->text(),FALSE,TRUE);
+ TQRegExp rService(serviceLe->text(),false,true);
+ TQRegExp rHost(hostLe->text(),false,true);
TQListViewItem* item=dataList->firstChild();
while (item!=0)
{
diff --git a/kcontrol/samba/kcmsambastatistics.h b/kcontrol/samba/kcmsambastatistics.h
index 157fc62b3..cf7817ce5 100644
--- a/kcontrol/samba/kcmsambastatistics.h
+++ b/kcontrol/samba/kcmsambastatistics.h
@@ -50,7 +50,7 @@ class LogItem
LogItem():name(""), accessed(),count(0) {};
LogItem(TQString n, TQString a):name(n), accessed(), count(1)
{
- accessed.setAutoDelete(TRUE);
+ accessed.setAutoDelete(true);
accessed.append(new SmallLogItem(a));
};
TQString name;
@@ -66,7 +66,7 @@ class SambaLog
public:
SambaLog()
{
- items.setAutoDelete(TRUE);
+ items.setAutoDelete(true);
};
TQPtrList<LogItem> items;
void addItem (TQString share, TQString host);